コード例 #1
0
ファイル: investigator.py プロジェクト: pmachata/unnamable
    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
ファイル: instances.py プロジェクト: pmachata/unnamable
 def __init__(self, proto):
     ObjectWithLocation.__init__(self, None)
     Subject.__init__(self, proto)
     self.m_combat_check = None
コード例 #3
0
ファイル: instances.py プロジェクト: pmachata/unnamable
 def __init__ (self, proto):
     ObjectWithLocation.__init__ (self, None)
     Subject.__init__ (self, proto)
     self.m_combat_check = None