コード例 #1
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)
コード例 #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)
コード例 #3
0
 def __init__(self, vehicle):
     self.__healthController = HealthController(vehicle.health, vehicle.typeDescriptor.maxHealth)
コード例 #4
0
 def __init__(self, vehicle):
     self.__healthController = HealthController(vehicle.health, vehicle.typeDescriptor.maxHealth)
コード例 #5
0
 def __init__(self, vehicle):
     self.__healthController = HealthController(vehicle.health,
                                                vehicle.maxHealth)