SpaceCadetPinball/SpaceCadetPinball/TBall.h

38 lines
880 B
C
Raw Normal View History

#pragma once
#include "maths.h"
#include "TPinballComponent.h"
class TCollisionComponent;
class TEdgeSegment;
class TBall : public TPinballComponent
{
public :
TBall(TPinballTable* table);
void Repaint();
void not_again(TEdgeSegment* edge);
bool already_hit(TEdgeSegment* edge);
int Message(int code, float value) override;
static void throw_ball(TBall* ball, struct vector_type* acceleration, float angleMult, float speedMult1,
float speedMult2);
vector_type Position;
vector_type Acceleration;
float Speed;
float RayMaxDistance;
float TimeDelta;
float TimeNow;
vector_type InvAcceleration;
2021-01-19 15:28:48 +00:00
vector_type RampFieldForce;
TCollisionComponent* CollisionComp;
2021-01-07 16:00:38 +00:00
int FieldFlag;
TEdgeSegment* Collisions[5];
int EdgeCollisionCount;
vector_type CollisionOffset;
int CollisionFlag;
float Offset;
int Unknown29;
float VisualZArray[50];
};