| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#include "pics.h" |
| 23 |
|
| 24 |
#include <stdlib.h> |
| 25 |
|
| 26 |
|
| 27 |
const char *IntWallType(const int i) |
| 28 |
{ |
| 29 |
static const char *wallTypes[] = { |
| 30 |
"o", "w", "e", "n", "s", "nw", "ne", "sw", "se", |
| 31 |
"wt", "et", "nt", "st", "v", "h", "x" |
| 32 |
}; |
| 33 |
return wallTypes[i]; |
| 34 |
} |
| 35 |
const char *IntWallStyle(const int i) |
| 36 |
{ |
| 37 |
static const char *wallStyles[] = { |
| 38 |
"steel", "brick", "carbon", "steelwood", "stone", "plasteel", |
| 39 |
"granite" |
| 40 |
}; |
| 41 |
return wallStyles[abs(i) % WALL_STYLE_COUNT]; |
| 42 |
} |
| 43 |
|
| 44 |
const char *IntTileType(const int i) |
| 45 |
{ |
| 46 |
static const char *tileTypes[] = { "shadow", "normal", "alt1", "alt2" }; |
| 47 |
return tileTypes[abs(i) % FLOOR_TYPES]; |
| 48 |
} |
| 49 |
const char *IntFloorStyle(const int i) |
| 50 |
{ |
| 51 |
static const char *floorStyles[] = { |
| 52 |
"recessed", "tile", "dirt", "flat", "striped", "smallsquare", "stone", |
| 53 |
"wood", "biggrid", "grid" |
| 54 |
}; |
| 55 |
return floorStyles[abs(i) % FLOOR_STYLE_COUNT]; |
| 56 |
} |
| 57 |
|
| 58 |
const char *IntRoomStyle(const int i) |
| 59 |
{ |
| 60 |
static const char *roomStyles[] = { |
| 61 |
"recessed", "tile", "dirt", "flat", "striped", "smallsquare", "stone", |
| 62 |
"wood", "grid", "biggrid", "checker" |
| 63 |
}; |
| 64 |
return roomStyles[abs(i) % ROOM_STYLE_COUNT]; |
| 65 |
} |