Make stairs work

This commit is contained in:
2025-11-11 22:12:08 -06:00
parent 4f8f6a47cb
commit 9f23533069
10 changed files with 103 additions and 48 deletions

View File

@@ -8,9 +8,28 @@
#include "tile.h"
bool_t tileIsWalkable(const tile_t tile) {
return (
tile == TILE_WALKABLE ||
tile == TILE_STAIRS_UP ||
tile == TILE_STAIRS_DOWN
);
switch(tile) {
case TILE_WALKABLE:
case TILE_STAIRS_NORTH:
case TILE_STAIRS_SOUTH:
case TILE_STAIRS_EAST:
case TILE_STAIRS_WEST:
return true;
default:
return false;
}
}
bool_t tileIsStairs(const tile_t tile) {
switch(tile) {
case TILE_STAIRS_NORTH:
case TILE_STAIRS_SOUTH:
case TILE_STAIRS_EAST:
case TILE_STAIRS_WEST:
return true;
default:
return false;
}
}