From cde6ea2065ceb2f8a7cc8eeec4f98dfa7c8b9ea0 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 1 May 2022 09:27:56 -0700 Subject: [PATCH] Make the MovePlayerAction.Direction values Vectors --- roguebasin/actions.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/roguebasin/actions.py b/roguebasin/actions.py index 1caf3a2..f5b34f9 100644 --- a/roguebasin/actions.py +++ b/roguebasin/actions.py @@ -12,14 +12,14 @@ class RegenerateRoomsAction(Action): class MovePlayerAction(Action): class Direction: - North = (0, -1) - NorthEast = (1, -1) - East = (1, 0) - SouthEast = (1, 1) - South = (0, 1) - SouthWest = (-1, 1) - West = (-1, 0) - NorthWest = (-1, -1) + North = Vector(0, -1) + NorthEast = Vector(1, -1) + East = Vector(1, 0) + SouthEast = Vector(1, 1) + South = Vector(0, 1) + SouthWest = Vector(-1, 1) + West = Vector(-1, 0) + NorthWest = Vector(-1, -1) def __init__(self, direction: Direction): self.direction = direction \ No newline at end of file