'지난 턴'을 관리하는 기능 추가
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user