return mData.IsCellOpen(x, y);\r
}\r
\r
+ /// <summary>\r
+ /// created by Brady for AI precalculations\r
+ /// </summary>\r
+ /// <param name="x">X-coordinate.</param>\r
+ /// <param name="y">Y-coordinate.</param>\r
+ public bool IsWall(int x, int y)\r
+ {\r
+ return mData.IsWall(x, y);\r
+ }\r
+\r
/// <summary>\r
/// Determine whether or not a cell can be occupied by a game entity.\r
/// </summary>\r
return false;\r
}\r
\r
+ //created by Brady for AI precalculations\r
+ public bool IsWall(int x, int y)\r
+ {\r
+ if (IsOnMap(x, y)) return (mGrid[x, y] == '-' || mGrid[x, y] == '|' || mGrid[x, y] == '+' || mGrid[x, y] == '/' || mGrid[x, y] == '\\');\r
+ return false;\r
+ }\r
public void SetCell(int x, int y, char tile)\r
{\r
if (IsOnMap(x, y))\r