Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 8 and Version 9 of code/doc/BaseObject


Ignore:
Timestamp:
Oct 7, 2008, 7:19:00 PM (16 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/BaseObject

    v8 v9  
    66In 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 to 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 graphics). 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:Network network], audio, [wiki:Core core], ...).
    77
    8 To differ objects from other classes, they all 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].
     8To differ objects from other classes, they all 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:network/Synchronisable Synchronisable].
    99
    1010The !BaseObject itself inherits from [wiki:OrxonoxClass].