2020-11-01 15:45:29 +00:00
|
|
|
#pragma once
|
2020-11-28 12:59:42 +00:00
|
|
|
#include "TCollisionComponent.h"
|
|
|
|
|
2020-11-01 15:45:29 +00:00
|
|
|
class TPopupTarget :
|
2020-11-28 12:59:42 +00:00
|
|
|
public TCollisionComponent
|
2020-11-01 15:45:29 +00:00
|
|
|
{
|
|
|
|
public:
|
2021-01-17 15:26:03 +00:00
|
|
|
TPopupTarget(TPinballTable* table, int groupIndex);
|
|
|
|
int Message(int code, float value) override;
|
|
|
|
void put_scoring(int index, int score) override;
|
|
|
|
int get_scoring(int index) override;
|
|
|
|
void Collision(TBall* ball, vector_type* nextPosition, vector_type* direction, float coef,
|
|
|
|
TEdgeSegment* edge) override;
|
|
|
|
|
|
|
|
static void TimerExpired(int timerId, void* caller);
|
|
|
|
|
|
|
|
int Timer;
|
|
|
|
float TimerTime;
|
2021-10-02 15:58:54 +00:00
|
|
|
int Scores[3]{};
|
|
|
|
int PlayerMessagefieldBackup[4]{};
|
2020-11-01 15:45:29 +00:00
|
|
|
};
|