Пример #1
0
 public static bool IsWalkable(ITile coord)
 {
     return((coord.GetTile() >= TileInfo.Swamp && coord.GetTile() <= TileInfo.Hills) || (coord.GetTile() >= TileInfo.Dungeon_Entrance && coord.GetTile() <= TileInfo.Village));
 }
Пример #2
0
 public static bool IsMatchingTile(ITile coord, List <byte> validTiles)
 {
     return(validTiles.Contains(coord.GetTile()));
 }
Пример #3
0
 public static bool IsGrassOrSailable(ITile coord)
 {
     return(coord.GetTile() == TileInfo.Grasslands || coord.GetTile() == TileInfo.Deep_Water || coord.GetTile() == TileInfo.Medium_Water);
 }
Пример #4
0
 public static bool IsGrass(ITile coord)
 {
     return(coord.GetTile() == TileInfo.Grasslands);
 }
Пример #5
0
 public static bool IsWalkableOrSailable(ITile coord)
 {
     return((coord.GetTile() >= TileInfo.Swamp && coord.GetTile() <= TileInfo.Hills) || (coord.GetTile() >= TileInfo.Dungeon_Entrance && coord.GetTile() <= TileInfo.Village) || coord.GetTile() == TileInfo.Deep_Water || coord.GetTile() == TileInfo.Medium_Water);
 }