'지난 턴'을 관리하는 기능 추가

This commit is contained in:
2018-10-03 22:38:05 +09:00
parent 4baac981c2
commit 7aa7b4b6dd
11 changed files with 114 additions and 45 deletions
+16 -2
View File
@@ -3,12 +3,26 @@ namespace sammo\Command;
abstract class NationCommand extends BaseCommand{
protected $lastTurn;
protected $resultTurn;
public function setLast($lastTurn){
public function __construct(General $generalObj, array $env, LastTurn $lastTurn, $arg = null){
$this->lastTurn = $lastTurn;
$this->resultTurn = new LastTurn();
parent::__construct($generalObj, $env, $arg);
}
public function getLast():array{
public function getLastTurn():LastTurn{
return $this->lastTurn;
}
public function setResultTurn(LastTurn $lastTurn){
$this->resultTurn = $lastTurn;
}
public function getResultTurn():LastTurn{
return $this->resultTurn;
}
};