Version 3 (modified by landauf, 8 years ago) (diff) |
---|
ClassList
This is an archived page! This page is very old and the content is not up to date. Not everything (if any) which is written here will be in the final game! |
ClassList is an extension to BaseObject, with which one is able to retrieve information about Elements in existence in the game.
source:orxonox.OLD/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);