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 TPlunger :
|
2020-11-28 12:59:42 +00:00
|
|
|
public TCollisionComponent
|
2020-11-01 15:45:29 +00:00
|
|
|
{
|
|
|
|
public:
|
2021-01-07 16:00:38 +00:00
|
|
|
TPlunger(TPinballTable* table, int groupIndex);
|
2021-01-08 15:50:12 +00:00
|
|
|
~TPlunger() override = default;
|
2021-01-07 16:00:38 +00:00
|
|
|
void Collision(TBall* ball, vector_type* nextPosition, vector_type* direction, float coef,
|
|
|
|
TEdgeSegment* edge) override;
|
|
|
|
int Message(int code, float value) override;
|
|
|
|
|
|
|
|
static void BallFeedTimer(int timerId, void* caller);
|
|
|
|
static void PullbackTimer(int timerId, void* caller);
|
|
|
|
static void PlungerReleasedTimer(int timerId, void* caller);
|
|
|
|
|
|
|
|
int PullbackTimer_;
|
|
|
|
int BallFeedTimer_;
|
|
|
|
int MaxPullback;
|
|
|
|
int PullbackIncrement;
|
|
|
|
float Unknown4F;
|
|
|
|
int SoundIndexP1;
|
|
|
|
int SoundIndexP2;
|
2020-11-01 15:45:29 +00:00
|
|
|
};
|