/** * Copyright (c) 2025 Dominic Masters * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ #include "tile.h" bool_t tileIsWalkable(const tile_t tile) { 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; } }