'지난 턴'을 관리하는 기능 추가
This commit is contained in:
1 parent
4baac981c2
commit
7aa7b4b6dd
11 files changed
+114
-45
No files matched your search
@@ -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