WarUnit의 일부 요소를 General과 ActionSpecialWar 등으로 분리

This commit is contained in:
2019-04-28 05:43:59 +09:00
parent ef40f299ef
commit 477ec440bc
28 changed files with 256 additions and 191 deletions
+11 -7
View File
@@ -52,13 +52,7 @@ class General implements iAction{
$this->resultTurn = new LastTurn();
if($year !== null || $month !== null){
$this->logger = new ActionLogger(
$this->getVar('no'),
$this->getVar('nation'),
$year,
$month,
false
);
$this->initLogger($year, $month);
}
if(!$fullConstruct){
@@ -90,6 +84,16 @@ class General implements iAction{
//TODO: $specialItemClass 설정
}
function initLogger(int $year, int $month){
$this->logger = new ActionLogger(
$this->getVar('no'),
$this->getVar('nation'),
$year,
$month,
false
);
}
function deleteItem(){
$this->setVar('item', 0);
$this->itemObjs['item'] = new ActionItem\che_Dummy(0);