Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5844 in orxonox.OLD


Ignore:
Timestamp:
Nov 30, 2005, 10:18:43 PM (18 years ago)
Author:
bensch
Message:

orxonox/branches/spaceshipcontroll: rearanged ClassList classes

Location:
branches/spaceshipcontrol/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/spaceshipcontrol/src/defs/class_id.h

    r5839 r5844  
    5757  // superclasses
    5858  CL_MASK_SUPER_CLASS           =    0xff000000,
    59   CL_BASE_OBJECT                =    0xff000000,
     59  CL_BASE_OBJECT                =    0x00000000,
    6060
    6161  CL_PARENT_NODE                =    0x01000000,
     
    6969  CL_ELEMENT_2D                 =    0x10000000,
    7070
    71   CL_SYNCHRONIZEABLE             =    0x20000000,
     71  CL_SYNCHRONIZEABLE            =    0x20000000,
    7272
    7373  CL_WORLD_ENTITY               =    0x40000000,
    7474
    75 
     75  // subsuper-classes derivations taken : 1, 2, 5, a, b, c.     << THIS IS A LIST OF ALL THE DCL_MASK_SUBSUPERCLASS_ID's taken
    7676  // subsuper-classes
    7777  CL_MASK_SUBSUPER_CLASS        =    0x00fff000,
    78   CL_MASK_SUBSUPER_CLASS_ID     =    0x00f00000,
    79   CL_MASK_SUBSUPER_CLASS_ID2    =    0x000ff000,
    80   CL_PLAYER                     =    0x00101000,
    81   CL_NPC                        =    0x00102000,
    82   CL_POWER_UP                   =    0x00104000,
    83   CL_FIELD                      =    0x00108000,
    84   CL_PROJECTILE                 =    0x00110000,
    85   CL_WEAPON                     =    0x00120000,
    86 
    87   // subsuper-classes derivations taken : 1, 5, a, b, c.     << THIS IS A LIST OF ALL THE DCL_MASK_SUBSUPERCLASS_ID's taken
     78  CL_MASK_SUBSUPER_CLASS_IDA    =    0x00f00000,
     79  CL_MASK_SUBSUPER_CLASS_IDB    =    0x000ff000,
     80  // SUPER-PNodes
     81  CL_FIELD                      =    0x00101000,
     82  // SUPER-WorldEntities
     83  CL_PLAYABLE                   =    0x00201000,
     84  CL_PLAYER                     =    0x00202000,
     85  CL_NPC                        =    0x00204000,
     86  CL_PROJECTILE                 =    0x00208000,
     87  CL_WEAPON                     =    0x00210000,
     88  CL_POWER_UP                   =    0x00220000,
     89
     90  // SUPER-Modeling
     91  CL_TEXTURE                    =    0x00c01000,
     92  CL_MODEL                      =    0x00c02000,
     93
     94
     95  // subsuper-classes derivations taken : 1, 2, 5, a, b, c.     << THIS IS A LIST OF ALL THE DCL_MASK_SUBSUPERCLASS_ID's taken
    8896
    8997  // lowest level classes
     
    118126  CL_GLGUI_MAIN_WIDGET          =    0x00000f41,
    119127  CL_NETWORK_MANAGER            =    0x00000f50,
    120  
     128
    121129
    122130
     
    178186
    179187  // graphical stuff (range from 0x00000800 to 0x000009ff)
    180   CL_TEXTURE                    =    0x00c01000,
     188  CL_FONT                       =    0x00c02802,
     189
     190
    181191  CL_TEXT                       =    0x00b01801,
    182   CL_FONT                       =    0x00c02802,
    183192  CL_MATERIAL                   =    0x00000804,
    184   CL_MODEL                      =    0x00000805, //!< @todo make this a SUBCLASS maybe
    185193  CL_OBJMODEL                   =    0x00000806,
    186194  CL_PROMITIVE_MODEL            =    0x00000807,
  • branches/spaceshipcontrol/src/lib/lang/base_object.cc

    r5791 r5844  
    112112  else if (classID & CL_MASK_SUBSUPER_CLASS)
    113113  {
    114     if (likely(((this->classID & CL_MASK_SUBSUPER_CLASS_ID) == (this->classID & CL_MASK_SUBSUPER_CLASS_ID)) &&
    115         this->classID & classID & CL_MASK_SUBSUPER_CLASS_ID2))
     114    if (likely(((this->classID & CL_MASK_SUBSUPER_CLASS_IDA) == (this->classID & CL_MASK_SUBSUPER_CLASS_IDA)) &&
     115        this->classID & classID & CL_MASK_SUBSUPER_CLASS_IDB))
    116116      return true;
    117117  }
  • branches/spaceshipcontrol/src/lib/sound/sound_engine.cc

    r5834 r5844  
    281281
    282282  // INITIALIZING THE DEVICE:
    283   ALchar deviceName[] =
     283  ALubyte deviceName[] =
    284284#ifdef __WIN32__
    285285      "native";
Note: See TracChangeset for help on using the changeset viewer.