Removed unneeded (and commented) event handling code
authorJustin Worthe <justin.worthe@entelect.co.za>
Sun, 20 Oct 2013 18:25:06 +0000 (20:25 +0200)
committerJustin Worthe <justin.worthe@entelect.co.za>
Sun, 20 Oct 2013 18:25:06 +0000 (20:25 +0200)
Entelect.BattleCity.Challenge/AiAgent.cs

index 56035e1..392202b 100644 (file)
@@ -35,23 +35,6 @@ namespace Entelect.BattleCity.Challenge
                 return null;
             }
 
-            /*if (game.events != null && game.events.unitEvents != null)
-            {
-                foreach (var unitEvent in game.events.unitEvents)
-                {
-                    if (unitEvent.unit != null && unitEvent.unit.id == _tankId && unitEvent.bullet != null)
-                    {
-                        Console.WriteLine("Tank was shot");
-                        return null;
-                    }
-                }
-                Console.WriteLine("No relevant events in unit events list", _tankId);
-            }
-            else
-            {
-                Console.WriteLine("No events in unit events list", _tankId);
-            }*/
-
             if (me.bullets != null)
             {
                 foreach (var bullet in me.bullets)