mirror of
https://github.com/iAmInActions/SpaceCadetPinballPPC.git
synced 2024-11-22 03:55:21 +00:00
18 lines
566 B
C++
18 lines
566 B
C++
#pragma once
|
|
#include "maths.h"
|
|
#include "TEdgeSegment.h"
|
|
|
|
class TLine :
|
|
public TEdgeSegment
|
|
{
|
|
public:
|
|
line_type Line{};
|
|
float X0, Y0, X1, Y1;
|
|
TLine(TCollisionComponent* collCmp, char* activeFlag, unsigned int collisionGroup, float x0, float y0, float x1, float y1);
|
|
TLine(TCollisionComponent* collCmp, char* activeFlag, unsigned int collisionGroup, vector_type* start, vector_type* end);
|
|
void Offset(float offset);
|
|
float FindCollisionDistance(ray_type* ray) override;
|
|
void EdgeCollision(TBall* ball, float coef) override;
|
|
void place_in_grid() override;
|
|
};
|