Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

TType Class Reference

Simple replacement for RTTI (run time type information). More...

#include <link.h>

Inheritance diagram for TType:

Inheritance graph
[legend]
List of all members.

Public Types

enum  {
  UNKNOWN = 0, LINKABLE, FLEET, SUBFLEET,
  GALAXY, SHIPDESIGN, ITEM, MINEFIELD,
  MINERAL_PACKAGE, MYSTERY_TRADER, PLANET, SYSTEM,
  ACTION
}

Public Methods

virtual int2 getType () const
virtual const string & getTypeName () const

Detailed Description

Simple replacement for RTTI (run time type information).

Author:
Marco Krohn <marco.krohn@gmx.de>
Version:
Id:
link.h,v 1.38 2002/05/15 08:30:55 ishark Exp
See also:
TLinkable
The class is just to avoid usage of the RTTI feature which not all compilers support at the moment.


Member Function Documentation

virtual int2 TType::getType   const [virtual]
 

Returns:
The object type.

Reimplemented in TLinkable, TAction, TFleet, TGalaxy, TItem, TShipDesign, TStellarObject, TSubFleet, and TSystem.

virtual const string& TType::getTypeName   const [virtual]
 

Returns:
The object type name.

Reimplemented in TLinkable, TAction, TFleet, TGalaxy, TItem, TShipDesign, TStellarObject, TSubFleet, and TSystem.


The documentation for this class was generated from the following file:
Generated on Thu Jun 20 18:13:37 2002 for Stellar Legacy by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001