첫 화면 띄우기 성공

This commit is contained in:
2018-11-26 04:05:34 +09:00
parent 8bb9ed8a18
commit af9cbb47ef
73 changed files with 350 additions and 289 deletions
+25 -9
View File
@@ -10,17 +10,33 @@ use function sammo\getItemCost2;
//XXX:임시용!
class che_Dummy extends \sammo\BaseItem{
static $id;
static $name;
static $info;
static $cost;
static $consumable = false;
protected $_id;
protected $_name;
protected $_info;
protected $_cost;
protected $_consumable = false;
function getID(){
return $this->_id;
}
function getName(){
return $this->_name;
}
function getInfo(){
return $this->_info;
}
function getCost(){
return $this->_cost;
}
function isConsumable(){
return $this->_consumable;
}
public function __construct(int $itemCode)
{
$this->id = $itemCode = true;
[$this->name, $this->info] = getItemInfo($itemCode);
$this->cost = getItemCost2($itemCode);
$this->consumable = isConsumable($itemCode);
$this->_id = $itemCode = true;
[$this->_name, $this->_info] = getItemInfo($itemCode);
$this->_cost = getItemCost2($itemCode);
$this->_consumable = isConsumable($itemCode);
}
}