턴 요약 위해 getBrief 추가
This commit is contained in:
@@ -14,8 +14,7 @@ abstract class BaseCommand{
|
|||||||
* @var General|null $generalObj
|
* @var General|null $generalObj
|
||||||
* @var array|null $destGeneral
|
* @var array|null $destGeneral
|
||||||
*/
|
*/
|
||||||
protected $id = 0;
|
static protected $actionName = 'CommandName';
|
||||||
protected $name = 'CommandName';
|
|
||||||
|
|
||||||
protected $generalObj = null;
|
protected $generalObj = null;
|
||||||
protected $city = null;
|
protected $city = null;
|
||||||
@@ -127,8 +126,12 @@ abstract class BaseCommand{
|
|||||||
abstract protected function init();
|
abstract protected function init();
|
||||||
abstract protected function argTest():bool;
|
abstract protected function argTest():bool;
|
||||||
|
|
||||||
|
public function getBrief():string{
|
||||||
|
return $this->getName();
|
||||||
|
}
|
||||||
|
|
||||||
public function getName():string {
|
public function getName():string {
|
||||||
return static::$name;
|
return static::$actionName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getLogger():ActionLogger{
|
public function getLogger():ActionLogger{
|
||||||
|
|||||||
@@ -19,9 +19,9 @@ use function sammo\getGeneralLeadership;
|
|||||||
|
|
||||||
|
|
||||||
class che_기술연구 extends che_상업투자{
|
class che_기술연구 extends che_상업투자{
|
||||||
static $statKey = 'intel';
|
static protected $statKey = 'intel';
|
||||||
static $actionKey = '기술';
|
static protected $actionKey = '기술';
|
||||||
static $actionName = '기술 연구';
|
static protected $actionName = '기술 연구';
|
||||||
|
|
||||||
protected function init(){
|
protected function init(){
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ use \sammo\Util;
|
|||||||
use \sammo\JosaUtil;
|
use \sammo\JosaUtil;
|
||||||
|
|
||||||
class che_농지개간 extends che_상업투자{
|
class che_농지개간 extends che_상업투자{
|
||||||
static $cityKey = 'agri';
|
static protected $cityKey = 'agri';
|
||||||
static $statKey = 'intel';
|
static protected $statKey = 'intel';
|
||||||
static $actionKey = '농업';
|
static protected $actionKey = '농업';
|
||||||
static $actionName = '농지 개간';
|
static protected $actionName = '농지 개간';
|
||||||
static $debuffFront = 0.5;
|
static protected $debuffFront = 0.5;
|
||||||
}
|
}
|
||||||
@@ -19,11 +19,11 @@ use function sammo\getGeneralLeadership;
|
|||||||
|
|
||||||
|
|
||||||
class che_상업투자 extends Command\GeneralCommand{
|
class che_상업투자 extends Command\GeneralCommand{
|
||||||
static $cityKey = 'comm';
|
static protected $cityKey = 'comm';
|
||||||
static $statKey = 'intel';
|
static protected $statKey = 'intel';
|
||||||
static $actionKey = '상업';
|
static protected $actionKey = '상업';
|
||||||
static $actionName = '상업 투자';
|
static protected $actionName = '상업 투자';
|
||||||
static $debuffFront = 0.5;
|
static protected $debuffFront = 0.5;
|
||||||
|
|
||||||
protected function init(){
|
protected function init(){
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ use \sammo\Util;
|
|||||||
use \sammo\JosaUtil;
|
use \sammo\JosaUtil;
|
||||||
|
|
||||||
class che_성벽보수 extends che_상업투자{
|
class che_성벽보수 extends che_상업투자{
|
||||||
static $cityKey = 'wall';
|
static protected $cityKey = 'wall';
|
||||||
static $statKey = 'power';
|
static protected $statKey = 'power';
|
||||||
static $actionKey = '성벽';
|
static protected $actionKey = '성벽';
|
||||||
static $actionName = '성벽 보수';
|
static protected $actionName = '성벽 보수';
|
||||||
static $debuffFront = 0.25;
|
static protected $debuffFront = 0.25;
|
||||||
}
|
}
|
||||||
@@ -5,9 +5,9 @@ use \sammo\Util;
|
|||||||
use \sammo\JosaUtil;
|
use \sammo\JosaUtil;
|
||||||
|
|
||||||
class che_수비강화 extends che_상업투자{
|
class che_수비강화 extends che_상업투자{
|
||||||
static $cityKey = 'def';
|
static protected $cityKey = 'def';
|
||||||
static $statKey = 'power';
|
static protected $statKey = 'power';
|
||||||
static $actionKey = '수비';
|
static protected $actionKey = '수비';
|
||||||
static $actionName = '수비 강화';
|
static protected $actionName = '수비 강화';
|
||||||
static $debuffFront = 0.5;
|
static protected $debuffFront = 0.5;
|
||||||
}
|
}
|
||||||
@@ -19,10 +19,10 @@ use function sammo\getGeneralLeadership;
|
|||||||
|
|
||||||
|
|
||||||
class che_정착장려 extends Command\GeneralCommand{
|
class che_정착장려 extends Command\GeneralCommand{
|
||||||
static $cityKey = 'pop';
|
static protected $cityKey = 'pop';
|
||||||
static $statKey = 'leader';
|
static protected $statKey = 'leader';
|
||||||
static $actionKey = '인구';
|
static protected $actionKey = '인구';
|
||||||
static $actionName = '정착 장려';
|
static protected $actionName = '정착 장려';
|
||||||
|
|
||||||
protected function init(){
|
protected function init(){
|
||||||
|
|
||||||
|
|||||||
@@ -19,10 +19,10 @@ use function sammo\getGeneralLeadership;
|
|||||||
|
|
||||||
|
|
||||||
class che_주민선정 extends Command\GeneralCommand{
|
class che_주민선정 extends Command\GeneralCommand{
|
||||||
static $cityKey = 'trust';
|
static protected $cityKey = 'trust';
|
||||||
static $statKey = 'leader';
|
static protected $statKey = 'leader';
|
||||||
static $actionKey = '민심';
|
static protected $actionKey = '민심';
|
||||||
static $actionName = '주민 선정';
|
static protected $actionName = '주민 선정';
|
||||||
|
|
||||||
protected function init(){
|
protected function init(){
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ use \sammo\Util;
|
|||||||
use \sammo\JosaUtil;
|
use \sammo\JosaUtil;
|
||||||
|
|
||||||
class che_치안강화 extends che_상업투자{
|
class che_치안강화 extends che_상업투자{
|
||||||
static $cityKey = 'secu';
|
static protected $cityKey = 'secu';
|
||||||
static $statKey = 'power';
|
static protected $statKey = 'power';
|
||||||
static $actionKey = '치안';
|
static protected $actionKey = '치안';
|
||||||
static $actionName = '치안 강화';
|
static protected $actionName = '치안 강화';
|
||||||
static $debuffFront = 1;
|
static protected $debuffFront = 1;
|
||||||
}
|
}
|
||||||
@@ -6,6 +6,8 @@ use \sammo\Util;
|
|||||||
use \sammo\JosaUtil;
|
use \sammo\JosaUtil;
|
||||||
|
|
||||||
class 휴식 extends Command\GeneralCommand{
|
class 휴식 extends Command\GeneralCommand{
|
||||||
|
static protected $actionName = '휴식';
|
||||||
|
|
||||||
protected function init(){
|
protected function init(){
|
||||||
//아무것도 하지 않음
|
//아무것도 하지 않음
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ use \sammo\JosaUtil;
|
|||||||
use sammo\LastTurn;
|
use sammo\LastTurn;
|
||||||
|
|
||||||
class 휴식 extends Command\NationCommand{
|
class 휴식 extends Command\NationCommand{
|
||||||
|
static protected $actionName = '휴식';
|
||||||
|
|
||||||
protected function init(){
|
protected function init(){
|
||||||
//아무것도 하지 않음
|
//아무것도 하지 않음
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user