|
mkRPG
|
The TypedObject class is the base class for GameObject with a mutable Type. More...
#include <typedobject.hxx>
Public Member Functions | |
| TypedObject (T &type, GameObject &parent) | |
| T & | objectType () |
| void | setObjectType (T &type) |
Protected Attributes | |
| T * | aObjectType |
The TypedObject class is the base class for GameObject with a mutable Type.
It adds to InheritableObject the guarranty that the object has a type, with a constrain on it defined by le class T template argument.
class T template argument has to be inherited from Type. (the application won't compile otherwise)
1.7.6.1