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 equipWeapon($kind) { $this->weapon = $kind; $this->weaponLevel = Properties::getWeaponLevel($kind); }