WarUnit의 일부 요소를 General과 ActionSpecialWar 등으로 분리
This commit is contained in:
+11
-7
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user