Game Engine 2D Platformer
AIPhysicsComponent.hpp
Go to the documentation of this file.
1 /*
2  * @file AIPhysicsComponent.hpp
3  * @brief AIPhysicsComponent class interface
4  * @date 2021-03-12
5  ***********************************************/
6 #ifndef AIPHYSICSCOMPONENT_HPP
7 #define AIPHYSICSCOMPONENT_HPP
8 
9 #include "Component.hpp"
10 
11 // enum collisionType { top, left, bottom, right, noCollision };
12 
16 {
17 public:
29  void StartUp();
33  void ShutDown();
37  void Update(GameEntity &entity);
38 };
39 
40 #endif
PhysicsComponent class used manage a GameEntity's movement.
Definition: AIPhysicsComponent.hpp:16
void Update(GameEntity &entity)
Updates the attributes for PhysicsComponent.
Definition: AIPhysicsComponent.cpp:19
~AIPhysicsComponent()
Destructor for PhysicsComponent.
Definition: AIPhysicsComponent.cpp:7
void StartUp()
Initialize attributes for PhysicsComponent.
Definition: AIPhysicsComponent.cpp:11
AIPhysicsComponent()
Constuctor for PhysicsComponent.
Definition: AIPhysicsComponent.cpp:3
void ShutDown()
Destroy attributes for PhysicsComponent.
Definition: AIPhysicsComponent.cpp:15
The interface class for different components to inherit.
Definition: Component.hpp:16
Represents an interactable entity in the game that includes Main Character, NPC, Tiles ,...
Definition: GameEntity.hpp:22