Game Engine 2D Platformer
|
The interface class for different components to inherit. More...
#include <Component.hpp>
Public Member Functions | |
Component ()=default | |
Constuctor for Component class. More... | |
virtual void | StartUp () |
To initalize attributes for children classes. More... | |
virtual void | ShutDown () |
To destroy and free attributes for children classes. 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... | |
virtual void | Update (GameEntity &entity)=0 |
To update the attributes for children classes. More... | |
The interface class for different components to inherit.
|
default |
Constuctor for Component class.
|
inlinevirtual |
Handle the events of GameEntity object for children classes.
entity | GameEntity Object |
Reimplemented in InputComponent.
|
inlinevirtual |
To initalize loadImages for children classes.
filepath | The path of the file to load the image |
ren | Renderer of the Main Game Loop |
Reimplemented in GraphicsComponent, and AIGraphicsComponent.
|
inlinevirtual |
To render objects for children classes.
entity | GameEntity Object |
Reimplemented in TileComponent, SoundComponent, ScoreDisplayComponent, LifeDisplayComponent, GraphicsComponent, and AIGraphicsComponent.
|
inlinevirtual |
To destroy and free attributes for children classes.
Reimplemented in TileComponent, SoundComponent, ScoreDisplayComponent, PhysicsComponent, LifeDisplayComponent, GraphicsComponent, AIPhysicsComponent, AIGraphicsComponent, and AIComponent.
|
inlinevirtual |
To initalize attributes for children classes.
Reimplemented in TileComponent, SoundComponent, ScoreDisplayComponent, PhysicsComponent, LifeDisplayComponent, InputComponent, GraphicsComponent, AIPhysicsComponent, AIGraphicsComponent, and AIComponent.
|
pure virtual |
To update the attributes for children classes.
entity | GameEntity Object |
Implemented in TileComponent, SoundComponent, ScoreDisplayComponent, PhysicsComponent, LifeDisplayComponent, InputComponent, GraphicsComponent, AIPhysicsComponent, AIGraphicsComponent, and AIComponent.