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 :
|
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
|
|
|
TKickout(TPinballTable* table, int groupIndex, bool someFlag);
|
|
|
|
int Message(int code, float value) override;
|
|
|
|
void put_scoring(int index, int score) override;
|
|
|
|
int get_scoring(int index) override;
|
|
|
|
void Collision(TBall* ball, vector_type* nextPosition, vector_type* direction, float coef,
|
|
|
|
TEdgeSegment* edge) override;
|
|
|
|
int FieldEffect(TBall* ball, vector_type* vecDst) override;
|
|
|
|
|
|
|
|
static void TimerExpired(int timerId, void* caller);
|
|
|
|
static void ResetTimerExpired(int timerId, void* caller);
|
|
|
|
|
|
|
|
int KickFlag1;
|
|
|
|
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{};
|
|
|
|
vector_type BallAcceleration{};
|
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{};
|
|
|
|
int Scores[5]{};
|
2020-11-01 16:45:29 +01:00
|
|
|
};
|