Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 1 and Version 2 of code/doc/BaseObject


Ignore:
Timestamp:
Feb 24, 2008, 9:22:52 PM (16 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/BaseObject

    v1 v2  
    33=== Description ===
    44
    5 In Orxonox, there are some classes refered to be "objects". In this context an object is not an instance of a class, but a class beeing relevant for the game-logic. Examples of objects are: A ship (but not the model), a particle effect (but not the particles themselfes), a trigger (which might be totally abstract like "finish the game after 20 minutes"), a HUD (but not the graphpics). Examples of classes not beeing objects are: Interfaces (but objects might inherit from them), graphical components (meshes, textures, sprites, billboards, ...), helper classes ([wiki:Timer], ...), classes in external libraries (network, autio, [wiki:Core core], ...).
     5In Orxonox, there are some classes refered to be "objects". In this context an object is not an instance of a class, but a class beeing relevant for the game-logic. Examples of objects are: A ship (but not the model), a particle effect (but not the particles themselfes), a trigger (which might be totally abstract like "finish the game after 20 minutes"), a HUD (but not the graphpics). Examples of classes not beeing objects are: Interfaces (but objects might inherit from them), graphical components (meshes, textures, sprites, billboards, ...), helper classes ([wiki:Timer], ...), classes in external libraries ([wiki:Coding/networking network], audio, [wiki:Core core], ...).
    66
    7 To differ objects from other classes, they derive from BaseObject. They might have other parents like interfaces or listener, but BaseObject '''must''' be one of the parents. The other way round you can cast every object to BaseObject, even if the only thing you know is it's a derivative of an interface like [wiki:Tickable] or [wiki:Synchronisable].
     7To differ objects from other classes, they derive from BaseObject. They might have other parents like interfaces or listeners, but they '''must''' inherit from BaseObject. The other way round you can cast every object to BaseObject, even if the only thing you know is it's a derivative of an interface like [wiki:Tickable] or [wiki:Synchronisable]. The BaseObject itself inherits from OrxonoxClass.
     8
     9
     10=== Functions ===
     11
     12The BaseObject provides several functions and states, beeing relevant for all objects:
     13
     14---to come---
     15
     16=== Illustration ===
     17
     18[[Image(Core:testclass_interface_orxonoxclass_tree.gif)]]