Files
core/hwe/sammo/BaseItem.php
T

40 lines
825 B
PHP

<?php
namespace sammo;
use \sammo\iAction;
use \sammo\General;
//XXX: 아직 아이템 구현이 끝나지 않았으므로 바뀔 수 있음
class BaseItem implements iAction{
use \sammo\DefaultAction;
protected $id = 0;
protected $name = '-';
protected $info = '';
protected $cost = null;
protected $consumable = false;
protected $buyable = false;
protected $reqSecu = 0;
function getID(){
return $this->id;
}
function getCost(){
return $this->cost;
}
function isConsumable(){
return $this->consumable;
}
function isBuyable(){
return $this->buyable;
}
function getReqSecu(){
return $this->reqSecu;
}
function isValidTurnItem(string $actionType, string $command):bool{
return false;
}
}