Subversion Repositories Kolibri OS

Rev

Rev 5229 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5229 raandoom 1
#ifndef CELL_H
2
#define CELL_H
3
 
4
#include "defines.h"
5231 raandoom 5
#include "paint.h"
5229 raandoom 6
 
7
typedef struct {
8
    rect    cell;       // current rect
9
    __u32   value;      // value, 0 - do not draw a tile
10
    __u8    animate;    // animation needed: true or false
11
    __u16   ani_step;   // step for animation
12
    rect    transition; // destination rect for animation
13
    __u8    merged;     // merge flag
14
    rect    merged_rect;// rect for drawing merged tile
15
} tile;
16
 
17
// Draw a tile (animation will started if needed)
18
__u8 tile_draw(tile* t);
19
 
20
// Check two tiles for merging
21
__u8 tile_mergeable(tile* from, tile* to);
22
 
23
#endif // CELL_H