1 // checks if position is blocked by wall
2 char isBlocked( int inX, int inY );
3 
4 
5 // checks if chest is present
6 // assumes position is not blocked
7 #define CHEST_NONE 0
8 #define CHEST_CLOSED 1
9 #define CHEST_OPEN 2
10 char isChest( int inX, int inY );
11 
12 
13 // 8-bit binary indicating which of six external chest gems are present
14 #define CHEST_RED_GEM      0x01
15 #define CHEST_GREEN_GEM    0x02
16 #define CHEST_ORANGE_GEM   0x04
17 #define CHEST_BLUE_GEM     0x08
18 #define CHEST_YELLOW_GEM   0x10
19 #define CHEST_MAGENTA_GEM   0x20
20 
21 // assumes a chest is present
22 unsigned char getChestCode( int inX, int inY );
23 
24 void getChestCenter( int inX, int inY, int *outCenterX, int *outCenterY );
25 
26 void openChest( int inX, int inY );
27 
28 
29 // resets map to a fresh state
30 void resetMap();
31