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