[go: up one dir, main page]

Menu

[899825]: / room / Room.py  Maximize  Restore  History

Download this file

24 lines (17 with data), 576 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from Directions import *
class Room:
def __init__(self, id, description, longdescription, directions):
self.id = id
self.description = description
self.longdescription = longdescription
self.directions = directions
def getDirections(self):
return self.directions
def getId(self):
return self.id
def getDescription(self):
return self.description
def getLongDescription(self):
return self.longdescription
def printInfo(self):
print self.description + "\n\n" + self.longdescription