The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
halo::halo_impl::effect Class Reference

Public Member Functions

 effect (display *screen, int xpos, int ypos, const animated< image::locator >::anim_description &img, const map_location &loc, ORIENTATION, bool infinite)
 
void set_location (int x, int y)
 
bool render ()
 
void unrender ()
 
bool expired () const
 
bool need_update () const
 
bool does_change () const
 
bool on_location (const std::set< map_location > &locations) const
 
bool location_not_known () const
 
void add_overlay_location (std::set< map_location > &locations)
 

Private Member Functions

const image::locatorcurrent_image ()
 

Private Attributes

animated< image::locatorimages_
 
ORIENTATION orientation_
 
int x_
 
int y_
 
surface surf_
 
surface buffer_
 
SDL_Rect rect_
 
map_location loc_
 The location of the center of the halo. More...
 
std::vector< map_locationoverlayed_hexes_
 All locations over which the halo lies. More...
 
displaydisp
 

Detailed Description

Definition at line 36 of file halo.cpp.

Constructor & Destructor Documentation

halo::halo_impl::effect::effect ( display screen,
int  xpos,
int  ypos,
const animated< image::locator >::anim_description &  img,
const map_location loc,
ORIENTATION  orientation,
bool  infinite 
)

Member Function Documentation

void halo::halo_impl::effect::add_overlay_location ( std::set< map_location > &  locations)

Definition at line 304 of file halo.cpp.

References itor.

const image::locator& halo::halo_impl::effect::current_image ( )
inlineprivate

Definition at line 56 of file halo.cpp.

References animated< T, T_void_value >::get_current_frame(), and images_.

bool halo::halo_impl::effect::does_change ( ) const
inline

Definition at line 49 of file halo.cpp.

References animated< T, T_void_value >::does_not_change(), and images_.

bool halo::halo_impl::effect::expired ( ) const
inline
bool halo::halo_impl::effect::location_not_known ( ) const

Definition at line 299 of file halo.cpp.

bool halo::halo_impl::effect::need_update ( ) const
inline

Definition at line 48 of file halo.cpp.

References images_, and animated< T, T_void_value >::need_update().

bool halo::halo_impl::effect::on_location ( const std::set< map_location > &  locations) const

Definition at line 288 of file halo.cpp.

References itor.

bool halo::halo_impl::effect::render ( )
void halo::halo_impl::effect::set_location ( int  x,
int  y 
)
void halo::halo_impl::effect::unrender ( )

Member Data Documentation

surface halo::halo_impl::effect::buffer_
private

Definition at line 63 of file halo.cpp.

display* halo::halo_impl::effect::disp
private

Definition at line 72 of file halo.cpp.

Referenced by effect().

animated<image::locator> halo::halo_impl::effect::images_
private

Definition at line 58 of file halo.cpp.

Referenced by current_image(), does_change(), effect(), expired(), and need_update().

map_location halo::halo_impl::effect::loc_
private

The location of the center of the halo.

Definition at line 67 of file halo.cpp.

ORIENTATION halo::halo_impl::effect::orientation_
private

Definition at line 60 of file halo.cpp.

std::vector<map_location> halo::halo_impl::effect::overlayed_hexes_
private

All locations over which the halo lies.

Definition at line 70 of file halo.cpp.

SDL_Rect halo::halo_impl::effect::rect_
private

Definition at line 64 of file halo.cpp.

surface halo::halo_impl::effect::surf_
private

Definition at line 63 of file halo.cpp.

int halo::halo_impl::effect::x_
private

Definition at line 62 of file halo.cpp.

int halo::halo_impl::effect::y_
private

Definition at line 62 of file halo.cpp.


The documentation for this class was generated from the following file: