Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4596 in orxonox.OLD for orxonox/trunk/src/defs/class_list.h


Ignore:
Timestamp:
Jun 10, 2005, 11:41:49 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: one can now also tell Singleton-classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/defs/class_list.h

    r4595 r4596  
    1313   co-programmer: Benjamin Grauer
    1414
     15   2005-06-10: (bensch) added new sturcture to support multiple inheritance
    1516*/
    1617
     
    2122    this File is used to identify an Object with its class and also with its sub/super-classes.
    2223    this is also used by the ObjectManager to identify and load important classes
     24
     25    !! important !!
     26    When adding a new CLASS be sure about the following:
     27      1. if it is a (SUB)SUPERCLASS make sure there is still space left (if not think of a new approach)
     28      2. if it is a (SUB)SUPERCLASS also add the CLASS to BaseObject::whatIs() so we have nice output :)
     29      3. check if the Number you add is not refered to twice, and that with (SUB)SUPERCLASSES there are no intersections
     30      4. be sure to add you stuff in the right section, and don't interest yourself for the order of things. :)
    2331*/
    2432
     
    7078  CL_MASK_LOWLEVEL_CLASS  =    0x00000fff,
    7179
    72   // singleton classes (range from 0x00000001 to 0x000000ff)
    73   CL_MASK_SINGLETON       =    0x0000003f,
    74   CL_ORXONOX              =    0x00000001,
    75   CL_NULL_PARENT          =    0x00000002,
    76   CL_PILOT_PARENT         =    0x00000003,
    77   CL_OBJECT_MANAGER       =    0x00000004,
    78   CL_RESOURCE_MANAGER     =    0x00000005,
    79   CL_GARBAGE_COLLECTOR    =    0x00000006,
    80   CL_GAME_LOADER          =    0x00000007,
    81   CL_GRAPHICS_ENGINE      =    0x00000008,
    82   CL_TEXT_ENGINE          =    0x00000009,
    83   CL_LIGHT_MANAGER        =    0x0000000a,
    84   CL_EVENT_HANDLER        =    0x0000000b,
    85   CL_PHYSICS_ENGINE       =    0x0000000c,
    86   CL_CD_ENGINE            =    0x0000000d,
    87   CL_PARTICLE_ENGINE      =    0x0000000e,
    88   CL_SOUND_ENGINE         =    0x0000000f,
    89   CL_ANIMATION_PLAYER     =    0x00000010,
    90   CL_TRACK_MANAGER        =    0x00000011,
    91   CL_TRACK_NODE           =    0x00000012,
    92   CL_STATE                =    0x00000013,
    93   CL_FRAMEWORK            =    0x00000014,
     80  // singleton classes (range from 0x00000f01 to 0x00000fff)
     81  CL_MASK_SINGLETON       =    0x00000f00,
     82  CL_ORXONOX              =    0x00000f01,
     83  CL_NULL_PARENT          =    0x00000f02,
     84  CL_PILOT_PARENT         =    0x00000f03,
     85  CL_OBJECT_MANAGER       =    0x00000f04,
     86  CL_RESOURCE_MANAGER     =    0x00000f05,
     87  CL_GARBAGE_COLLECTOR    =    0x00000f06,
     88  CL_GAME_LOADER          =    0x00000f07,
     89  CL_GRAPHICS_ENGINE      =    0x00000f08,
     90  CL_TEXT_ENGINE          =    0x00000f09,
     91  CL_LIGHT_MANAGER        =    0x00000f0a,
     92  CL_EVENT_HANDLER        =    0x00000f0b,
     93  CL_PHYSICS_ENGINE       =    0x00000f0c,
     94  CL_CD_ENGINE            =    0x00000f0d,
     95  CL_PARTICLE_ENGINE      =    0x00000f0e,
     96  CL_SOUND_ENGINE         =    0x00000f0f,
     97  CL_ANIMATION_PLAYER     =    0x00000f10,
     98  CL_TRACK_MANAGER        =    0x00000f11,
     99  CL_TRACK_NODE           =    0x00000f12,
     100  CL_STATE                =    0x00000f13,
     101  CL_FRAMEWORK            =    0x00000f14,
    94102
    95103
     
    98106  CL_CAMPAIGN             =    0x00000101,
    99107  CL_WORLD                =    0x00000102,
     108
    100109
    101110  // WorldEntities (range from 0x00000201 to 0x000005ff)
Note: See TracChangeset for help on using the changeset viewer.