2020-11-01 16:45:29 +01:00
|
|
|
#pragma once
|
|
|
|
#include "TPinballComponent.h"
|
2021-01-30 12:19:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
class TLight;
|
2021-01-05 10:02:43 +01:00
|
|
|
|
|
|
|
struct TLightGroup_player_backup
|
|
|
|
{
|
|
|
|
int MessageField;
|
|
|
|
int MessageField2;
|
|
|
|
float Timer1Time;
|
|
|
|
int Unknown3;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-11-01 16:45:29 +01:00
|
|
|
class TLightGroup :
|
2021-01-05 10:02:43 +01:00
|
|
|
public TPinballComponent
|
2020-11-01 16:45:29 +01:00
|
|
|
{
|
|
|
|
public:
|
2021-01-05 10:02:43 +01:00
|
|
|
TLightGroup(TPinballTable* table, int groupIndex);
|
|
|
|
~TLightGroup() override;
|
|
|
|
int Message(int code, float value) override;
|
2021-01-17 16:26:03 +01:00
|
|
|
virtual void Reset();
|
2021-01-05 10:02:43 +01:00
|
|
|
void reschedule_animation(float time);
|
|
|
|
void start_animation();
|
|
|
|
int next_light_up();
|
|
|
|
int next_light_down();
|
2020-11-01 16:45:29 +01:00
|
|
|
|
2021-01-05 10:02:43 +01:00
|
|
|
static void TimerExpired(int timerId, void* caller);
|
|
|
|
static void NotifyTimerExpired(int timerId, void* caller);
|
|
|
|
|
2021-01-30 12:19:25 +01:00
|
|
|
objlist_class<TLight>* List;
|
2021-01-05 10:02:43 +01:00
|
|
|
float Timer1Time;
|
|
|
|
float Timer1TimeDefault;
|
|
|
|
int MessageField2;
|
|
|
|
int AnimationFlag;
|
|
|
|
int NotifyTimer;
|
|
|
|
int Timer;
|
|
|
|
TLightGroup_player_backup PlayerData[4];
|
|
|
|
};
|