Пример #1
0
 //private int ticks_Till_Next_Update = 0;
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="collisionGrid">Non-null collision grid</param>
 public NavigationComputer(GridStructure collisionGrid)
 {
     objectPaths = new Dictionary<DynamicObject, PathInformation>();
     movementYieldList = new Dictionary<DynamicObject,int>();
     dodgeInactiveCountDown = new Dictionary<DynamicObject, int>();
     spatialGrid = collisionGrid;
 }
Пример #2
0
 public AIController(GridStructure spatialGrid, NavigationComputer navComputer, GameController gameController, List<StaticObject> mapTurrets)
 {
     infoOnTeams = new List<TeamInformation>();
     this.spatialGrid = spatialGrid;
     this.navComputer = navComputer;
     this.gameController = gameController;
     this.mapTurrets = mapTurrets;
     randomizer = new Random();
 }