- // TODO: Still need to define characters for types of scenery.\r
- if (IsOnMap(x, y)) return mGrid[x, y] == ' ';\r
- return false;\r
+ if (!IsOnMap(x, y)) return false;\r
+ return (Tilemap.GetTileFlags(mGrid[x, y]) & TileFlags.Open) == TileFlags.Open;\r
+ }\r
+\r
+ //created by Brady for AI precalculations\r
+ public bool IsWall(int x, int y)\r
+ {\r
+ if (!IsOnMap(x, y)) return false;\r
+ return (Tilemap.GetTileFlags(mGrid[x, y]) & TileFlags.Wall) == TileFlags.Wall;\r