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)