39 lines
603 B
C
39 lines
603 B
C
#ifndef ARENAENGINE_H_
|
|
#define ARENAENGINE_H_
|
|
|
|
|
|
|
|
/*
|
|
typedef struct items{
|
|
int type_id;
|
|
//texture?
|
|
int isFlat;
|
|
int minedId;
|
|
struct items *nextItem;
|
|
}ITEMS;
|
|
*/
|
|
|
|
typedef struct arena_h_tile{ //Rows chained list
|
|
int type_id;
|
|
//texture?
|
|
int isGround;
|
|
int canBeMined;
|
|
struct arena_h_tile *nextRow;
|
|
struct arena_w_tile *nextColumn;
|
|
}ARENA_H_TILE;
|
|
|
|
typedef struct arena_w_tile{ //Columns chained list
|
|
int type_id;
|
|
//texture?
|
|
int isGround;
|
|
int canBeMined;
|
|
struct arena_w_tile *nextColumn;
|
|
}ARENA_W_TILE;
|
|
|
|
|
|
|
|
ARENA_H_TILE* genNewArena(int h, int w);
|
|
int deleteArena(ARENA_H_TILE* arena);
|
|
|
|
#endif
|