Пример #1
0
    def __init__ (self, name, initial_health,
                  initial_money, initial_clues, skills, home):

        ObjectWithLocation.__init__ (self, home)
        NamedObject.__init__ (self, name)

        self.m_health = {}
        for aspect, max in initial_health.iteritems ():
            self.m_health[aspect] = Health (aspect, max)

        self.m_money = initial_money
        self.m_clues = initial_clues
        self.m_skills = skills
        self.m_movement_points = 0
        self.m_delayed = False
        self.m_trophies = []

        self.m_hands = set ()

        self.m_items = []
        self.m_temporary_items = []
        self.m_active_items = {} # item->[hands]
Пример #2
0
 def __init__ (self, name, modifier):
     NamedObject.__init__ (self, name)
     self.m_modifier = modifier
Пример #3
0
 def __init__(self, name, modifier):
     NamedObject.__init__(self, name)
     self.m_modifier = modifier
Пример #4
0
 def __init__ (self, name, **attributes):
     ObjectWithAttributes.__init__ (self)
     NamedObject.__init__ (self, name)
     SubjectProto.__init__ (self, {}) # no special abilities
     self.apply_attributes (attributes)
Пример #5
0
 def __init__(self, name, neighborhood=None):
     ObjectWithAttributes.__init__(self)
     NamedObject.__init__(self, name)
     self.m_neighborhood = neighborhood
     self.m_connections = set()
     self.m_clue_tokens = 0
Пример #6
0
 def __init__ (self, name, neighborhood = None):
     ObjectWithAttributes.__init__ (self)
     NamedObject.__init__ (self, name)
     self.m_neighborhood = neighborhood
     self.m_connections = set ()
     self.m_clue_tokens = 0
Пример #7
0
 def __init__ (self, name, correctible):
     NamedObject.__init__ (self, name)
     self.m_correctible = correctible
Пример #8
0
 def __init__(self, name, correctible):
     NamedObject.__init__(self, name)
     self.m_correctible = correctible