2020-11-01 16:45:29 +01:00
|
|
|
#pragma once
|
2020-11-28 13:59:42 +01:00
|
|
|
#include "TCollisionComponent.h"
|
2020-11-28 12:39:12 +01:00
|
|
|
|
2021-01-10 13:22:06 +01:00
|
|
|
class TFlipperEdge;
|
|
|
|
|
2020-11-01 16:45:29 +01:00
|
|
|
class TFlipper :
|
2020-11-28 13:59:42 +01:00
|
|
|
public TCollisionComponent
|
2020-11-01 16:45:29 +01:00
|
|
|
{
|
|
|
|
public:
|
2021-01-10 13:22:06 +01:00
|
|
|
TFlipper(TPinballTable* table, int groupIndex);
|
|
|
|
~TFlipper() override;
|
|
|
|
int Message(int code, float value) override;
|
|
|
|
void port_draw() override;
|
2022-05-20 10:51:00 +02:00
|
|
|
void Collision(TBall* ball, vector2* nextPosition, vector2* direction, float distance,
|
2021-01-10 13:22:06 +01:00
|
|
|
TEdgeSegment* edge) override;
|
|
|
|
|
|
|
|
static void TimerExpired(int timerId, void* caller);
|
|
|
|
|
|
|
|
int BmpIndex;
|
|
|
|
TFlipperEdge* FlipperEdge;
|
|
|
|
int Timer;
|
2021-10-07 07:01:34 +02:00
|
|
|
float ExtendAnimationFrameTime{};
|
|
|
|
float RetractAnimationFrameTime{};
|
2021-10-02 17:58:54 +02:00
|
|
|
float TimerTime{};
|
2021-01-10 13:22:06 +01:00
|
|
|
float InputTime;
|
2020-11-01 16:45:29 +01:00
|
|
|
};
|