mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-09-28 17:59:28 +02:00
27 lines
739 B
C++
27 lines
739 B
C++
#pragma once
|
|
#include "TCollisionComponent.h"
|
|
|
|
class TPlunger :
|
|
public TCollisionComponent
|
|
{
|
|
public:
|
|
TPlunger(TPinballTable* table, int groupIndex);
|
|
~TPlunger() override = default;
|
|
void Collision(TBall* ball, vector2* nextPosition, vector2* direction, float distance,
|
|
TEdgeSegment* edge) override;
|
|
int Message(MessageCode code, float value) override;
|
|
|
|
static void BallFeedTimer(int timerId, void* caller);
|
|
static void PullbackTimer(int timerId, void* caller);
|
|
static void ReleasedTimer(int timerId, void* caller);
|
|
|
|
int PullbackTimer_;
|
|
int BallFeedTimer_;
|
|
float MaxPullback;
|
|
float PullbackIncrement;
|
|
float PullbackDelay;
|
|
int SoundIndexP1;
|
|
int SoundIndexP2;
|
|
bool PullbackStartedFlag{};
|
|
int SomeCounter{};
|
|
};
|