Simple C++ Game
|
A component for marking an entity as a ball. More...
#include <Components.hpp>
Public Member Functions | |
BallComponent () | |
Construct a new Ball 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 | BALL_ID |
The ID of a BallComponent. | |
A component for marking an entity as a ball.