예제 #1
0
    def find_next_room(self, direction):
        """This method searches the current room to see if a room exists in that direction.

        :param direction: The direction that you want to move to
        :return: The room object if it exists, or none if it does not
        """
        name_of_room = getattr(self.current_location, direction)
        return globals()[name_of_room]


# Option 2 - set all at once, modify controller
# Objects
# Weapons
rapier1 = Objects.Rapier()
dullsword1 = Objects.DullSword()
broadsword1 = Objects.BroadSword()
crysknife1 = Objects.CrysKnife()
rapier2 = Objects.Rapier()
dummy1 = Objects.Dummy()
full_shield1 = Objects.FullShield()
life1 = Objects.Life()
atomic1 = Objects.Bow()
lasgun1 = Objects.Lasgun()
needle1 = Objects.Needle()
crysknife2 = Objects.CrysKnife()
broadsword2 = Objects.BroadSword()
dullsword2 = Objects.DullSword()
wood_sword1 = Objects.WoodSword()
rapier3 = Objects.Rapier()
tooth1 = Objects.Tooth
# Armor