24 lines
474 B
C
24 lines
474 B
C
#ifndef TILE_H
|
|
#define TILE_H
|
|
#include "../common/data.h"
|
|
|
|
struct Tile {
|
|
float x;
|
|
float y;
|
|
float z;
|
|
int set;
|
|
int frame;
|
|
struct TileData *data;
|
|
struct Tile *next;
|
|
struct Tile *prev;
|
|
};
|
|
|
|
struct Tile *newTile(struct TileData *data);
|
|
void freeTile(struct Tile *tile);
|
|
|
|
void appendTile(struct Tile *tile_target, struct Tile *new_tile);
|
|
void insertTile(struct Tile* tile_target, struct Tile* new_tile);
|
|
void removeTile(struct Tile* tile);
|
|
|
|
#endif
|