Add actions and events modules

This commit is contained in:
Eryn Wells 2022-04-30 21:59:01 -07:00
parent 367b284d31
commit 9ddeef2561
3 changed files with 57 additions and 1 deletions

25
roguebasin/actions.py Normal file
View file

@ -0,0 +1,25 @@
#!/usr/bin/env python3
# Eryn Wells <eryn@erynwells.me>
class Action:
pass
class ExitAction(Action):
pass
class RegenerateRoomsAction(Action):
pass
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)
def __init__(self, direction: Direction):
self.direction = direction