2020-11-01 16:45:29 +01:00
|
|
|
#pragma once
|
2021-01-17 16:26:03 +01:00
|
|
|
#include "maths.h"
|
2020-11-28 13:59:42 +01:00
|
|
|
#include "TCollisionComponent.h"
|
2021-01-17 16:26:03 +01:00
|
|
|
#include "TEdgeManager.h"
|
2020-11-28 13:59:42 +01:00
|
|
|
|
2020-11-01 16:45:29 +01:00
|
|
|
class TKickout :
|
2022-09-06 15:57:56 +02:00
|
|
|
public TCollisionComponent
|
2020-11-01 16:45:29 +01:00
|
|
|
{
|
|
|
|
public:
|
2021-01-17 16:26:03 +01:00
|
|
|
TKickout(TPinballTable* table, int groupIndex, bool someFlag);
|
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-17 16:26:03 +01:00
|
|
|
TEdgeSegment* edge) override;
|
2022-05-11 15:47:13 +02:00
|
|
|
int FieldEffect(TBall* ball, vector2* vecDst) override;
|
2021-01-17 16:26:03 +01:00
|
|
|
|
|
|
|
static void TimerExpired(int timerId, void* caller);
|
|
|
|
static void ResetTimerExpired(int timerId, void* caller);
|
|
|
|
|
2022-09-06 10:58:35 +02:00
|
|
|
int BallCaputeredFlag;
|
2021-01-17 16:26:03 +01:00
|
|
|
int NotSomeFlag;
|
|
|
|
int Timer;
|
|
|
|
float TimerTime1;
|
|
|
|
float TimerTime2;
|
|
|
|
float CollisionBallSetZ;
|
2021-10-02 17:58:54 +02:00
|
|
|
TBall* Ball{};
|
2021-01-17 16:26:03 +01:00
|
|
|
float FieldMult;
|
2021-10-02 17:58:54 +02:00
|
|
|
circle_type Circle{};
|
|
|
|
float OriginalBallZ{};
|
2022-05-20 10:51:00 +02:00
|
|
|
vector3 BallThrowDirection{};
|
2021-01-17 16:26:03 +01:00
|
|
|
float ThrowAngleMult;
|
|
|
|
float ThrowSpeedMult1;
|
|
|
|
float ThrowSpeedMult2;
|
2021-10-02 17:58:54 +02:00
|
|
|
field_effect_type Field{};
|
2020-11-01 16:45:29 +01:00
|
|
|
};
|