Beispiel #1
0
 /**
  *	Prc fight
  */
 private function prcFight(Dolumar_Underworld_Models_Army $target)
 {
     $battle = Dolumar_Underworld_Models_Battle::fight($this, $target);
     Dolumar_Underworld_Mappers_BattleMapper::insert($this->getMap()->getMission(), $battle);
     // Kill the appropriate units
     // We do not do that yet
     // Check who won and remove the loser
     if ($battle->isWinner($this)) {
         $target->destroy();
         $this->execMove($target->getUnderworldLocation());
     } else {
         $this->destroy();
     }
     return $battle;
 }