diff options
Diffstat (limited to 'library')
-rw-r--r-- | library/pippy/scholar/scholar.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/library/pippy/scholar/scholar.py b/library/pippy/scholar/scholar.py index e69de29..1f7224f 100644 --- a/library/pippy/scholar/scholar.py +++ b/library/pippy/scholar/scholar.py @@ -0,0 +1,23 @@ +# TODO: separate into different files + +### classes + +class Game_object(object): + def __init__(self): + self.description = "Enter this for every object" + self.methods = ["examine", "look"] + self.aliases = [] + #self.ID = get_ID.next() + +class Direction(Game_object): + def __init__(self, name): + Game_object.__init__(self) + self.methods.append("go") + self.name = name + +class Player(Game_object): + def __init__(self, name): + Game_object.__init__(self) + self.name = name + self.position = "A room object goes here!" + self.known_commands = ["examine", "go"] |