Changes between Version 8 and Version 9 of code/doc/BaseObject
- Timestamp:
- Oct 7, 2008, 7:19:00 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/doc/BaseObject
v8 v9 6 6 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 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], ...). 7 7 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].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:network/Synchronisable Synchronisable]. 9 9 10 10 The !BaseObject itself inherits from [wiki:OrxonoxClass].