#include "cell.h"
#include "main.h"
Defines | |
#define | NONE 0 |
#define | LEVELCELL 1 |
#define | ROOM_MAX 4 |
#define | ROOM_MIN 2 |
#define | ROOM_SIZE_MIN 2 |
#define | ROOM_SIZE_MAX 9 |
#define | WALLV -1 |
#define | WALLH 0 |
#define | FLOOR 1 |
#define | DOOR_CLOSED 2 |
#define | DOOR_OPENED 3 |
#define | PASSAGE 4 |
#define | UPSTAIRS 5 |
#define | DOWNSTAIRS 6 |
#define | DOOR_LOCKED 7 |
#define | ORIENT_TOP 0 |
#define | ORIENT_BOTTOM 1 |
Functions | |
void | init_main_cells () |
void * | createlevel (int columns, int rows) |
void | drawlevel (struct cell *level, int columns, int rows, int orient) |
void | destroylevel (void *level, int size) |
Variables | |
struct cell initcell wallh wallv door_closed fl passage | door_locked |
#define DOOR_CLOSED 2 |
#define DOOR_LOCKED 7 |
#define DOOR_OPENED 3 |
#define DOWNSTAIRS 6 |
#define FLOOR 1 |
#define LEVELCELL 1 |
#define NONE 0 |
#define ORIENT_BOTTOM 1 |
#define ORIENT_TOP 0 |
#define PASSAGE 4 |
#define ROOM_MAX 4 |
#define ROOM_MIN 2 |
#define ROOM_SIZE_MAX 9 |
#define ROOM_SIZE_MIN 2 |
#define UPSTAIRS 5 |
#define WALLH 0 |
#define WALLV -1 |
void* createlevel | ( | int | columns, | |
int | rows | |||
) |
void destroylevel | ( | void * | level, | |
int | size | |||
) |
void drawlevel | ( | struct cell * | level, | |
int | columns, | |||
int | rows, | |||
int | orient | |||
) |
void init_main_cells | ( | ) |
struct cell initcell wallh wallv door_closed fl passage door_locked |