mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-11-02 00:42:53 +01:00
24 lines
657 B
C++
24 lines
657 B
C++
#pragma once
|
|
#include "TCollisionComponent.h"
|
|
|
|
class TRollover :
|
|
public TCollisionComponent
|
|
{
|
|
protected:
|
|
TRollover(TPinballTable* table, int groupIndex, bool createWall);
|
|
public:
|
|
TRollover(TPinballTable* table, int groupIndex);
|
|
~TRollover() override = default;
|
|
int Message(int code, float value) override;
|
|
void Collision(TBall* ball, vector_type* nextPosition, vector_type* direction, float coef,
|
|
TEdgeSegment* edge) override;
|
|
void put_scoring(int index, int score) override;
|
|
int get_scoring(int index) override;
|
|
void build_walls(int groupIndex);
|
|
|
|
static void TimerExpired(int timerId, void* caller);
|
|
|
|
char RolloverFlag{};
|
|
int Scores[2]{};
|
|
};
|