feat(WIP): processing 작업
This commit is contained in:
@@ -475,18 +475,9 @@ abstract class BaseCommand{
|
||||
|
||||
abstract public function run():bool;
|
||||
|
||||
public function getJSPlugins():array {
|
||||
return [];
|
||||
}
|
||||
public function exportJSVars():array {
|
||||
return [];
|
||||
}
|
||||
public function getCSSFiles():array {
|
||||
return [];
|
||||
}
|
||||
public function getForm():string{
|
||||
throw new \sammo\MustNotBeReachedException();
|
||||
}
|
||||
|
||||
public function getLastTurn():LastTurn{
|
||||
return $this->generalObj->getLastTurn();
|
||||
|
||||
@@ -170,13 +170,6 @@ class che_강행 extends Command\GeneralCommand
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getJSPlugins(): array
|
||||
{
|
||||
return [
|
||||
'defaultSelectCityByMap'
|
||||
];
|
||||
}
|
||||
|
||||
public function exportJSVars(): array
|
||||
{
|
||||
return [
|
||||
@@ -185,25 +178,4 @@ class che_강행 extends Command\GeneralCommand
|
||||
'distanceList' => \sammo\JSCitiesBasedOnDistance($this->generalObj->getCityID(), 3),
|
||||
];
|
||||
}
|
||||
|
||||
public function getForm(): string
|
||||
{
|
||||
$currentCityID = $this->generalObj->getCityID();
|
||||
$currentCityName = CityConst::byID($currentCityID)->name;
|
||||
|
||||
ob_start();
|
||||
?>
|
||||
<?= \sammo\getMapHtml() ?><br>
|
||||
선택된 도시로 강행합니다.<br>
|
||||
최대 3칸내 도시로만 강행이 가능합니다.<br>
|
||||
목록을 선택하거나 도시를 클릭하세요.<br>
|
||||
<?= $currentCityName ?> => <div id="setDestCityIDForm"></div><br>
|
||||
<?= \sammo\optionsForCities() ?><br>
|
||||
</select> <input type=button id="commonSubmit" value="<?= $this->getName() ?>"><br>
|
||||
<br>
|
||||
<br>
|
||||
<?= printCitiesBasedOnDistance($currentCityID, 3) ?>
|
||||
<?php
|
||||
return ob_get_clean();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,7 @@ use \sammo\GameUnitConst;
|
||||
use \sammo\LastTurn;
|
||||
use \sammo\Command;
|
||||
|
||||
use function sammo\getMapTheme;
|
||||
use function \sammo\printCitiesBasedOnDistance;
|
||||
use function sammo\tryUniqueItemLottery;
|
||||
|
||||
@@ -177,17 +178,12 @@ class che_이동 extends Command\GeneralCommand
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getJSPlugins(): array
|
||||
{
|
||||
return [
|
||||
'defaultSelectCityByMap'
|
||||
];
|
||||
}
|
||||
|
||||
public function exportJSVars(): array
|
||||
{
|
||||
return [
|
||||
'cities' => \sammo\JSOptionsForCities()
|
||||
'cities' => \sammo\JSOptionsForCities(),
|
||||
'mapTheme' => getMapTheme(),
|
||||
'distanceList' => \sammo\JSCitiesBasedOnDistance($this->generalObj->getCityID(), 1),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user