2020-11-01 16:45:29 +01:00
|
|
|
#pragma once
|
2020-11-28 13:59:42 +01:00
|
|
|
#include "TCollisionComponent.h"
|
|
|
|
|
2020-11-01 16:45:29 +01:00
|
|
|
class TDrain :
|
2020-11-28 13:59:42 +01:00
|
|
|
public TCollisionComponent
|
2020-11-01 16:45:29 +01:00
|
|
|
{
|
|
|
|
public:
|
2021-01-17 16:26:03 +01:00
|
|
|
TDrain(TPinballTable* table, int groupIndex);
|
|
|
|
int Message(int code, float value) override;
|
|
|
|
void Collision(TBall* ball, vector_type* nextPosition, vector_type* direction, float coef,
|
|
|
|
TEdgeSegment* edge) override;
|
|
|
|
|
|
|
|
static void TimerCallback(int timerId, void* caller);
|
|
|
|
|
|
|
|
float TimerTime;
|
|
|
|
int Timer;
|
2020-11-01 16:45:29 +01:00
|
|
|
};
|