전투 코드 반영

This commit is contained in:
2018-08-18 23:18:40 +09:00
parent bf09f48196
commit ed527ac394
7 changed files with 168 additions and 44 deletions
+16 -4
View File
@@ -14,12 +14,12 @@ class WarUnit{
protected $updatedVar = [];
protected $genAtmos = 0;
protected $genTrain = 0;
protected $currPhase = 0;
protected $prePhase = 0;
protected $atmosBonus = 0;
protected $trainBonus = 0;
protected $oppose;
protected $warPower;
protected $warPowerMultiply = 1.0;
@@ -49,6 +49,10 @@ class WarUnit{
return 'EMPTY';
}
function isAttacker():bool{
return $this->isAttacker;
}
function getCrewType():GameUnitDetail{
return $this->crewType;
}
@@ -184,10 +188,14 @@ class WarUnit{
return GameConst::$maxTrainByCommand;
}
function getComputeAtmos(){
function getComputedAtmos(){
return GameConst::$maxAtmosByCommand;
}
function getComputedAvoidRatio(){
return $this->getCrewType()->avoid / 100;
}
function addWin(){
throw new NotInheritedMethodException();
}
@@ -278,6 +286,10 @@ class WarUnit{
return false;
}
function logBattleResult(){
$this->getLogger()->pushBattleResultTemplate($this, $this->getOppose());
}
function applyDB($db):bool{
return false;
}