コード例 #1
0
ファイル: victoryCore.php プロジェクト: daverodal/wargaming
 public function save()
 {
     $ret = parent::save();
     $ret->sovietGoal = $this->sovietGoal;
     $ret->supplyUnits = $this->supplyUnits;
     return $ret;
 }
コード例 #2
0
 public function save()
 {
     $ret = parent::save();
     $ret->landingZones = $this->landingZones;
     $ret->airdropZones = $this->airdropZones;
     return $ret;
 }
コード例 #3
0
 public function save()
 {
     $ret = parent::save();
     $ret->indianGoal = $this->indianGoal;
     $ret->pakistaniGoal = $this->pakistaniGoal;
     return $ret;
 }
コード例 #4
0
 public function save()
 {
     $ret = parent::save();
     $ret->germanGoal = $this->germanGoal;
     $ret->sovietGoal = $this->sovietGoal;
     return $ret;
 }
コード例 #5
0
 public function save()
 {
     $ret = parent::save();
     $ret->landingZones = $this->landingZones;
     $ret->airdropZones = $this->airdropZones;
     $ret->scienceCenterDestroyed = $this->scienceCenterDestroyed;
     return $ret;
 }
コード例 #6
0
 public function save()
 {
     $ret = parent::save();
     $ret->rebelGoal = $this->rebelGoal;
     $ret->loyalistGoal = $this->loyalistGoal;
     $ret->headQuarters = $this->headQuarters;
     return $ret;
 }
コード例 #7
0
ファイル: victoryCore.php プロジェクト: daverodal/wargaming
 public function save()
 {
     $ret = parent::save();
     return $ret;
 }
コード例 #8
0
 public function playerTurnChange($arg)
 {
     parent::playerTurnChange($arg);
     $attackingId = $arg[0];
     $battle = Battle::getBattle();
     $mapData = $battle->mapData;
     $vp = $this->victoryPoints;
     $specialHexes = $mapData->specialHexes;
     $gameRules = $battle->gameRules;
     if ($gameRules->phase == BLUE_MECH_PHASE || $gameRules->phase == RED_MECH_PHASE) {
         $gameRules->flashMessages[] = "@hide crt";
     }
     if ($attackingId == GERMAN_FORCE) {
         if ($gameRules->turn <= $gameRules->maxTurn) {
             $gameRules->flashMessages[] = "German Player Turn";
             $gameRules->replacementsAvail = 1;
         }
     }
     if ($attackingId == SOVIET_FORCE) {
         $gameRules->flashMessages[] = "Soviet Player Turn";
         $gameRules->replacementsAvail = 6;
     }
     /*only get special VPs' at end of first Movement Phase */
     $this->victoryPoints = $vp;
 }