Public Types | Public Member Functions | Public Attributes | Private Attributes

unit_animation::particule Class Reference

Inheritance diagram for unit_animation::particule:
Inheritance graph
[legend]
Collaboration diagram for unit_animation::particule:
Collaboration graph
[legend]

List of all members.

Public Types

enum  cycle_state { UNSET, CYCLE, NO_CYCLE }

Public Member Functions

 particule (int start_time=0, const frame_builder &builder=frame_builder())
 particule (const config &cfg, const std::string &frame_string="frame")
virtual ~particule ()
bool need_update () const
bool need_minimal_update () const
void override (int start_time, int duration, const cycle_state cycles, const std::string &highlight="", const std::string &blend_ratio="", Uint32 blend_color=0, const std::string &offset="", const std::string &layer="", const std::string &modifiers="")
void redraw (const frame_parameters &value, const map_location &src, const map_location &dst)
std::set< map_locationget_overlaped_hex (const frame_parameters &value, const map_location &src, const map_location &dst)
void start_animation (int start_time)
const frame_parameters parameters (const frame_parameters &default_val) const
void clear_halo ()

Public Attributes

bool accelerate

Private Attributes

frame_parsed_parameters parameters_
int halo_id_
int last_frame_begin_time_
bool cycles_

Detailed Description

Definition at line 82 of file unit_animation.hpp.


Member Enumeration Documentation

Enumerator:
UNSET 
CYCLE 
NO_CYCLE 

Definition at line 99 of file unit_animation.hpp.


Constructor & Destructor Documentation

unit_animation::particule::particule ( int  start_time = 0,
const frame_builder builder = frame_builder() 
) [inline, explicit]

Definition at line 85 of file unit_animation.hpp.

unit_animation::particule::particule ( const config cfg,
const std::string &  frame_string = "frame" 
) [explicit]
unit_animation::particule::~particule (  )  [virtual]

Definition at line 976 of file unit_animation.cpp.

References halo_id_, halo::NO_HALO, and schema_validation::remove.


Member Function Documentation

void unit_animation::particule::clear_halo (  ) 

Definition at line 961 of file unit_animation.cpp.

References halo_id_, halo::NO_HALO, and schema_validation::remove.

Referenced by unit_animation::clear_haloes().

Here is the caller graph for this function:

std::set< map_location > unit_animation::particule::get_overlaped_hex ( const frame_parameters value,
const map_location src,
const map_location dst 
)
bool unit_animation::particule::need_minimal_update (  )  const

Definition at line 725 of file unit_animation.cpp.

References animated< unit_frame >::get_current_frame_begin_time(), and last_frame_begin_time_.

Referenced by unit_animation::need_minimal_update().

Here is the call graph for this function:

Here is the caller graph for this function:

bool unit_animation::particule::need_update (  )  const

Reimplemented from animated< unit_frame >.

Definition at line 717 of file unit_animation.cpp.

References animated< unit_frame >::get_current_frame(), frame_parsed_parameters::need_update(), and parameters_.

Referenced by unit_animation::need_update().

Here is the call graph for this function:

Here is the caller graph for this function:

void unit_animation::particule::override ( int  start_time,
int  duration,
const cycle_state  cycles,
const std::string &  highlight = "",
const std::string &  blend_ratio = "",
Uint32  blend_color = 0,
const std::string &  offset = "",
const std::string &  layer = "",
const std::string &  modifiers = "" 
)
const frame_parameters unit_animation::particule::parameters ( const frame_parameters default_val  )  const [inline]
void unit_animation::particule::redraw ( const frame_parameters value,
const map_location src,
const map_location dst 
)
void unit_animation::particule::start_animation ( int  start_time  ) 

Member Data Documentation

Reimplemented from animated< unit_frame >.

Definition at line 121 of file unit_animation.hpp.

Referenced by override(), particule(), and start_animation().

Definition at line 119 of file unit_animation.hpp.

Referenced by clear_halo(), redraw(), start_animation(), and ~particule().

Definition at line 120 of file unit_animation.hpp.

Referenced by need_minimal_update(), redraw(), and start_animation().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri Feb 10 2012 01:10:40 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs