|
Game Engine 2D Platformer
|
SoundComponent class used to manage sound effects for GameEntity. More...
#include <SoundComponent.hpp>


Public Member Functions | |
| SoundComponent () | |
| Constuctor for SoundComponent. More... | |
| ~SoundComponent () | |
| Destructor for SoundComponent. More... | |
| void | StartUp () |
| Initializes the attributes for SoundComponent. More... | |
| void | ShutDown () |
| Destroys and frees attributes for SoundComponent. More... | |
| void | Update (GameEntity &entity) |
| Updates the SoundComponent. More... | |
| void | Render (GameEntity &entity) |
| Renders the SoundComponent. More... | |
Public Member Functions inherited from Component | |
| Component ()=default | |
| Constuctor for Component class. 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... | |
SoundComponent class used to manage sound effects for GameEntity.
| SoundComponent::SoundComponent | ( | ) |
Constuctor for SoundComponent.
| SoundComponent::~SoundComponent | ( | ) |
Destructor for SoundComponent.
|
virtual |
|
virtual |
Destroys and frees attributes for SoundComponent.
Reimplemented from Component.
|
virtual |
Initializes the attributes for SoundComponent.
Reimplemented from Component.
|
virtual |
Updates the SoundComponent.
Plays sound effect if the flag in GameEntity is set to true.
| entity | GameEntity Object |
| GameEntity | &entity |
Implements Component.