示例#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
文件: loc.py 项目: pmachata/unnamable
 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