processWar 입출력 부근을 General Object로 변경

This commit is contained in:
2019-04-29 00:13:25 +09:00
parent c8422421ab
commit bbfe5c2ab0
7 changed files with 48 additions and 39 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ namespace sammo;
class WarUnitGeneral extends WarUnit{
protected $bonusPhase = 0;
function __construct(General $general, array $rawNation, bool $isAttacker, int $year, int $month){
function __construct(General $general, array $rawNation, bool $isAttacker){
$this->general = $general;
$this->raw = $general->getRaw();
$this->rawNation = $rawNation; //read-only