Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 870 for code/branches/core


Ignore:
Timestamp:
Mar 9, 2008, 3:03:46 PM (17 years ago)
Author:
landauf
Message:

XMLPort returns void

Location:
code/branches/core/src/orxonox
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core/src/orxonox/core/BaseObject.cc

    r856 r870  
    7878        @return The XML-element
    7979    */
    80     Element& BaseObject::XMLPort(Element& xmlelement, bool loading)
     80    void BaseObject::XMLPort(Element& xmlelement, bool loading)
    8181    {
    8282        XMLPortParam(BaseObject, "name", setName, getName, xmlelement, loading);
    83 
    84         return xmlelement;
    8583    }
    8684
  • code/branches/core/src/orxonox/core/BaseObject.h

    r856 r870  
    5050            virtual ~BaseObject();
    5151            virtual void loadParams(TiXmlElement* xmlElem);
    52             virtual Element& XMLPort(Element& xmlelement, bool loading);
     52            virtual void XMLPort(Element& xmlelement, bool loading);
    5353
    5454            /** @brief Sets the name of the object. @param name The name */
  • code/branches/core/src/orxonox/objects/Ambient.cc

    r869 r870  
    8585        @return The XML-element
    8686    */
    87     Element& Ambient::XMLPort(Element& xmlelement, bool loading)
     87    void Ambient::XMLPort(Element& xmlelement, bool loading)
    8888    {
    8989        BaseObject::XMLPort(xmlelement, loading);
    9090
    9191        XMLPortParamLoadOnly(Ambient, "colourvalue", setAmbientLight, xmlelement, loading);
    92 
    93         return xmlelement;
    9492    }
    9593}
  • code/branches/core/src/orxonox/objects/Ambient.h

    r869 r870  
    1515
    1616            void loadParams(TiXmlElement* xmlElem);
    17             virtual Element& XMLPort(Element& xmlelement, bool loading);
     17            virtual void XMLPort(Element& xmlelement, bool loading);
    1818            void setAmbientLight(const ColourValue& colour);
    1919
  • code/branches/core/src/orxonox/objects/Model.cc

    r869 r870  
    6767        @return The XML-element
    6868    */
    69     Element& Model::XMLPort(Element& xmlelement, bool loading)
     69    void Model::XMLPort(Element& xmlelement, bool loading)
    7070    {
    7171        WorldEntity::XMLPort(xmlelement, loading);
     
    7474
    7575        create();
    76 
    77         return xmlelement;
    7876    }
    7977
  • code/branches/core/src/orxonox/objects/Model.h

    r869 r870  
    1818            virtual ~Model();
    1919            virtual void loadParams(TiXmlElement* xmlElem);
    20             virtual Element& XMLPort(Element& xmlelement, bool loading);
     20            virtual void XMLPort(Element& xmlelement, bool loading);
    2121            void setMesh(const std::string& meshname);
    2222            bool create();
  • code/branches/core/src/orxonox/objects/Skybox.cc

    r869 r870  
    7777        @return The XML-element
    7878    */
    79     Element& Skybox::XMLPort(Element& xmlelement, bool loading)
     79    void Skybox::XMLPort(Element& xmlelement, bool loading)
    8080    {
    8181        BaseObject::XMLPort(xmlelement, loading);
    8282
    8383        XMLPortParamLoadOnly(Skybox, "src", setSkybox, xmlelement, loading);
    84 
    85         return xmlelement;
    8684    }
    8785}
  • code/branches/core/src/orxonox/objects/Skybox.h

    r869 r870  
    1717
    1818            void loadParams(TiXmlElement* xmlElem);
    19             virtual Element& XMLPort(Element& xmlelement, bool loading);
     19            virtual void XMLPort(Element& xmlelement, bool loading);
    2020            void setSkybox(const std::string& skyboxname);
    2121
  • code/branches/core/src/orxonox/objects/SpaceShip.cc

    r869 r870  
    291291        @return The XML-element
    292292    */
    293     Element& SpaceShip::XMLPort(Element& xmlelement, bool loading)
     293    void SpaceShip::XMLPort(Element& xmlelement, bool loading)
    294294    {
    295295        Model::XMLPort(xmlelement, loading);
     
    303303        XMLPortParamLoadOnly(SpaceShip, "transDamp", setTransDamp, xmlelement, loading);
    304304        XMLPortParamLoadOnly(SpaceShip, "rotDamp", setRotDamp, xmlelement, loading);
    305 
    306         return xmlelement;
    307305    }
    308306
  • code/branches/core/src/orxonox/objects/SpaceShip.h

    r869 r870  
    2424            void setConfigValues();
    2525            virtual void loadParams(TiXmlElement* xmlElem);
    26             virtual Element& XMLPort(Element& xmlelement, bool loading);
     26            virtual void XMLPort(Element& xmlelement, bool loading);
    2727            virtual void tick(float dt);
    2828
  • code/branches/core/src/orxonox/objects/WorldEntity.cc

    r869 r870  
    171171        @return The XML-element
    172172    */
    173     Element& WorldEntity::XMLPort(Element& xmlelement, bool loading)
     173    void WorldEntity::XMLPort(Element& xmlelement, bool loading)
    174174    {
    175175        BaseObject::XMLPort(xmlelement, loading);
     
    183183
    184184        XMLPortObject(WorldEntity, WorldEntity, "attached", attachWorldEntity, getAttachedWorldEntity, xmlelement, loading);
    185 
    186         return xmlelement;
    187185    }
    188186
  • code/branches/core/src/orxonox/objects/WorldEntity.h

    r869 r870  
    2525            virtual void tick(float dt);
    2626            virtual void loadParams(TiXmlElement* xmlElem);
    27             virtual Element& XMLPort(Element& xmlelement, bool loading);
     27            virtual void XMLPort(Element& xmlelement, bool loading);
    2828            bool create();
    2929
Note: See TracChangeset for help on using the changeset viewer.