|
Game Engine 2D Platformer
|
PhysicsComponent class used manage a GameEntity's movement. More...
#include <PhysicsComponent.hpp>


Public Member Functions | |
| PhysicsComponent () | |
| Constuctor for PhysicsComponent. More... | |
| ~PhysicsComponent () | |
| Destructor for PhysicsComponent. More... | |
| void | StartUp () |
| Initializes the attributes for PhysicsComponent. More... | |
| void | ShutDown () |
| Destroys and frees attributes for PhysicsComponent. More... | |
| void | Update (GameEntity &entity) |
| Updates the PhysicsComponent. More... | |
Public Member Functions inherited from Component | |
| Component ()=default | |
| Constuctor for Component class. More... | |
| virtual void | Render (GameEntity &entity) |
| To render objects for children classes. More... | |
| virtual void | LoadImage (std::string filepath, SDL_Renderer *ren) |
| To initalize loadImages for children classes. More... | |
| virtual void | HandleEvent (GameEntity &entity) |
| Handle the events of GameEntity object for children classes. More... | |
PhysicsComponent class used manage a GameEntity's movement.
| PhysicsComponent::PhysicsComponent | ( | ) |
Constuctor for PhysicsComponent.
| PhysicsComponent::~PhysicsComponent | ( | ) |
Destructor for PhysicsComponent.
|
virtual |
Destroys and frees attributes for PhysicsComponent.
Reimplemented from Component.
|
virtual |
Initializes the attributes for PhysicsComponent.
Reimplemented from Component.
|
virtual |
Updates the PhysicsComponent.
Updates the position of the Entity and handles any collisions with other game entities.
| entity | GameEntity Object |
| GameEntity& | entity |
Implements Component.