Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2007, 1:49:24 AM (17 years ago)
Author:
rgrieder
Message:
 
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  
    33
    44#include "WorldEntity.h"
    5 #include "../../tinyxml/tinyxml.h"
     5#include <tinyxml/tinyxml.h>
    66
    77namespace orxonox
  • code/branches/FICN/src/orxonox/objects/BaseObject.cc

    r513 r637  
    5151    {
    5252    }
     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    }
    5364}
  • code/branches/FICN/src/orxonox/objects/BaseObject.h

    r496 r637  
    2020            BaseObject();
    2121            virtual ~BaseObject();
    22             virtual void loadParams(TiXmlElement* xmlElem) {}
     22            virtual void loadParams(TiXmlElement* xmlElem);
    2323    };
    2424}
  • code/branches/FICN/src/orxonox/objects/WorldEntity.cc

    r633 r637  
    8585    {
    8686        BaseObject::loadParams(xmlElem);
    87 
    88         if (xmlElem->Attribute("name"))
    89         {
    90             this->setName(xmlElem->Attribute("mesh"));
    91         }
    9287
    9388        if (xmlElem->Attribute("position"))
  • code/branches/FICN/src/orxonox/objects/WorldEntity.h

    r630 r637  
    22#define _WorldEntity_H__
    33
     4#include <OgreSceneManager.h>
     5#include <OgreSceneNode.h>
     6
     7#include "network/Synchronisable.h"
     8#include "tinyxml/tinyxml.h"
     9#include "../core/CoreIncludes.h"
    410#include "BaseObject.h"
    511#include "Tickable.h"
    6 #include "../core/CoreIncludes.h"
    7 #include "OgreSceneManager.h"
    8 #include "OgreSceneNode.h"
    912#include "Mesh.h"
    10 #include "network/Synchronisable.h"
    11 #include "tinyxml/tinyxml.h"
    1213
    1314namespace orxonox
Note: See TracChangeset for help on using the changeset viewer.