37 lines
503 B
C
37 lines
503 B
C
#ifndef TEAM_H
|
|
#define TEAM_H
|
|
|
|
// Directions
|
|
enum{
|
|
NORTH, SOUTH, EAST, WEST
|
|
};
|
|
|
|
// Tile types
|
|
enum{
|
|
BEDROCK, GRASS, TREE, BERRIES, ROCK, IRON_ORE, // nature
|
|
FOOD, WOOD, STONE, IRON, SWORD, // resources
|
|
DUDE, // humans
|
|
SPAWN, WALL, ROAD, MARK, SIGN // buildings
|
|
};
|
|
|
|
// Action types
|
|
enum{
|
|
MOVE, ATTACK, PICK, PUT, WORK, WAIT, COMMUNICATE
|
|
};
|
|
|
|
typedef struct{
|
|
int x;
|
|
int y;
|
|
} t_coord;
|
|
|
|
typedef struct{
|
|
int type;
|
|
int dir;
|
|
void* data;
|
|
} t_action;
|
|
|
|
int getInventory();
|
|
|
|
int getNear(int dir);
|
|
|
|
#endif |