class LightControllersManager:
    def __init__(self, vehicle):
        self.__healthController = HealthController(vehicle.health, vehicle.typeDescriptor.maxHealth)

    def destroy(self):
        LightManager.g_instance.setStartupLights()

    def executeShotLight(self):
        LightManager.g_instance.startLightEffect("Shot")

    def executeHitLight(self):
        LightManager.g_instance.startLightEffect("Hit")

    def update(self, vehicle):
        self.__healthController.updateHealth(vehicle.health)
Exemplo n.º 2
0
class LightControllersManager:

    def __init__(self, vehicle):
        self.__healthController = HealthController(vehicle.health, vehicle.typeDescriptor.maxHealth)

    def destroy(self):
        LightManager.g_instance.setStartupLights()

    def executeShotLight(self):
        LightManager.g_instance.startLightEffect('Shot')

    def executeHitLight(self):
        LightManager.g_instance.startLightEffect('Hit')

    def update(self, vehicle):
        self.__healthController.updateHealth(vehicle.health)
 def __init__(self, vehicle):
     self.__healthController = HealthController(vehicle.health, vehicle.typeDescriptor.maxHealth)
Exemplo n.º 4
0
 def __init__(self, vehicle):
     self.__healthController = HealthController(vehicle.health, vehicle.typeDescriptor.maxHealth)
Exemplo n.º 5
0
 def __init__(self, vehicle):
     self.__healthController = HealthController(vehicle.health,
                                                vehicle.maxHealth)