Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6517 in orxonox.OLD for trunk/src/lib/lang/base_object.h


Ignore:
Timestamp:
Jan 17, 2006, 11:13:05 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: each BaseObject saves its TiXmlElement as a TiXmlNode*.
This will be good for
1.) sync in network
2.) saving entitites

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/lang/base_object.h

    r6512 r6517  
    1818#include "stdincl.h"
    1919
     20class TiXmlNode;
    2021class TiXmlElement;
    2122class ClassList;
     
    2526
    2627 public:
    27   BaseObject (const TiXmlElement* root = NULL);
     28  BaseObject ();
    2829  virtual ~BaseObject ();
    2930
     
    4950  int       writeState(const byte* data, int length, int sender);
    5051  int       readState(byte* data, int maxLength );
     52
    5153 protected:
    5254  void setClassID(ClassID classID, const char* className);
    5355
    54   private:
     56 private:
    5557    const char*        className;        //!< the name of the class
    5658    long               classID;          //!< this is the id from the class_id.h enumeration
     
    5860
    5961    ClassList*         classList;        //!< Pointer to the ClassList this Object is inside of
     62
     63    TiXmlNode*         xmlElem;          //!< The XML Element with wich this Object was loaded(saved).
    6064};
    6165
Note: See TracChangeset for help on using the changeset viewer.