Changes between Version 2 and Version 3 of code/doc/OrxonoxClass
- Timestamp:
- Feb 24, 2008, 9:48:07 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/doc/OrxonoxClass
v2 v3 1 1 = !OrxonoxClass = 2 2 3 == = Description ===3 == Description == 4 4 5 5 OrxonoxClass is the base class of all objects and interfaces having [wiki:Identifier Identifiers]. Therefore OrxonoxClass is the direct parent of BaseObject and several interfaces like [wiki:Tickable] or [wiki:Synchronisable]. … … 7 7 OrxonoxClass itself isn't of any use to the game-logic. All functions and variables are only there to create a common base for [wiki:Identifier Identifiers]. Some functions are used in macros (see CoreIncludes). 8 8 9 == = Inheriting from !OrxonoxClass ===9 == Inheriting from !OrxonoxClass == 10 10 11 11 Classes inheriting from OrxonoxClass '''must''' use '''virtual public''' derivation to avoid problems in the class-tree (diamond shape): … … 20 20 }}} 21 21 22 == = Functions ===22 == Functions == 23 23 24 24 * '''Identifier''': … … 37 37 * isDirectParentOf(...) 38 38 39 == = Illustration ===39 == Illustration == 40 40 41 41 As you can see, OrxonoxClass is on the top of the class-tree. Every other object or interface is a derivative.