Ejemplo n.º 1
0
 public function initEntity()
 {
     $this->setMaxHealth(1);
     $this->setHealth($this->getMaxHealth());
     $this->moveVector[Entity::NORTH] = new Vector3(-1, 0, 0);
     $this->moveVector[Entity::SOUTH] = new Vector3(1, 0, 0);
     $this->moveVector[Entity::EAST] = new Vector3(0, 0, -1);
     $this->moveVector[Entity::WEST] = new Vector3(0, 0, 1);
     parent::initEntity();
 }
Ejemplo n.º 2
0
 public function initEntity()
 {
     $this->setMaxHealth(4);
     parent::initEntity();
 }
Ejemplo n.º 3
0
 public function initEntity()
 {
     $this->setMaxHealth(1);
     $this->setHealth($this->getMaxHealth());
     parent::initEntity();
 }