1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2024-06-24 06:52:11 +02:00
SpaceCadetPinball/SpaceCadetPinball/TTableLayer.h
Muzychenko Andrey 8017734de4 Switched positional audio to collision coordinate system.
Refactored positional audio.
2022-06-01 16:19:27 +03:00

35 lines
790 B
C++

#pragma once
#include "TCollisionComponent.h"
#include "TEdgeManager.h"
struct circle_type;
class TPinballTable;
class TEdgeManager;
struct gdrv_bitmap8;
class TTableLayer :
public TCollisionComponent
{
public:
TTableLayer(TPinballTable* table);
~TTableLayer() override;
int FieldEffect(TBall* ball, vector2* vecDst) override;
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);
gdrv_bitmap8* VisBmp;
float XMin;
float YMin;
float XMax;
float YMax;
float GraityDirX;
float GraityDirY;
float GraityMult;
field_effect_type Field{};
static TEdgeManager* edge_manager;
};