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

The Type class represent a type of object. More...

#include <typedobject.hxx>

Inheritance diagram for Type< T >:
GameObjectType InheritableObject GameObject

Public Member Functions

 Type (DefaultTypes &parent)
 Type (T &ancestor)
const QList< T * > & descendants () const

Protected Attributes

T * aTypedAncestor

Detailed Description

template<class T>
class Type< T >

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.

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

Member Function Documentation

template<class T>
const QList<T*>& Type< T >::descendants ( ) const [inline]

Returns the list of types that inherite from the current instance.

Reimplemented from GameObjectType.


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