1 #ifndef COLLISION_COMPONENT_HPP 2 #define COLLISION_COMPONENT_HPP 39 void Render(SDL_Renderer* renderer);
58 bool collide(SDL_Rect tile);
63 double check_top(SDL_Rect tile,
double posx,
double posy,
int width,
int height);
67 double check_bottom(SDL_Rect tile,
double posx,
double posy,
int width,
int height);
71 double check_left(SDL_Rect tile,
double posx,
double posy,
int width,
int height);
75 double check_right(SDL_Rect tile,
double posx,
double posy,
int width,
int height);
CollisionComponent(TransformComponent *transform, TileMap *tilemap)
Definition: CollisionComponent.cpp:6
~CollisionComponent()
Definition: CollisionComponent.cpp:15
void Render(SDL_Renderer *renderer)
Definition: CollisionComponent.cpp:19
Definition: Component.hpp:10
Definition: CollisionComponent.hpp:11
void UpdateCollisions()
Definition: CollisionComponent.cpp:21
Definition: TileMap.hpp:14
void Update()
Definition: CollisionComponent.cpp:17