mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-11-17 23:20:19 +01:00
26 lines
578 B
C++
26 lines
578 B
C++
#pragma once
|
|
#include "TCollisionComponent.h"
|
|
|
|
class TFlipperEdge;
|
|
|
|
class TFlipper :
|
|
public TCollisionComponent
|
|
{
|
|
public:
|
|
TFlipper(TPinballTable* table, int groupIndex);
|
|
~TFlipper() override;
|
|
int Message(int code, float value) override;
|
|
void port_draw() override;
|
|
void Collision(TBall* ball, vector_type* nextPosition, vector_type* direction, float coef,
|
|
TEdgeSegment* edge) override;
|
|
|
|
static void TimerExpired(int timerId, void* caller);
|
|
|
|
int BmpIndex;
|
|
TFlipperEdge* FlipperEdge;
|
|
int Timer;
|
|
float BmpCoef1;
|
|
float BmpCoef2;
|
|
float TimerTime;
|
|
float InputTime;
|
|
};
|