20 #ifndef UNIT_FRAME_H_INCLUDED
21 #define UNIT_FRAME_H_INCLUDED
36 std::vector<std::pair<std::string,int> >
data_;
48 std::vector<std::pair<image::locator,int> >
data_;
55 std::vector<std::pair<std::pair<T, T>,
int> >
data_;
166 , Uint32 blend_color = 0
bool does_not_change() const
Describe a unit's animation sequence.
frame_builder & y(const std::string &y)
std::vector< std::pair< std::string, int > > data_
progressive_double blend_ratio_
frame_parsed_parameters(const frame_builder &builder=frame_builder(), int override_duration=0)
keep most parameters in a separate class to simplify handling of large number of parameters handling ...
progressive_image(const std::string &data="", int duration=0)
bool does_not_change() const
std::string directional_y_
std::vector< std::string > debug_strings() const
frame_builder & drawing_layer(const std::string &drawing_layer)
frame_builder & image_diagonal(const std::string &image_diagonal, const std::string &image_mod="")
std::vector< std::pair< std::pair< T, T >, int > > data_
std::vector< std::string > debug_strings() const
std::string drawing_layer_
GLint GLint GLint GLint GLint GLint y
Audio output for sound and music.
image::locator image_diagonal
std::string get_original() const
All parameters from a frame at a given instant.
unit_frame(const frame_builder &builder=frame_builder())
frame_builder & directional_x(const std::string &directional_x)
GLint GLenum GLsizei GLint GLsizei const GLvoid * data
frame_builder & blend(const std::string &blend_ratio, const Uint32 blend_color)
frame_builder & image(const std::string &image, const std::string &image_mod="")
const frame_parameters parameters(int current_time) const
getters for the different parameters
frame_builder & submerge(const std::string &submerge)
frame_parsed_parameters builder_
const frame_parameters merge_parameters(int current_time, const frame_parameters &animation_val, const frame_parameters &engine_val=frame_parameters()) const
bool does_not_change() const
frame_builder & auto_hflip(const bool auto_hflip)
std::set< map_location > get_overlaped_hex(const int frame_time, const map_location &src, const map_location &dst, const frame_parameters &animation_val, const frame_parameters &engine_val) const
bool tristate_to_bool(tristate tri, bool def)
frame_builder & sound(const std::string &sound)
std::string get_original() const
bool does_not_change() const
GLenum GLenum GLuint GLint GLint layer
progressive_image image_diagonal_
std::string highlight_ratio_
progressive_(const std::string &data="", int duration=0)
frame_builder & auto_vflip(const bool auto_vflip)
progressive_double highlight_ratio_
const frame_parameters end_parameters() const
std::vector< std::pair< image::locator, int > > data_
std::string directional_x_
progressive_int drawing_layer_
progressive_int directional_x_
Encapsulates the map of the game.
std::string get_original() const
const T get_current_element(int time, T default_val=0) const
frame_builder & text(const std::string &text, const Uint32 text_color)
const image::locator & get_current_element(int time) const
progressive_< int > progressive_int
frame_builder & offset(const std::string &offset)
GLint GLint GLint GLint GLint x
frame_builder & x(const std::string &x)
bool does_not_change() const
frame_builder & primary_frame(const bool primary_frame)
frame_builder & directional_y(const std::string &directional_y)
progressive_double submerge_
progressive_int directional_y_
const frame_parameters parameters(int current_time) const
this module manages the cache of images.
progressive_< double > progressive_double
std::string image_diagonal_
frame_builder & duration(const int duration)
allow easy chained modifications will raised assert if used after initialization
progressive_double offset_
frame_builder & highlight(const std::string &highlight)
A config object defines a single node in a WML file, with access to child nodes.
const std::string & get_current_element(int time) const
GLsizei const GLcharARB ** string
void redraw(const int frame_time, bool on_start_time, bool in_scope_of_frame, const map_location &src, const map_location &dst, halo::handle &halo_id, halo::manager &halo_man, const frame_parameters &animation_val, const frame_parameters &engine_val) const
frame_builder & halo(const std::string &halo, const std::string &halo_x, const std::string &halo_y, const std::string &halo_mod)
progressive_string(const std::string &data="", int duration=0)