Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 5, 2008, 1:34:34 AM (16 years ago)
Author:
landauf
Message:

umh, svn is strange… here's the rest of my changes from r848

File:
1 edited

Legend:

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

    r793 r850  
    3737#include "../Orxonox.h"
    3838#include "WorldEntity.h"
     39#include "core/XMLPort.h"
    3940
    4041namespace orxonox
     
    8687    void WorldEntity::loadParams(TiXmlElement* xmlElem)
    8788    {
     89
    8890        BaseObject::loadParams(xmlElem);
    89 
     91/*
    9092        if (xmlElem->Attribute("position"))
    9193        {
     
    153155
    154156        create();
    155 
     157*/
     158    }
     159
     160
     161    /**
     162        @brief XML loading and saving.
     163        @param xmlelement The XML-element
     164        @param loading Loading (true) or saving (false)
     165        @return The XML-element
     166    */
     167    Element& WorldEntity::XMLPort(Element& xmlelement, bool loading)
     168    {
     169std::cout << "2_1: " << this->getPosition() << std::endl;
     170        BaseObject::XMLPort(xmlelement, loading);
     171
     172        XMLPortParam(WorldEntity, "position", setPosition, getPosition, xmlelement, loading);
     173//        XMLPortParam(WorldEntity, "direction", setDirection, getDirection, xmlelement, loading);
     174//        XMLPortParam(WorldEntity, "yaw", yaw, getYaw, xmlelement, loading);
     175//        XMLPortParam(WorldEntity, "pitch", pitch, getPitch, xmlelement, loading);
     176//        XMLPortParam(WorldEntity, "roll", roll, getRoll, xmlelement, loading);
     177        XMLPortParam(WorldEntity, "scale", setScale, getScale, xmlelement, loading);
     178        XMLPortParam(WorldEntity, "rotationAxis", setRotationAxis, getRotationAxis, xmlelement, loading);
     179        XMLPortParam(WorldEntity, "rotationRate", setRotationRate, getRotationRate, xmlelement, loading);
     180std::cout << "2_2: " << this->getPosition() << std::endl;
     181
     182        return xmlelement;
    156183    }
    157184
Note: See TracChangeset for help on using the changeset viewer.