Simple C++ Game
|
A component for marking an entity as a player. More...
#include <Components.hpp>
Public Member Functions | |
PlayerComponent () | |
Construct a new Player Component object. | |
![]() | |
Component (const std::string id) | |
Construct a new Component object. More... | |
virtual | ~Component () |
This is only declared to make the class polymorphic so that dymaic_cast between Component types works. | |
const std::string | getId () const |
Get the ID of the component. This will return the same value for all instances of a class of Component. | |
Static Public Attributes | |
static const std::string | PLAYER_ID |
The ID of a PlayerComponent. | |
A component for marking an entity as a player.