def __init__(self, building, gameView, particleNum, layer):
   Process.__init__(self)
   self.building = building
   self.world = self.building._world
   self.gameView = gameView
   self.gameView._views.append(self)
   self.particleNum = particleNum
   self.layer = layer
   self.particles = []
예제 #2
0
 def __init__(self, world, gameView):
   Process.__init__(self)
   self._world = world
   self._gameView = gameView
   self._world._em.registerListener(Event.RESEARCH_DEPLETED, self.addEntity, [0])
   self._toFading = []
   self._fading = []
   
   self.TO_FADING_TIME = 4000
   self.FADING_TIME = 4000
예제 #3
0
 def __init__(self, humanView):
   Process.__init__(self)
   self._humanView = humanView
예제 #4
0
 def __init__(self, world, gameView):
   Process.__init__(self)
   self._world = world
   self._gameView = gameView
   self._buildings = []
예제 #5
0
 def __init__(self, gameView):
   Process.__init__(self)
   self._gameView = gameView
예제 #6
0
 def __init__(self, world):
   Process.__init__(self)
   self._world = world
예제 #7
0
 def __init__(self, camera):
   Process.__init__(self)
   self.c = camera
   self.c.center = Vector2(75, 63)
   self.c.zoom(1/3)