SpaceCadetPinball/SpaceCadetPinball/TLightGroup.h

41 lines
834 B
C
Raw Normal View History

#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;
MessageCode MessageField2;
2021-01-05 10:02:43 +01:00
float Timer1Time;
int Unknown3;
};
class TLightGroup :
public TPinballComponent
{
public:
2021-01-05 10:02:43 +01:00
TLightGroup(TPinballTable* table, int groupIndex);
~TLightGroup() override = default;
int Message(MessageCode code, float value) override;
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();
2021-01-05 10:02:43 +01:00
static void TimerExpired(int timerId, void* caller);
static void NotifyTimerExpired(int timerId, void* caller);
std::vector<TLight*> List;
float Timer1Time{};
2021-01-05 10:02:43 +01:00
float Timer1TimeDefault;
MessageCode MessageField2{};
int AnimationFlag{};
2021-01-05 10:02:43 +01:00
int NotifyTimer;
int Timer;
TLightGroup_player_backup PlayerData[4]{};
2021-01-05 10:02:43 +01:00
};