Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/FortuneMaker.activity/Room.py
diff options
context:
space:
mode:
authorJustin Lewis <jtl1728@rit.edu>2010-01-15 20:37:01 (GMT)
committer Justin Lewis <jtl1728@rit.edu>2010-01-15 20:37:01 (GMT)
commit07bedb5d95f3deaa62a45562f8277550d2cf7024 (patch)
tree36c6dbe26a41bb004657c05acfa3d6b839867e3b /FortuneMaker.activity/Room.py
parent1f381b93e086ff32557ba6bf49d6d30f719ca133 (diff)
Added room options. still doesn't save but now shows options
Diffstat (limited to 'FortuneMaker.activity/Room.py')
-rw-r--r--FortuneMaker.activity/Room.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/FortuneMaker.activity/Room.py b/FortuneMaker.activity/Room.py
index ed7232a..c6f3a00 100644
--- a/FortuneMaker.activity/Room.py
+++ b/FortuneMaker.activity/Room.py
@@ -36,18 +36,29 @@ class Room:
else:
print "INVALID DOOR"
+ def get_door( self, door):
+ if door in DOOR_INDEX:
+ return self.doors[door][1]
+
def set_room_flag(self, flag):
if flag in SPEC_FLAGS:
self.special = flag
else:
print "INVALID FLAG"
+ def get_room_flag( self ):
+ return self.special
+
def set_enemy( self, pos, enemy ):
if pos >= 0 and pos <=3 and enemy in ENEM_INDEX:
self.enemy[pos] = enemy
else:
print "INVALID ENEMY POS OR ID"
+ def get_enemy(self, pos):
+ if pos >=0 and pos <=3:
+ return self.enemy[pos]
+
def set_item(self, pos, id, flag):
if pos >= 0 and pos <=3 and id in ITEM_INDEX and flag in ITEM_FLAGS:
self.item[ pos ] = [id, flag]