forked from devsam/core
$reqArg 지정
This commit is contained in:
@@ -213,7 +213,6 @@ if ($session->userGrade >= 5) {
|
||||
<input type=button value=접속정보 onclick=window.open('_admin6.php')>
|
||||
<input type=button value=로그정보 onclick=window.open('_admin7.php')>
|
||||
<input type=button value=외교정보 onclick=window.open('_admin8.php')>
|
||||
<input type=button value=시뮬 onclick=window.open('_simul.php')>
|
||||
<input type=button value=119 onclick=window.open('_119.php')>
|
||||
</td></tr>
|
||||
";
|
||||
@@ -221,7 +220,6 @@ if ($session->userGrade >= 5) {
|
||||
else if($session->userGrade == 4){
|
||||
echo "
|
||||
<tr><td colspan=5>
|
||||
<input type=button value=시뮬 onclick=window.open('_simul.php')>
|
||||
<input type=button value=119 onclick=window.open('_119.php')>
|
||||
</td></tr>
|
||||
";
|
||||
|
||||
@@ -16,6 +16,7 @@ abstract class BaseCommand{
|
||||
* @var General|null $destGeneralObj
|
||||
*/
|
||||
static protected $actionName = 'CommandName';
|
||||
static public $reqArg = false;
|
||||
|
||||
protected $generalObj = null;
|
||||
protected $city = null;
|
||||
|
||||
@@ -23,6 +23,7 @@ use sammo\CityConst;
|
||||
|
||||
class che_강행 extends Command\GeneralCommand{
|
||||
static protected $actionName = '강행';
|
||||
static public $reqArg = true;
|
||||
|
||||
protected function argTest():bool{
|
||||
if(!key_exists('destCityID', $this->arg)){
|
||||
|
||||
@@ -26,6 +26,7 @@ use function sammo\GetNationColors;
|
||||
|
||||
class che_건국 extends Command\GeneralCommand{
|
||||
static protected $actionName = '건국';
|
||||
static public $reqArg = true;
|
||||
|
||||
protected function argTest():bool{
|
||||
$nationName = $this->arg['nationName']??null;
|
||||
|
||||
@@ -26,6 +26,7 @@ use sammo\MustNotBeReachedException;
|
||||
|
||||
class che_군량매매 extends Command\GeneralCommand{
|
||||
static protected $actionName = '군량매매';
|
||||
static public $reqArg = true;
|
||||
|
||||
static $itemMap = [
|
||||
'horse'=>'명마',
|
||||
|
||||
@@ -25,6 +25,7 @@ use \sammo\Constraint\ConstraintHelper;
|
||||
|
||||
class che_등용 extends Command\GeneralCommand{
|
||||
static protected $actionName = '등용';
|
||||
static public $reqArg = true;
|
||||
|
||||
protected function argTest():bool{
|
||||
//NOTE: 사망 직전에 '등용' 턴을 넣을 수 있으므로, 존재하지 않는 장수여도 argTest에서 바로 탈락시키지 않음
|
||||
|
||||
@@ -24,6 +24,7 @@ use sammo\MustNotBeReachedException;
|
||||
|
||||
class che_랜덤임관 extends Command\GeneralCommand{
|
||||
static protected $actionName = '랜덤임관';
|
||||
static public $reqArg = true;
|
||||
|
||||
protected function argTest():bool{
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ use \sammo\{
|
||||
};
|
||||
|
||||
|
||||
class che_모병 extends Command\GeneralCommand{
|
||||
class che_모병 extends che_징병{
|
||||
static protected $actionName = '모병';
|
||||
static protected $costOffset = 2;
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ use \sammo\Constraint\ConstraintHelper;
|
||||
|
||||
class che_선양 extends Command\GeneralCommand{
|
||||
static protected $actionName = '선양';
|
||||
static public $reqArg = true;
|
||||
|
||||
protected function argTest():bool{
|
||||
//NOTE: 사망 직전에 '선양' 턴을 넣을 수 있으므로, 존재하지 않는 장수여도 argTest에서 바로 탈락시키지 않음
|
||||
|
||||
@@ -23,6 +23,7 @@ use sammo\CityConst;
|
||||
|
||||
class che_이동 extends Command\GeneralCommand{
|
||||
static protected $actionName = '이동';
|
||||
static public $reqArg = true;
|
||||
|
||||
protected function argTest():bool{
|
||||
if(!key_exists('destCityID', $this->arg)){
|
||||
|
||||
@@ -23,6 +23,7 @@ use sammo\CityConst;
|
||||
|
||||
class che_임관 extends Command\GeneralCommand{
|
||||
static protected $actionName = '임관';
|
||||
static public $reqArg = true;
|
||||
|
||||
protected function argTest():bool{
|
||||
$destNationID = $this->arg['destNationID']??null;
|
||||
|
||||
@@ -25,6 +25,7 @@ use \sammo\Constraint\ConstraintHelper;
|
||||
|
||||
class che_장비매매 extends Command\GeneralCommand{
|
||||
static protected $actionName = '장비매매';
|
||||
static public $reqArg = true;
|
||||
|
||||
static $itemMap = [
|
||||
'horse'=>'명마',
|
||||
|
||||
@@ -24,6 +24,7 @@ use \sammo\Constraint\ConstraintHelper;
|
||||
|
||||
class che_증여 extends Command\GeneralCommand{
|
||||
static protected $actionName = '증여';
|
||||
static public $reqArg = true;
|
||||
|
||||
protected function argTest():bool{
|
||||
//NOTE: 사망 직전에 '증여' 턴을 넣을 수 있으므로, 존재하지 않는 장수여도 argTest에서 바로 탈락시키지 않음
|
||||
|
||||
@@ -26,6 +26,7 @@ class che_징병 extends Command\GeneralCommand{
|
||||
*/
|
||||
static protected $actionName = '징병';
|
||||
static protected $costOffset = 1;
|
||||
static public $reqArg = true;
|
||||
|
||||
static protected $defaultTrain;
|
||||
static protected $defaultAtmos;
|
||||
|
||||
@@ -24,6 +24,7 @@ use sammo\CityConst;
|
||||
|
||||
class che_첩보 extends Command\GeneralCommand{
|
||||
static protected $actionName = '첩보';
|
||||
static public $reqArg = true;
|
||||
|
||||
protected function argTest():bool{
|
||||
if(!key_exists('destCityID', $this->arg)){
|
||||
|
||||
@@ -24,6 +24,7 @@ use sammo\CityConst;
|
||||
|
||||
class che_출병 extends Command\GeneralCommand{
|
||||
static protected $actionName = '출병';
|
||||
static public $reqArg = true;
|
||||
|
||||
protected function argTest():bool{
|
||||
if(!key_exists('destCityID', $this->arg)){
|
||||
|
||||
@@ -24,6 +24,7 @@ use \sammo\Constraint\ConstraintHelper;
|
||||
|
||||
class che_헌납 extends Command\GeneralCommand{
|
||||
static protected $actionName = '헌납';
|
||||
static public $reqArg = true;
|
||||
|
||||
protected function argTest():bool{
|
||||
if(!key_exists('isGold', $this->arg)){
|
||||
|
||||
@@ -23,6 +23,7 @@ use sammo\CityConst;
|
||||
|
||||
class che_화계 extends Command\GeneralCommand{
|
||||
static protected $actionName = '화계';
|
||||
static public $reqArg = true;
|
||||
|
||||
static protected $statType = 'intel';
|
||||
static protected $injuryGeneral = true;
|
||||
|
||||
@@ -22,6 +22,7 @@ use \sammo\Constraint\ConstraintHelper;
|
||||
|
||||
class che_몰수 extends Command\NationCommand{
|
||||
static protected $actionName = '몰수';
|
||||
static public $reqArg = true;
|
||||
|
||||
protected function argTest():bool{
|
||||
//NOTE: 사망 직전에 턴을 넣을 수 있으므로, 존재하지 않는 장수여도 argTest에서 바로 탈락시키지 않음
|
||||
|
||||
@@ -22,6 +22,7 @@ use \sammo\Constraint\ConstraintHelper;
|
||||
|
||||
class che_발령 extends Command\NationCommand{
|
||||
static protected $actionName = '발령';
|
||||
static public $reqArg = true;
|
||||
|
||||
protected function argTest():bool{
|
||||
//NOTE: 사망 직전에 턴을 넣을 수 있으므로, 존재하지 않는 장수여도 argTest에서 바로 탈락시키지 않음
|
||||
|
||||
@@ -22,6 +22,7 @@ use \sammo\Constraint\ConstraintHelper;
|
||||
|
||||
class che_불가침제의 extends Command\NationCommand{
|
||||
static protected $actionName = '불가침제의';
|
||||
static public $reqArg = true;
|
||||
|
||||
protected function argTest():bool{
|
||||
//NOTE: 멸망 직전에 턴을 넣을 수 있으므로, 존재하지 않는 국가여도 argTest에서 바로 탈락시키지 않음
|
||||
|
||||
@@ -22,6 +22,7 @@ use \sammo\Constraint\ConstraintHelper;
|
||||
|
||||
class che_선전포고 extends Command\NationCommand{
|
||||
static protected $actionName = '선전포고';
|
||||
static public $reqArg = true;
|
||||
|
||||
protected function argTest():bool{
|
||||
//NOTE: 멸망 직전에 턴을 넣을 수 있으므로, 존재하지 않는 국가여도 argTest에서 바로 탈락시키지 않음
|
||||
|
||||
@@ -22,6 +22,7 @@ use \sammo\Constraint\ConstraintHelper;
|
||||
|
||||
class che_포상 extends Command\NationCommand{
|
||||
static protected $actionName = '포상';
|
||||
static public $reqArg = true;
|
||||
|
||||
protected function argTest():bool{
|
||||
//NOTE: 사망 직전에 '포상' 턴을 넣을 수 있으므로, 존재하지 않는 장수여도 argTest에서 바로 탈락시키지 않음
|
||||
|
||||
Reference in New Issue
Block a user