Public Member Functions | |
Action () | |
~Action () | |
Public Attributes | |
std::string | name |
float | x_offset |
Position correction. | |
float | y_offset |
float | hitbox_w |
Hitbox width. | |
float | hitbox_h |
Hitbox height. | |
int | z_order |
Drawing priority in queue. | |
float | fps |
Frames per second. | |
std::vector< SurfacePtr > | surfaces |
Definition at line 41 of file sprite_data.hpp.
SpriteData::Action::Action | ( | ) |
Definition at line 26 of file sprite_data.cpp.
References fps, hitbox_h, hitbox_w, x_offset, y_offset, and z_order.
00026 : 00027 name(), 00028 x_offset(), 00029 y_offset(), 00030 hitbox_w(), 00031 hitbox_h(), 00032 z_order(), 00033 fps(), 00034 surfaces() 00035 { 00036 x_offset = 0; 00037 y_offset = 0; 00038 hitbox_w = 0; 00039 hitbox_h = 0; 00040 z_order = 0; 00041 fps = 10; 00042 }
SpriteData::Action::~Action | ( | ) |
std::string SpriteData::Action::name |
Definition at line 46 of file sprite_data.hpp.
Referenced by Sprite::get_action(), SpriteData::parse_action(), Sprite::set_action(), and Sprite::set_action_continued().
Position correction.
Definition at line 49 of file sprite_data.hpp.
Referenced by Action(), Sprite::draw(), Sprite::draw_part(), Sprite::get_current_hitbox(), Sprite::get_current_hitbox_x_offset(), and SpriteData::parse_action().
Definition at line 50 of file sprite_data.hpp.
Referenced by Action(), Sprite::draw(), Sprite::draw_part(), Sprite::get_current_hitbox(), Sprite::get_current_hitbox_y_offset(), and SpriteData::parse_action().
Hitbox width.
Definition at line 53 of file sprite_data.hpp.
Referenced by Action(), Sprite::get_current_hitbox(), Sprite::get_current_hitbox_width(), and SpriteData::parse_action().
Hitbox height.
Definition at line 56 of file sprite_data.hpp.
Referenced by Action(), Sprite::get_current_hitbox(), Sprite::get_current_hitbox_height(), and SpriteData::parse_action().
Drawing priority in queue.
Definition at line 59 of file sprite_data.hpp.
Referenced by Action(), Sprite::draw(), Sprite::draw_part(), and SpriteData::parse_action().
float SpriteData::Action::fps |
Frames per second.
Definition at line 62 of file sprite_data.hpp.
Referenced by Action(), Sprite::get_fps(), SpriteData::parse_action(), and Sprite::update().
std::vector<SurfacePtr> SpriteData::Action::surfaces |
Definition at line 64 of file sprite_data.hpp.
Referenced by Sprite::draw(), Sprite::draw_part(), Sprite::get_frame(), Sprite::get_frames(), Sprite::get_height(), Sprite::get_width(), and SpriteData::parse_action().