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 TFlagSpinner :
|
2020-11-28 12:59:42 +00:00
|
|
|
public TCollisionComponent
|
2020-11-01 15:45:29 +00:00
|
|
|
{
|
|
|
|
public:
|
2021-01-16 14:45:29 +00:00
|
|
|
TFlagSpinner(TPinballTable* table, int groupIndex);
|
|
|
|
int Message(int code, float value) override;
|
2022-05-11 13:47:13 +00:00
|
|
|
void Collision(TBall* ball, vector2* nextPosition, vector2* direction, float coef,
|
2021-01-16 14:45:29 +00:00
|
|
|
TEdgeSegment* edge) override;
|
|
|
|
void put_scoring(int index, int score) override;
|
|
|
|
int get_scoring(int index) override;
|
|
|
|
void NextFrame();
|
|
|
|
|
|
|
|
static void SpinTimer(int timerId, void* caller);
|
|
|
|
|
2021-10-02 15:58:54 +00:00
|
|
|
float Speed{};
|
2021-01-16 14:45:29 +00:00
|
|
|
float MaxSpeed;
|
|
|
|
float MinSpeed;
|
|
|
|
float SpeedDecrement;
|
2021-10-02 15:58:54 +00:00
|
|
|
int SpinDirection{};
|
|
|
|
int BmpIndex{};
|
2021-01-16 14:45:29 +00:00
|
|
|
int Timer;
|
|
|
|
TEdgeSegment* PrevCollider;
|
2021-10-02 15:58:54 +00:00
|
|
|
int Scores[2]{};
|
2020-11-01 15:45:29 +00:00
|
|
|
};
|
2021-01-16 14:45:29 +00:00
|
|
|
|