|
mkRPG
|
The Type class represent a type of object. More...
#include <typedobject.hxx>
Public Member Functions | |
| Type (DefaultTypes &parent) | |
| Type (T &ancestor) | |
| const QList< T * > & | descendants () const |
Protected Attributes | |
| T * | aTypedAncestor |
The Type class represent a type of object.
It adds to GameObjectType a constrain on the objects that can be used as type, defined by le class T template argument.
class T template argument has to be inherited from Type. (the application won't compile otherwise)| const QList<T*>& Type< T >::descendants | ( | ) | const [inline] |
Returns the list of types that inherite from the current instance.
Reimplemented from GameObjectType.
1.7.6.1