public function __construct($id, $kind, $x, $y) { parent::__construct($id, "mob", $kind, $x, $y); $this->updateHitPoints(); $this->spawningX = $x; $this->spawningY = $y; $this->armorLevel = Properties::getArmorLevel($this->kind); $this->weaponLevel = Properties::getWeaponLevel($this->kind); $this->hatelist = array(); $this->respawnTimeout = null; $this->returnTimeout = null; $this->isDead = false; }
public function equipArmor($kind) { $this->armor = $kind; $this->armorLevel = Properties::getArmorLevel($kind); }