Logo Search packages:      
Sourcecode: nemerle version File versions  Download package

Data.h

#define MAXX 100
#define MAXY 100

00004 typedef struct _Ant
{
  char color;
  char dir;
  char food;
} Ant;

typedef enum _Terrain
{
  GRASS = 0,
  ROCKS = 1,
  HILL_RED = 2,
  HILL_BLACK = 3
} Terrain;

00019 typedef struct _Tile
{
  unsigned char mark1;
  unsigned char mark2;
  Ant ant;
  Terrain terrain;
  int food;
} Tile;

Tile Map[MAXY][MAXX];

int round;
int roundMax;
int redScore;
int blackScore;

void DataClean(void);
void DataOpen(char* name);
void DataSeek(int r);
void DataClose();

Generated by  Doxygen 1.6.0   Back to index