Table of Contents


SPRITE_OBJ

Definition

struct SPRITE_OBJ
{
    int	    _i_rows;
    int	    _i_cols;
    int	    _i_cell_width;
    int	    _i_cell_height;
    int	    _i_sprite_x;
    int	    _i_sprite_y;
    bool    _b_show;
    string  _str_img_id;
    string  _str_anim;
    
    map<string, ANIM_OBJ> _m_anim;
};

Properties

_i_rows number of rows in the animation template
_i_cols number of columns in the animation template
_i_cell_width width of animation cells
_i_cell_height height of animation cells
_i_sprite_x the x location of the sprite
_i_sprite_y the y location of the sprite
_b_show visibility flag
_str_img_id ID of the sprite animation template
_str_anim the currently loaded animation
_m_anim sprite animations