<?phpnamespace App\Game;/** One creature / object in a room (the fields of the original room record, named). */final class Entity{ public int $kind = Values::K_NONE; public int $y = 0; public int $x = 0; public int $frame = 0; public int $timer = 0; public int $rows = 24; public int $flags = 0; public int $a7 = 0; public int $a8 = 0; public int $next = 0; public bool $drawn = false; public static function none(): self { return new self(); } public function used(): bool { return $this->kind !== Values::K_NONE; } public function copyFrom(self $o): void { $this->kind = $o->kind; $this->y = $o->y; $this->x = $o->x; $this->frame = $o->frame; $this->timer = $o->timer; $this->rows = $o->rows; $this->flags = $o->flags; $this->a7 = $o->a7; $this->a8 = $o->a8; $this->next = $o->next; $this->drawn = $o->drawn; } public function clear(): void { $this->kind = Values::K_NONE; $this->y = 0; $this->x = 0; $this->frame = 0; $this->timer = 0; $this->rows = 24; $this->flags = 0; $this->a7 = 0; $this->a8 = 0; $this->next = 0; $this->drawn = false; }}