2020-11-28 13:59:42 +01:00
|
|
|
#pragma once
|
2021-01-16 15:45:29 +01:00
|
|
|
|
2020-11-28 13:59:42 +01:00
|
|
|
#include "TCollisionComponent.h"
|
|
|
|
|
2021-01-16 15:45:29 +01:00
|
|
|
struct gdrv_bitmap8;
|
|
|
|
|
2020-11-28 13:59:42 +01:00
|
|
|
class TWall :
|
|
|
|
public TCollisionComponent
|
|
|
|
{
|
|
|
|
public:
|
2021-01-16 15:45:29 +01:00
|
|
|
TWall(TPinballTable* table, int groupIndex);
|
|
|
|
int Message(int code, float value) override;
|
2022-05-20 10:51:00 +02:00
|
|
|
void Collision(TBall* ball, vector2* nextPosition, vector2* direction, float distance,
|
2021-10-02 17:58:54 +02:00
|
|
|
TEdgeSegment* edge) override;
|
2021-01-16 15:45:29 +01:00
|
|
|
void put_scoring(int index, int score) override;
|
2021-10-02 17:58:54 +02:00
|
|
|
int get_scoring(int index) override;
|
2021-01-16 15:45:29 +01:00
|
|
|
|
|
|
|
static void TimerExpired(int timerId, void* caller);
|
|
|
|
|
2021-10-02 17:58:54 +02:00
|
|
|
int Timer{};
|
|
|
|
gdrv_bitmap8* BmpPtr{};
|
|
|
|
int Scores[1]{};
|
2020-11-28 13:59:42 +01:00
|
|
|
};
|