From 01913983ea352dbffbbc3fa068ad842862c1c041 Mon Sep 17 00:00:00 2001 From: hide_d Date: Mon, 15 Oct 2018 01:28:03 +0900 Subject: [PATCH] =?UTF-8?q?=ED=84=B4=EC=97=90=20canDisplay()=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Command/BaseCommand.php | 4 ++++ hwe/sammo/Command/General/che_NPC능동.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/hwe/sammo/Command/BaseCommand.php b/hwe/sammo/Command/BaseCommand.php index 79577b79..11cb4ba2 100644 --- a/hwe/sammo/Command/BaseCommand.php +++ b/hwe/sammo/Command/BaseCommand.php @@ -142,6 +142,10 @@ abstract class BaseCommand{ } + public function canDisplay():bool{ + return true; + } + public function testRunnable():?string{ if(!$this->isArgValid()){ throw new \InvalidArgumentException('인자가 제대로 설정되지 않았습니다'); diff --git a/hwe/sammo/Command/General/che_NPC능동.php b/hwe/sammo/Command/General/che_NPC능동.php index 32861733..58e7bc12 100644 --- a/hwe/sammo/Command/General/che_NPC능동.php +++ b/hwe/sammo/Command/General/che_NPC능동.php @@ -63,6 +63,10 @@ class che_NPC능동 extends Command\GeneralCommand{ return 0; } + public function canDisplay():bool{ + return false; + } + public function run():bool{ if(!$this->isRunnable()){ throw new \RuntimeException('불가능한 커맨드를 강제로 실행 시도');