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 Attributes | List of all members
frame_parsed_parameters Class Reference

keep most parameters in a separate class to simplify handling of large number of parameters handling is common for frame level and animation level More...

#include <frame.hpp>

Public Member Functions

 frame_parsed_parameters (const frame_builder &builder=frame_builder(), int override_duration=0)
 
void override (int duration, 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="")
 allow easy chained modifications will raised assert if used after initialization More...
 
const frame_parameters parameters (int current_time) const
 getters for the different parameters More...
 
int duration () const
 
bool does_not_change () const
 
bool need_update () const
 
std::vector< std::stringdebug_strings () const
 

Private Attributes

int duration_
 
progressive_image image_
 
progressive_image image_diagonal_
 
std::string image_mod_
 
progressive_string halo_
 
progressive_int halo_x_
 
progressive_int halo_y_
 
std::string halo_mod_
 
std::string sound_
 
std::string text_
 
Uint32 text_color_
 
Uint32 blend_with_
 
progressive_double blend_ratio_
 
progressive_double highlight_ratio_
 
progressive_double offset_
 
progressive_double submerge_
 
progressive_int x_
 
progressive_int y_
 
progressive_int directional_x_
 
progressive_int directional_y_
 
tristate auto_vflip_
 
tristate auto_hflip_
 
tristate primary_frame_
 
progressive_int drawing_layer_
 

Detailed Description

keep most parameters in a separate class to simplify handling of large number of parameters handling is common for frame level and animation level

Definition at line 159 of file frame.hpp.

Constructor & Destructor Documentation

frame_parsed_parameters::frame_parsed_parameters ( const frame_builder builder = frame_builder(),
int  override_duration = 0 
)

Definition at line 450 of file frame.cpp.

Member Function Documentation

std::vector< std::string > frame_parsed_parameters::debug_strings ( ) const
bool frame_parsed_parameters::does_not_change ( ) const
int frame_parsed_parameters::duration ( ) const
inline

Definition at line 173 of file frame.hpp.

References duration_.

Referenced by unit_frame::duration(), and override().

bool frame_parsed_parameters::need_update ( ) const
void frame_parsed_parameters::override ( int  duration,
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 frame_parsed_parameters::parameters ( int  current_time) const

Member Data Documentation

tristate frame_parsed_parameters::auto_hflip_
private

Definition at line 199 of file frame.hpp.

Referenced by debug_strings(), and parameters().

tristate frame_parsed_parameters::auto_vflip_
private

Definition at line 198 of file frame.hpp.

Referenced by debug_strings(), and parameters().

progressive_double frame_parsed_parameters::blend_ratio_
private

Definition at line 190 of file frame.hpp.

Referenced by debug_strings(), does_not_change(), need_update(), override(), and parameters().

Uint32 frame_parsed_parameters::blend_with_
private

Definition at line 189 of file frame.hpp.

Referenced by debug_strings(), override(), and parameters().

progressive_int frame_parsed_parameters::directional_x_
private

Definition at line 196 of file frame.hpp.

Referenced by debug_strings(), does_not_change(), need_update(), override(), and parameters().

progressive_int frame_parsed_parameters::directional_y_
private

Definition at line 197 of file frame.hpp.

Referenced by debug_strings(), does_not_change(), need_update(), override(), and parameters().

progressive_int frame_parsed_parameters::drawing_layer_
private

Definition at line 201 of file frame.hpp.

Referenced by debug_strings(), does_not_change(), need_update(), override(), and parameters().

int frame_parsed_parameters::duration_
private

Definition at line 178 of file frame.hpp.

Referenced by debug_strings(), duration(), override(), and parameters().

progressive_string frame_parsed_parameters::halo_
private

Definition at line 182 of file frame.hpp.

Referenced by debug_strings(), does_not_change(), need_update(), override(), and parameters().

std::string frame_parsed_parameters::halo_mod_
private

Definition at line 185 of file frame.hpp.

Referenced by debug_strings(), and parameters().

progressive_int frame_parsed_parameters::halo_x_
private

Definition at line 183 of file frame.hpp.

Referenced by debug_strings(), does_not_change(), need_update(), override(), and parameters().

progressive_int frame_parsed_parameters::halo_y_
private

Definition at line 184 of file frame.hpp.

Referenced by debug_strings(), does_not_change(), need_update(), override(), and parameters().

progressive_double frame_parsed_parameters::highlight_ratio_
private

Definition at line 191 of file frame.hpp.

Referenced by debug_strings(), does_not_change(), need_update(), override(), and parameters().

progressive_image frame_parsed_parameters::image_
private

Definition at line 179 of file frame.hpp.

Referenced by debug_strings(), does_not_change(), need_update(), override(), and parameters().

progressive_image frame_parsed_parameters::image_diagonal_
private

Definition at line 180 of file frame.hpp.

Referenced by debug_strings(), does_not_change(), need_update(), override(), and parameters().

std::string frame_parsed_parameters::image_mod_
private

Definition at line 181 of file frame.hpp.

Referenced by debug_strings(), override(), and parameters().

progressive_double frame_parsed_parameters::offset_
private

Definition at line 192 of file frame.hpp.

Referenced by debug_strings(), does_not_change(), need_update(), override(), and parameters().

tristate frame_parsed_parameters::primary_frame_
private

Definition at line 200 of file frame.hpp.

Referenced by debug_strings(), and parameters().

std::string frame_parsed_parameters::sound_
private

Definition at line 186 of file frame.hpp.

Referenced by debug_strings(), and parameters().

progressive_double frame_parsed_parameters::submerge_
private

Definition at line 193 of file frame.hpp.

Referenced by debug_strings(), does_not_change(), need_update(), override(), and parameters().

std::string frame_parsed_parameters::text_
private

Definition at line 187 of file frame.hpp.

Referenced by debug_strings(), and parameters().

Uint32 frame_parsed_parameters::text_color_
private

Definition at line 188 of file frame.hpp.

Referenced by debug_strings(), and parameters().

progressive_int frame_parsed_parameters::x_
private

Definition at line 194 of file frame.hpp.

Referenced by debug_strings(), does_not_change(), need_update(), override(), and parameters().

progressive_int frame_parsed_parameters::y_
private

Definition at line 195 of file frame.hpp.

Referenced by debug_strings(), does_not_change(), need_update(), override(), and parameters().


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