Ejemplo n.º 1
0
 def __init__(self, name, description):
     """
     Initialize UniquePlace object.
     
     @param name:           The name of the UniquePlace.
     @param description:    A description of the UniquePlace.
     """
     #Call parent class init function
     Place.__init__(self, name, description)
Ejemplo n.º 2
0
 def __init__(self, name, description, greetings):
     """
     Initialize UniquePlace object.
     
     @param name:            The name of the UniquePlace.
     @param description:     A description of the UniquePlace.
     @param greetings:       The greetings the user gets as he enters.
     """
     #Call parent class init function
     Place.__init__(self, name, description, greetings)
Ejemplo n.º 3
0
 def __init__(self, stare_ref, player, name, passwd, hall_ref):
     Place.__init__(self, stare_ref)
     
     self._owner = player
     self._name = name
     self._passwd = passwd
     self._hall_ref = hall_ref
     self._player_list[player._account] = player
     self._turn_list = [player]
     player._loc_ref = weakref.ref(self)
     self._game = Game(weakref.ref(self))
Ejemplo n.º 4
0
    def __init__(self, name, description, greetings, buildings = None):
        """
        Initializes the city.

        @param name:           The name of the city.
        @param description:    A description of the city.
        @param greetings:      The greetings the user gets as he enters the 
                               city.
        @param buildings:      A list of the buildings in the city.
        """
        #Call parent's init method
        Place.__init__(self, name, description, greetings)
        
        self._buildings = buildings
Ejemplo n.º 5
0
 def __init__(self, stare_ref):
     Place.__init__(self, stare_ref)
     
     self._room_list = {}