Game Engine 2D Platformer
|
AIComponent class used to add movement to a NPC game entity. More...
#include <AIComponent.hpp>
Public Member Functions | |
AIComponent () | |
Constructor of AIComponent. More... | |
~AIComponent () | |
Destructor of AIComponent. More... | |
void | StartUp () |
StartUp function to initialize values of AIComponent. More... | |
void | ShutDown () |
Function to safely destroy and shut attributes of AIComponent. More... | |
void | Update (GameEntity &entity) |
Update function of AIComponent. 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... | |
AIComponent class used to add movement to a NPC game entity.
AIComponent::AIComponent | ( | ) |
Constructor of AIComponent.
AIComponent::~AIComponent | ( | ) |
Destructor of AIComponent.
|
virtual |
Function to safely destroy and shut attributes of AIComponent.
Reimplemented from Component.
|
virtual |
StartUp function to initialize values of AIComponent.
Reimplemented from Component.
|
virtual |
Update function of AIComponent.
Updates the position of the game entity.
entity | GameEntity Object |
GameEntity | &entity |
Implements Component.