TR
games/sorcery / src / Game / Spot.php · commit 613f5fb
<?phpnamespace App\Game;/** A place in a room: the two cauldrons (heart / hazard) and the two locked doors. */final class Spot{    public int $y = Values::NONE;    public int $x = 0;    public int $key = Values::NONE;    public function set(int $y, int $x, int $key = Values::NONE): void    {        $this->y = $y;        $this->x = $x;        $this->key = $key;    }    public function copyFrom(Spot $o): void    {        $this->y = $o->y;        $this->x = $o->x;        $this->key = $o->key;    }}