// +-------------------------------------------------------+
// | WARNING: Do not copy this file. It is only an example |
// +-------------------------------------------------------+
/*...*/
bool Map::Walkable(unsigned char x, unsigned char y, bool npc)
{
return (InBounds(x, y) && this->tiles[y]->at(x)->Walkable(npc));
}
bool Map::Harvestable(unsigned char x, unsigned char y)
{
return (InBounds(x, y) && this->tiles[y]->at(x)->Harvestable());
}
Map_Tile::TileSpec Map::GetSpec(unsigned char x, unsigned char y)
{
/*...*/