Simple C++ Game
Public Member Functions | Static Public Attributes | List of all members
BallComponent Class Reference

A component for marking an entity as a ball. More...

#include <Components.hpp>

Inheritance diagram for BallComponent:
Inheritance graph
[legend]
Collaboration diagram for BallComponent:
Collaboration graph
[legend]

Public Member Functions

 BallComponent ()
 Construct a new Ball Component object.
 
- Public Member Functions inherited from Entity::Component
 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.
 

Detailed Description

A component for marking an entity as a ball.


The documentation for this class was generated from the following file: