]> Dogcows Code - chaz/carfire/blobdiff - CarFire/CarFire/CarFire/AI.cs
Adding AI to monsters. AI still has some bugs to be worked out. Put it should compile...
[chaz/carfire] / CarFire / CarFire / CarFire / AI.cs
index 8b8a25fd509b91391b7d9451c4758af2d29441f9..716b9787f4a7dea2c1930df4d038ec6086f2dde3 100644 (file)
@@ -63,7 +63,10 @@ namespace CarFire
         {\r
             return regionList[regions[curX, curY]].VisibleRegions.Contains(regions[testX, testY]);\r
         }\r
-\r
+        public bool spaceVisible(Point Monster, Point Player )\r
+        {\r
+            return regionList[regions[Monster.X, Monster.Y]].VisibleRegions.Contains(regions[Player.X, Player.Y]);\r
+        }\r
         //find regions in map. these regions will be large groups of connected grid squares.\r
         public int setUpRegions()\r
         {\r
This page took 0.020041 seconds and 4 git commands to generate.