턴에 canDisplay() 추가
This commit is contained in:
@@ -142,6 +142,10 @@ abstract class BaseCommand{
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function canDisplay():bool{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public function testRunnable():?string{
|
public function testRunnable():?string{
|
||||||
if(!$this->isArgValid()){
|
if(!$this->isArgValid()){
|
||||||
throw new \InvalidArgumentException('인자가 제대로 설정되지 않았습니다');
|
throw new \InvalidArgumentException('인자가 제대로 설정되지 않았습니다');
|
||||||
|
|||||||
@@ -63,6 +63,10 @@ class che_NPC능동 extends Command\GeneralCommand{
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function canDisplay():bool{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public function run():bool{
|
public function run():bool{
|
||||||
if(!$this->isRunnable()){
|
if(!$this->isRunnable()){
|
||||||
throw new \RuntimeException('불가능한 커맨드를 강제로 실행 시도');
|
throw new \RuntimeException('불가능한 커맨드를 강제로 실행 시도');
|
||||||
|
|||||||
Reference in New Issue
Block a user