Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6276 in orxonox.OLD


Ignore:
Timestamp:
Dec 24, 2005, 2:28:00 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: cleaner base_object-stuff

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/defs/class_id.h

    r6243 r6276  
    9191  // SUPER-Modeling
    9292  CL_TEXTURE                    =    0x00c01000,
    93   CL_MODEL                      =    0x00c02000,
    94   CL_STATIC_MODEL               =    0x00c04000,
    95   CL_VERTEX_ARRAY_MODEL         =    0x00c08000,
     93  CL_TEXT                       =    0x00c02000,
     94
     95  CL_MODEL                      =    0x00d01000,
     96  CL_STATIC_MODEL               =    0x00002000,
     97  CL_VERTEX_ARRAY_MODEL         =    0x00004000,
    9698
    9799
     
    190192  // Collision
    191193  CL_COLLISION                  =    0x00000611,
    192   CL_BV_TREE                    =    0x00a01612,
    193   CL_BV_TREE_NODE               =    0x00a02613,
    194   CL_OBB_TREE                   =    0x00a04614,
    195   CL_OBB_TREE_NODE              =    0x00a08615,
    196   CL_BOUNDING_VOLUME            =    0x00a10616,
    197   CL_OBB                        =    0x00a20617,
     194  CL_BV_TREE                    =    0x00a01000,
     195  CL_BV_TREE_NODE               =    0x00002000,
     196  CL_OBB_TREE                   =    0x00000614,
     197  CL_OBB_TREE_NODE              =    0x00000615,
     198  CL_BOUNDING_VOLUME            =    0x00a10000,
     199  CL_OBB                        =    0x00020617,
    198200  CL_BOUNDING_SPHERE            =    0x00a40618,
    199201
    200202  // graphical stuff (range from 0x00000800 to 0x000009ff)
    201   CL_FONT                       =    0x00c02802,
    202 
    203 
    204   CL_TEXT                       =    0x00b01801,
     203  CL_FONT                       =    0x00000802,
     204
     205
    205206  CL_MATERIAL                   =    0x00000804,
    206   CL_TEXTURE_SEQUENCE           =    0x00c04805,
     207  CL_TEXTURE_SEQUENCE           =    0x00004805,
    207208  CL_OBJ_MODEL                  =    0x00000807,
    208209  CL_PROMITIVE_MODEL            =    0x00000808,
  • trunk/src/lib/lang/base_object.cc

    r6077 r6276  
    3232BaseObject::BaseObject(const TiXmlElement* root)
    3333{
    34   this->className = NULL;
     34  this->className = "BaseObject";
    3535  this->classID = CL_BASE_OBJECT;
    3636
     
    7373void BaseObject::setClassID(ClassID classID, const char* className)
    7474{
     75  //  printf("%s(0x%.8X)->%s(0x%.8X)\n", this->className, this->classID, className, classID);
     76  assert (!(this->classID & classID));
     77
    7578  this->classID |= (long)classID;
    7679  this->className = className;
Note: See TracChangeset for help on using the changeset viewer.