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 = []
Exemplo n.º 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
Exemplo n.º 3
0
 def __init__(self, humanView):
   Process.__init__(self)
   self._humanView = humanView
Exemplo n.º 4
0
 def __init__(self, world, gameView):
   Process.__init__(self)
   self._world = world
   self._gameView = gameView
   self._buildings = []
Exemplo n.º 5
0
 def __init__(self, gameView):
   Process.__init__(self)
   self._gameView = gameView
Exemplo n.º 6
0
 def __init__(self, world):
   Process.__init__(self)
   self._world = world
Exemplo n.º 7
0
 def __init__(self, camera):
   Process.__init__(self)
   self.c = camera
   self.c.center = Vector2(75, 63)
   self.c.zoom(1/3)