2020-11-01 16:45:29 +01:00
|
|
|
#pragma once
|
2021-01-16 15:45:29 +01:00
|
|
|
#include "TCircle.h"
|
2020-11-28 13:59:42 +01:00
|
|
|
#include "TCollisionComponent.h"
|
2021-01-16 15:45:29 +01:00
|
|
|
#include "TEdgeManager.h"
|
2020-11-28 13:59:42 +01:00
|
|
|
|
2020-11-01 16:45:29 +01:00
|
|
|
class THole :
|
2022-09-06 15:57:56 +02:00
|
|
|
public TCollisionComponent
|
2020-11-01 16:45:29 +01:00
|
|
|
{
|
|
|
|
public:
|
2021-01-16 15:45:29 +01:00
|
|
|
THole(TPinballTable* table, int groupIndex);
|
2022-09-06 15:57:56 +02:00
|
|
|
int Message(MessageCode code, float value) override;
|
2022-05-20 10:51:00 +02:00
|
|
|
void Collision(TBall* ball, vector2* nextPosition, vector2* direction, float distance,
|
2021-01-16 15:45:29 +01:00
|
|
|
TEdgeSegment* edge) override;
|
2022-05-11 15:47:13 +02:00
|
|
|
int FieldEffect(TBall* ball, vector2* vecDst) override;
|
2021-01-16 15:45:29 +01:00
|
|
|
|
|
|
|
static void TimerExpired(int timerId, void* caller);
|
|
|
|
|
|
|
|
int BallCapturedFlag;
|
2021-10-02 17:58:54 +02:00
|
|
|
int BallCapturedSecondStage{};
|
2021-01-16 15:45:29 +01:00
|
|
|
int Timer;
|
|
|
|
float Unknown3;
|
|
|
|
float Unknown4;
|
|
|
|
float GravityMult;
|
|
|
|
float ZSetValue;
|
2022-05-20 10:51:00 +02:00
|
|
|
int CollisionMask;
|
2021-01-16 15:45:29 +01:00
|
|
|
float GravityPull;
|
2021-10-02 17:58:54 +02:00
|
|
|
circle_type Circle{};
|
|
|
|
field_effect_type Field{};
|
2020-11-01 16:45:29 +01:00
|
|
|
};
|