2020-11-01 16:45:29 +01:00
|
|
|
#pragma once
|
2021-01-18 16:30:19 +01:00
|
|
|
#include "maths.h"
|
2020-11-28 13:59:42 +01:00
|
|
|
#include "TCollisionComponent.h"
|
|
|
|
|
2020-11-01 16:45:29 +01:00
|
|
|
class TSink :
|
2020-11-28 13:59:42 +01:00
|
|
|
public TCollisionComponent
|
2020-11-01 16:45:29 +01:00
|
|
|
{
|
|
|
|
public:
|
2021-01-18 16:30:19 +01:00
|
|
|
TSink(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-01-18 16:30:19 +01:00
|
|
|
TEdgeSegment* edge) override;
|
|
|
|
|
|
|
|
static void TimerExpired(int timerId, void* caller);
|
|
|
|
|
|
|
|
int Timer;
|
|
|
|
float TimerTime;
|
2022-05-11 15:47:13 +02:00
|
|
|
vector2 BallPosition{};
|
2022-05-20 10:51:00 +02:00
|
|
|
vector3 BallThrowDirection{};
|
2021-01-18 16:30:19 +01:00
|
|
|
float ThrowAngleMult;
|
|
|
|
float ThrowSpeedMult1;
|
|
|
|
float ThrowSpeedMult2;
|
|
|
|
int SoundIndex4;
|
|
|
|
int SoundIndex3;
|
2021-10-02 17:58:54 +02:00
|
|
|
int PlayerMessagefieldBackup[4]{};
|
2020-11-01 16:45:29 +01:00
|
|
|
};
|