TILE_OBJ
Definition
struct TILE_OBJ
{
int _i_tile_id;
int _i_tile_img;
int _i_tile_block;
int _i_curr_frame;
int _i_total_frames;
int _i_direction;
int _i_frame_delay;
int _i_anim_delay;
int _i_start;
bool _b_playing;
bool _b_listed;
vector<int> _v_animation;
string _str_timer;
};
Properties
| _i_tile_id | the ID of the tile in the map (starts at 0, goes left-right, top-bottom) |
| _i_tile_img | the ID (cell location) of the image the tile displays |
| _i_tile_block | whether the tile is blocked (1) or not (0) |
| _i_curr_frame | the current frame number for animated tiles |
| _i_total_frames | the total number of frames in an animated tile |
| _i_direction | the direction the animation is playing in (FORWARD or REVERSE) |
| _i_frame_delay | the delay in milliseconds between frames |
| _i_anim_delay | the delay in milliseconds between looping animations |
| _i_start | the starting frame of the animation (depends on whether the animation is going FORWARD or in REVERSE) |
| _b_playing | whether the animation is playing (TRUE) or not (FALSE) |
| _b_listed | whether the animation is listed in the render queue (TRUE) or not (FALSE) |
| _v_animation | animation sequence |
| _str_timer | the animation delay timer for the tile |