Example #1
0
 public ManagerCombat(ManagerUnits managerUnits, ManagerEnemies managerEnemies, ManagerBuildings managerBuildings)
 {
     this.managerUnits     = managerUnits;
     this.managerEnemies   = managerEnemies;
     this.managerBuildings = managerBuildings;
 }
Example #2
0
 public ManagerUI(ManagerMouse managerMouse, ManagerBuildings managerBuildings, ManagerUnits managerUnits, List <ManagerEnemies> managerEnemies)
 {
     ui = new Main(managerUnits, managerBuildings, managerMouse, managerEnemies);
 }
Example #3
0
        public ManagerEnemies(ManagerMouse managerMouse, ManagerMap managerMap, int index)
        {
            if (ManagerResources.BOT_FOOD.Count == 0)
            {
                ManagerResources.BOT_GOLD.Add(5000);
                ManagerResources.BOT_WOOD.Add(99999);
                ManagerResources.BOT_FOOD.Add(5);
                ManagerResources.BOT_OIL.Add(99999);
            }
            else
            {
                ManagerResources.BOT_GOLD[0] = 5000;
                ManagerResources.BOT_FOOD[0] = 5;
            }

            this.index            = index;
            this.managerMap       = managerMap;
            this.managerMouse     = managerMouse;
            this.managerBuildings = new ManagerBotsBuildings(managerMouse, managerMap, index);
            this.managerUnits     = new ManagerBotsUnits(managerMouse, managerMap, managerBuildings, index);

            actionsTypes.Add(EA.ActionType.BUILDING);
            actions.Add(0);

            actionsTypes.Add(EA.ActionType.TOWN_HALL);
            actions.Add(0);

            actionsTypes.Add(EA.ActionType.TOWN_HALL);
            actions.Add(0);

            actionsTypes.Add(EA.ActionType.TOWN_HALL);
            actions.Add(0);

            actionsTypes.Add(EA.ActionType.BUILDING);
            actions.Add(2);

            actionsTypes.Add(EA.ActionType.BUILDING);
            actions.Add(2);

            actionsTypes.Add(EA.ActionType.BUILDING);
            actions.Add(1);

            if (Warcraft.ISLAND > 0)
            {
                actionsTypes.Add(EA.ActionType.TOWN_HALL);
                actions.Add(0);

                actionsTypes.Add(EA.ActionType.TOWN_HALL);
                actions.Add(0);
            }

            actionsTypes.Add(EA.ActionType.MINING);
            actions.Add(4);

            actionsTypes.Add(EA.ActionType.MINING);
            actions.Add(4);

            actionsTypes.Add(EA.ActionType.BARRACKS);
            actions.Add(0);

            actionsTypes.Add(EA.ActionType.BARRACKS);
            actions.Add(1);

            if (Warcraft.ISLAND > 0)
            {
                actionsTypes.Add(EA.ActionType.BUILDING);
                actions.Add(5);
            }
        }
 public ManagerUI(ManagerMouse managerMouse, ManagerBuildings managerBuildings, ManagerUnits managerUnits)
 {
     ui = new Main(managerUnits, managerBuildings, managerMouse);
 }