private void loadNecessaryData()
 {
     firstLand      = controller.getFirstLand();
     secondLand     = controller.getSecondLand();
     nTanksAttacker = controller.getTank1();
     nTanksDefender = controller.getDefendTank();
 }
 public StateDefend(ControllGameMap controller, DataManager data, MessageManager manageMessage, ViewGameMap view)
 {
     this.controller    = controller;
     this.data          = data;
     this.manageMessage = manageMessage;
     this.view          = view;
     firstLand          = null;
     secondLand         = null;
     nextPhaseLoad      = this;
     nTanksAttacker     = -1;
     nTanksDefender     = -1;
     view.changeCanvasOption("Defend phase");
     view.updatePhase(data.getPlayer(), data.getPhase());
     view.updateTanksRemain(data.getTankOfLand(controller.getSecondLand()));
     Debug.Log("Data phase: " + data.getPhase() + " - State : Defense Deploy");
 }
Beispiel #3
0
 private void loadNecessaryData()
 {
     firstLand  = controller.getFirstLand();
     secondLand = controller.getSecondLand();
     nTanks     = controller.getAttackTank();
 }