1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2024-11-17 23:20:19 +01:00
SpaceCadetPinball/SpaceCadetPinball/TPlunger.h

26 lines
685 B
C
Raw Normal View History

#pragma once
#include "TCollisionComponent.h"
class TPlunger :
public TCollisionComponent
{
public:
2021-01-07 17:00:38 +01:00
TPlunger(TPinballTable* table, int groupIndex);
~TPlunger() override = default;
2021-01-07 17:00:38 +01: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;
};