mkRPG
Public Member Functions | Protected Attributes
TypedObject< T > Class Template Reference

The TypedObject class is the base class for GameObject with a mutable Type. More...

#include <typedobject.hxx>

Inheritance diagram for TypedObject< T >:
InheritableObject GameObject

Public Member Functions

 TypedObject (T &type, GameObject &parent)
T & objectType ()
void setObjectType (T &type)

Protected Attributes

T * aObjectType

Detailed Description

template<class T>
class TypedObject< T >

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.

Note:
The class T template argument has to be inherited from Type. (the application won't compile otherwise)
See also:
Cell, Object

The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Defines