6 #ifndef PHYSICSCOMPONENT_HPP
7 #define PHYSICSCOMPONENT_HPP
67 void HandleCoinCollisions(
GameEntity& entity, std::vector<std::shared_ptr<GameEntity>> coins);
72 void HandleNPCCollisions(
GameEntity& entity, std::vector<std::shared_ptr<GameEntity>> npcs);
77 void HandleEndFlagCollisions(
GameEntity &entity, std::vector<std::shared_ptr<GameEntity>> endFlags);
collisionType
Enum of type of Collisions i.e. Top, Bottom and etc.
Definition: PhysicsComponent.hpp:13
@ noCollision
Definition: PhysicsComponent.hpp:18
@ top
Definition: PhysicsComponent.hpp:14
@ bottom
Definition: PhysicsComponent.hpp:16
@ left
Definition: PhysicsComponent.hpp:15
@ right
Definition: PhysicsComponent.hpp:17
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
PhysicsComponent class used manage a GameEntity's movement.
Definition: PhysicsComponent.hpp:24
void Update(GameEntity &entity)
Updates the PhysicsComponent.
Definition: PhysicsComponent.cpp:22
void ShutDown()
Destroys and frees attributes for PhysicsComponent.
Definition: PhysicsComponent.cpp:15
void StartUp()
Initializes the attributes for PhysicsComponent.
Definition: PhysicsComponent.cpp:11
~PhysicsComponent()
Destructor for PhysicsComponent.
Definition: PhysicsComponent.cpp:7
PhysicsComponent()
Constuctor for PhysicsComponent.
Definition: PhysicsComponent.cpp:3