|
Game Engine 2D Platformer
|
GraphicsComponent class used to flip through frames for a GameEntity. More...
#include <AIGraphicsComponent.hpp>


Public Member Functions | |
| AIGraphicsComponent (SDL_Renderer *ren) | |
| Constructor of AIGraphicsComponent. More... | |
| ~AIGraphicsComponent () | |
| Destructor of AIGraphicsComponent. More... | |
| void | StartUp () |
| StartUp function to Initialize attributes of AIGraphicsComponent. More... | |
| void | ShutDown () |
| Shutdown function to destroy and free attributes of AIGraphicsComponent. More... | |
| void | Update (GameEntity &entity) |
| Updates the attributes of AIGraphicsComponent. More... | |
| void | Render (GameEntity &entity) |
| Helps Render the AI Entity of AIGraphicsComponent. More... | |
| void | LoadImage (std::string filepath, SDL_Renderer *ren) |
| Loads image to use for graphics. More... | |
Public Member Functions inherited from Component | |
| Component ()=default | |
| Constuctor for Component class. More... | |
| virtual void | HandleEvent (GameEntity &entity) |
| Handle the events of GameEntity object for children classes. More... | |
GraphicsComponent class used to flip through frames for a GameEntity.
| AIGraphicsComponent::AIGraphicsComponent | ( | SDL_Renderer * | ren | ) |
Constructor of AIGraphicsComponent.
| ren | The Renderer of the main Game Loop |
| AIGraphicsComponent::~AIGraphicsComponent | ( | ) |
Destructor of AIGraphicsComponent.
|
virtual |
Loads image to use for graphics.
Loads image to use for graphics and uses ResourceManager.
| std::string | filepath |
| SDL_Renderer | ren |
Reimplemented from Component.
|
virtual |
Helps Render the AI Entity of AIGraphicsComponent.
Renders graphic.
| entity | GameEntity Object |
| GameEntity | &entity |
Reimplemented from Component.
|
virtual |
Shutdown function to destroy and free attributes of AIGraphicsComponent.
Reimplemented from Component.
|
virtual |
StartUp function to Initialize attributes of AIGraphicsComponent.
Reimplemented from Component.
|
virtual |
Updates the attributes of AIGraphicsComponent.
Selects graphic to render depending on frame.
| entity | GameEntity Object |
| GameEntity | &entity |
Implements Component.