SpaceCadetPinball/SpaceCadetPinball/TTableLayer.h

35 lines
790 B
C
Raw Normal View History

#pragma once
#include "TCollisionComponent.h"
2020-12-20 12:13:12 +01:00
#include "TEdgeManager.h"
struct circle_type;
2020-12-25 14:46:06 +01:00
class TPinballTable;
class TEdgeManager;
struct gdrv_bitmap8;
class TTableLayer :
public TCollisionComponent
{
public:
2020-12-20 12:13:12 +01:00
TTableLayer(TPinballTable* table);
~TTableLayer() override;
int FieldEffect(TBall* ball, vector2* vecDst) override;
2020-12-20 12:13:12 +01:00
2021-01-07 17:00:38 +01:00
static void edges_insert_square(float y0, float x0, float y1, float x1, TEdgeSegment* edge,
field_effect_type* field);
static void edges_insert_circle(circle_type* circle, TEdgeSegment* edge, field_effect_type* field);
2020-12-20 12:13:12 +01:00
gdrv_bitmap8* VisBmp;
float XMin;
float YMin;
float XMax;
float YMax;
2021-01-07 17:00:38 +01:00
float GraityDirX;
float GraityDirY;
2021-01-07 17:00:38 +01:00
float GraityMult;
field_effect_type Field{};
2021-01-07 17:00:38 +01:00
static TEdgeManager* edge_manager;
};