示例#1
0
 def __init__(self, x, y, type, id, p_die, p_restart):
     """
     Constructor needs a type, coordinates in the maze
     and an id
     """
     Cell.__init__(self, x, y, type, id, "R")
     self.p_die = p_die
     self.p_restart = p_restart
示例#2
0
文件: Cracks.py 项目: ClementBsn/Maze
 def __init__(self, x, y, type, id):
     """ Constructor """
     Cell.__init__(self, x, y, type, id, "C")
示例#3
0
文件: Enemy.py 项目: ClementBsn/Maze
	def __init__(self, x, y, type, id, p_enemy):
		""" Constructor """
		Cell.__init__(self, x, y, type, id, "E")
		self.p_enemy = p_enemy
示例#4
0
 def __init__(self, x, y, type, id):
     """
     Constructor needs a type, coordinates in the maze
     and an id
     """
     Cell.__init__(self, x, y, type, id, "#")