phan 1차

This commit is contained in:
2020-05-01 17:33:14 +09:00
parent f7a123c10b
commit ef5dd47604
27 changed files with 76 additions and 48 deletions
+7 -1
View File
@@ -18,6 +18,7 @@ class WarUnit{
protected $currPhase = 0;
protected $prePhase = 0;
protected $bonusPhase = 0;
protected $atmosBonus = 0;
protected $trainBonus = 0;
@@ -166,7 +167,8 @@ class WarUnit{
}
function getMaxPhase():int{
return $this->getCrewType()->speed;
$phase = $this->getCrewType()->speed;
return $phase + $this->bonusPhase;
}
function setPrePhase(int $phase){
@@ -177,6 +179,10 @@ class WarUnit{
$this->currPhase += 1;
}
function addBonusPhase(int $cnt){
$this->bonusPhase += $cnt;
}
function setOppose(?WarUnit $oppose){
$this->oppose = $oppose;
$this->killedCurr = 0;