info = Info::type($type); $this->x = $this->px = $x; $this->y = $this->py = $y; $this->z = $this->pz = $z; $this->angle = 0.0; $this->radius = (float)$this->info['radius']; $this->height = (float)$this->info['height']; $this->flags = $this->info['flags']; $this->health = $this->info['health']; $this->reactiontime = $this->info['reaction']; } public function is(int $flag): bool { return ($this->flags & $flag) !== 0; } }