Changeset 637 for code/branches/FICN/src/orxonox/objects
- Timestamp:
- Dec 19, 2007, 1:49:24 AM (17 years ago)
- Location:
- code/branches/FICN/src/orxonox/objects
- Files:
-
- 18 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/objects/BaseEntity.h
r590 r637 3 3 4 4 #include "WorldEntity.h" 5 #include "../../tinyxml/tinyxml.h"5 #include <tinyxml/tinyxml.h> 6 6 7 7 namespace orxonox -
code/branches/FICN/src/orxonox/objects/BaseObject.cc
r513 r637 51 51 { 52 52 } 53 54 /** 55 @brief load general xml paramters 56 */ 57 void BaseObject::loadParams(TiXmlElement* xmlElem) 58 { 59 if (xmlElem->Attribute("name")) 60 { 61 this->setName(xmlElem->Attribute("mesh")); 62 } 63 } 53 64 } -
code/branches/FICN/src/orxonox/objects/BaseObject.h
r496 r637 20 20 BaseObject(); 21 21 virtual ~BaseObject(); 22 virtual void loadParams(TiXmlElement* xmlElem) {}22 virtual void loadParams(TiXmlElement* xmlElem); 23 23 }; 24 24 } -
code/branches/FICN/src/orxonox/objects/WorldEntity.cc
r633 r637 85 85 { 86 86 BaseObject::loadParams(xmlElem); 87 88 if (xmlElem->Attribute("name"))89 {90 this->setName(xmlElem->Attribute("mesh"));91 }92 87 93 88 if (xmlElem->Attribute("position")) -
code/branches/FICN/src/orxonox/objects/WorldEntity.h
r630 r637 2 2 #define _WorldEntity_H__ 3 3 4 #include <OgreSceneManager.h> 5 #include <OgreSceneNode.h> 6 7 #include "network/Synchronisable.h" 8 #include "tinyxml/tinyxml.h" 9 #include "../core/CoreIncludes.h" 4 10 #include "BaseObject.h" 5 11 #include "Tickable.h" 6 #include "../core/CoreIncludes.h"7 #include "OgreSceneManager.h"8 #include "OgreSceneNode.h"9 12 #include "Mesh.h" 10 #include "network/Synchronisable.h"11 #include "tinyxml/tinyxml.h"12 13 13 14 namespace orxonox
Note: See TracChangeset
for help on using the changeset viewer.