예제 #1
0
파일: actor.py 프로젝트: tomviner/text-game
    def __init__(self):
        Item.__init__(self)
        self.pronouns = {}

        self.state = states.Running(self)
        '''State to handle any input for this actor.'''

        self.output = None
        '''Output object last associated with this actor.'''
예제 #2
0
파일: actor.py 프로젝트: jiiieff/pyf
	def __init__(self):
		Item.__init__(self)
		self.pronouns = {}
		
		self.state = states.Running(self)
		'''State to handle any input for this actor.'''
		
		self.output = None
		'''Output object last associated with this actor.'''
예제 #3
0
 def __init__(self, gamer=None, x=None, y=None):
     Item.__init__(self, gamer, x, y)
     self.isCharacter = True
     self.lastMove = None
예제 #4
0
파일: weapons.py 프로젝트: eeue56/realrpg
 def __init__(self, name,  uses, strength):
     Item.__init__(self, name, uses)
     self.strength = strength
예제 #5
0
파일: potions.py 프로젝트: eeue56/realrpg
 def __init__(self, name, strength):
     Item.__init__(self, name, 1)
     self.strength = strength