턴 요약 위해 getBrief 추가

This commit is contained in:
2018-10-04 01:57:56 +09:00
parent 9b4bf148cc
commit bf630b5f7d
11 changed files with 46 additions and 39 deletions
+6 -3
View File
@@ -14,8 +14,7 @@ abstract class BaseCommand{
* @var General|null $generalObj
* @var array|null $destGeneral
*/
protected $id = 0;
protected $name = 'CommandName';
static protected $actionName = 'CommandName';
protected $generalObj = null;
protected $city = null;
@@ -126,9 +125,13 @@ abstract class BaseCommand{
abstract protected function init();
abstract protected function argTest():bool;
public function getBrief():string{
return $this->getName();
}
public function getName():string {
return static::$name;
return static::$actionName;
}
public function getLogger():ActionLogger{
@@ -19,9 +19,9 @@ use function sammo\getGeneralLeadership;
class che_기술연구 extends che_상업투자{
static $statKey = 'intel';
static $actionKey = '기술';
static $actionName = '기술 연구';
static protected $statKey = 'intel';
static protected $actionKey = '기술';
static protected $actionName = '기술 연구';
protected function init(){
@@ -5,9 +5,9 @@ use \sammo\Util;
use \sammo\JosaUtil;
class che_농지개간 extends che_상업투자{
static $cityKey = 'agri';
static $statKey = 'intel';
static $actionKey = '농업';
static $actionName = '농지 개간';
static $debuffFront = 0.5;
static protected $cityKey = 'agri';
static protected $statKey = 'intel';
static protected $actionKey = '농업';
static protected $actionName = '농지 개간';
static protected $debuffFront = 0.5;
}
@@ -19,11 +19,11 @@ use function sammo\getGeneralLeadership;
class che_상업투자 extends Command\GeneralCommand{
static $cityKey = 'comm';
static $statKey = 'intel';
static $actionKey = '상업';
static $actionName = '상업 투자';
static $debuffFront = 0.5;
static protected $cityKey = 'comm';
static protected $statKey = 'intel';
static protected $actionKey = '상업';
static protected $actionName = '상업 투자';
static protected $debuffFront = 0.5;
protected function init(){
@@ -5,9 +5,9 @@ use \sammo\Util;
use \sammo\JosaUtil;
class che_성벽보수 extends che_상업투자{
static $cityKey = 'wall';
static $statKey = 'power';
static $actionKey = '성벽';
static $actionName = '성벽 보수';
static $debuffFront = 0.25;
static protected $cityKey = 'wall';
static protected $statKey = 'power';
static protected $actionKey = '성벽';
static protected $actionName = '성벽 보수';
static protected $debuffFront = 0.25;
}
@@ -5,9 +5,9 @@ use \sammo\Util;
use \sammo\JosaUtil;
class che_수비강화 extends che_상업투자{
static $cityKey = 'def';
static $statKey = 'power';
static $actionKey = '수비';
static $actionName = '수비 강화';
static $debuffFront = 0.5;
static protected $cityKey = 'def';
static protected $statKey = 'power';
static protected $actionKey = '수비';
static protected $actionName = '수비 강화';
static protected $debuffFront = 0.5;
}
@@ -19,10 +19,10 @@ use function sammo\getGeneralLeadership;
class che_정착장려 extends Command\GeneralCommand{
static $cityKey = 'pop';
static $statKey = 'leader';
static $actionKey = '인구';
static $actionName = '정착 장려';
static protected $cityKey = 'pop';
static protected $statKey = 'leader';
static protected $actionKey = '인구';
static protected $actionName = '정착 장려';
protected function init(){
@@ -19,10 +19,10 @@ use function sammo\getGeneralLeadership;
class che_주민선정 extends Command\GeneralCommand{
static $cityKey = 'trust';
static $statKey = 'leader';
static $actionKey = '민심';
static $actionName = '주민 선정';
static protected $cityKey = 'trust';
static protected $statKey = 'leader';
static protected $actionKey = '민심';
static protected $actionName = '주민 선정';
protected function init(){
@@ -5,9 +5,9 @@ use \sammo\Util;
use \sammo\JosaUtil;
class che_치안강화 extends che_상업투자{
static $cityKey = 'secu';
static $statKey = 'power';
static $actionKey = '치안';
static $actionName = '치안 강화';
static $debuffFront = 1;
static protected $cityKey = 'secu';
static protected $statKey = 'power';
static protected $actionKey = '치안';
static protected $actionName = '치안 강화';
static protected $debuffFront = 1;
}
+2
View File
@@ -6,6 +6,8 @@ use \sammo\Util;
use \sammo\JosaUtil;
class 휴식 extends Command\GeneralCommand{
static protected $actionName = '휴식';
protected function init(){
//아무것도 하지 않음
}
+2
View File
@@ -7,6 +7,8 @@ use \sammo\JosaUtil;
use sammo\LastTurn;
class 휴식 extends Command\NationCommand{
static protected $actionName = '휴식';
protected function init(){
//아무것도 하지 않음
}