코드 중간 반영

This commit is contained in:
2018-08-18 20:45:59 +09:00
parent ef8c9e3968
commit 5979273a64
5 changed files with 123 additions and 36 deletions
+15 -2
View File
@@ -51,6 +51,14 @@ class WarUnit{
return $this->crewType;
}
function getCrewTypeName():string{
return $this->getCrewType()->name;
}
function getCrewTypeShortName():string{
return $this->getCrewType()->getShortName();
}
function getLogger():ActionLogger{
return $this->logger;
}
@@ -87,9 +95,8 @@ class WarUnit{
$this->currPhase += 1;
}
function setOppose(WarUnit $oppose){
function setOppose(?WarUnit $oppose){
$this->oppose = $oppose;
}
function getWarPower(){
@@ -198,6 +205,10 @@ class WarUnit{
return false;
}
function checkPostActiveSkill():bool{
return false;
}
function applyActiveSkill():bool{
return false;
}
@@ -207,10 +218,12 @@ class WarUnit{
}
function decreaseHP(int $damage):int{
$this->dead += $damage;
throw new NotInheritedMethodException();
}
function increaseKilled(int $damage):int{
$this->killed += $damage;
throw new NotInheritedMethodException();
}