public function __construct($hp, $dmg, $armour) { parent::__construct(); $this->hp = $hp; $this->dmg = $dmg; $this->armour = $armour; }
public function __construct(\Database\Table $table, $name, $length = 255) { parent::__construct($table, $name); $this->size->setRange(0, 255); $this->setSize($length); $this->default->setLimit($length); }
/** * Player constructor. * @param $mana */ public function __construct($hitpoints, $mana) { parent::__construct($hitpoints, 0); $this->mana = $mana; }
public function __construct($weapon, $armor, $ring1, $ring2) { parent::__construct(100, 0, 0); $this->addWeapon($weapon); $this->addItemArmor($armor); $this->addRing($ring1); $this->addRing($ring2); }