R-Type
|
class representing a rect More...
#include <Rect.hpp>
Public Member Functions | |
Rect ()=default | |
constructor More... | |
Rect (T l, T t, T w, T h) | |
constructor More... | |
~Rect ()=default | |
destructor More... | |
const sf::Rect< T > | getBaseRect () const override |
get the rect stored in the class More... | |
bool | isColliding (const Vector2< T > &pos, const Rect< T > &rect, const Vector2< T > &rectPos) const |
check the collision between two objects More... | |
void | handleCollisionFromRect (Vector2< T > &pos, const Rect< T > &rect, const Vector2< T > &rectPos) |
![]() | |
~IRect ()=default | |
Destructor. More... | |
Public Attributes | |
T | left |
T | top |
T | width |
T | height |
class representing a rect
T | the type contained in the rect |
|
default |
constructor
|
inline |
constructor
l | left coordinate |
t | top coordinate |
w | the width of the rect |
h | the height of the rect |
|
default |
destructor
|
inlineoverridevirtual |
|
inline |
pos | |
rect | |
rectPos |
|
inline |
check the collision between two objects
pos | |
rect | |
rectPos | position of rect |
T GameEngine::Rect< T >::height |
T GameEngine::Rect< T >::left |
T GameEngine::Rect< T >::top |
T GameEngine::Rect< T >::width |