Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 1 and Version 2 of ~archive/BaseObject


Ignore:
Timestamp:
Nov 27, 2007, 11:17:43 PM (17 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • ~archive/BaseObject

    v1 v2  
    1 = BaseObject =
    2 The BaseObject is the top-most !SuperClass of (most but not) all Classes in orxonox.
     1= !BaseObject =
     2The !BaseObject is the top-most !SuperClass of (most but not) all Classes in orxonox.
    33
    44source:/trunk/src/lib/lang/base_object.h#HEAD [[br]]
     
    77
    88== Description ==
    9 BaseObject is a container for
     9!BaseObject is a container for
    1010  * The Name of the Object (how the object is called)
    1111  * The Class' Name of the Object (in what class this object is)
     
    1414== Usage ==
    1515  * __Registration__:[[br]]
    16    Each class, that extends BaseObject must implement the following function:
    17    1. In the Class-Declaration use the following syntax (taken your class is named OrxClass)
     16   Each class, that extends !BaseObject must implement the following function:
     17   1. In the Class-Declaration use the following syntax (taken your class is named !OrxClass)
    1818{{{
    1919#!cpp
    20   class OrxClass : public BaseObject // here you could also specify any class derived from BaseObject
     20  class OrxClass : public !BaseObject // here you could also specify any class derived from !BaseObject
    2121  {
    2222    ObjectListDeclaration(OrxClass);
     
    2929  ObjectListDefinition(OrxClass);
    3030}}}
    31    1. In the constructor of each class implementing BaseObject write the following:
     31   1. In the constructor of each class implementing !BaseObject write the following:
    3232{{{
    3333#!cpp
     
    4040}}}
    4141  * __isA__:[[br]]
    42     isA is a function, that queries, if the Object is of a Specified type. e.g. given a class Player that is derived from BaseObject and [wiki:ParentNode PNode] one can do the following check :
     42    isA is a function, that queries, if the Object is of a Specified type. e.g. given a class Player that is derived from !BaseObject and [wiki:archive/ParentNode PNode] one can do the following check :
    4343{{{
    4444#!cpp
     
    4949
    5050== Advanced Topics ==
    51 An interessting Function, that BaseObject provides is the ObjectList.
    52 With it, one can retrieve lists of any one kind of derived classes from BaseObject.
     51An interessting Function, that !BaseObject provides is the [wiki:archive/ObjectList ObjectList].
     52With it, one can retrieve lists of any one kind of derived classes from !BaseObject.