Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Version 1 (modified by landauf, 16 years ago) (diff)

ClassList

ClassList is an extension to BaseObject?, with which one is able to retrieve information about Elements in existence in the game.

source:/trunk/src/lib/class_list.h

Usage

Functions to get Lists of Objects of type ClassID, or by Name

    static tList<BaseObject>*       getList(long classID = CL_NULL);
    static tList<BaseObject>*       getList(const char* className);

function to check if an Element exists in a given List

    static bool                     exists(const BaseObject* object, long classID = CL_NULL);

function to retrieve a List of all known Classes

    static const tList<const char>* getClassList();

Debug Information

to print out nice information on what classes and how many objects are allocated visit:

    static void                     debug(unsigned int debugLevel = 0, long classID = CL_NULL);

Dependencies