Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 14, 2008, 3:42:49 AM (16 years ago)
Author:
landauf
Message:

merged core2 back to trunk
there might be some errors, wasn't able to test it yet due to some strange g++ and linker behaviour.

File:
1 edited

Legend:

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

    r1039 r1052  
    176176        @return The XML-element
    177177    */
    178     void WorldEntity::XMLPort(Element& xmlelement, bool loading)
    179     {
    180         BaseObject::XMLPort(xmlelement, loading);
    181 
    182         XMLPortParam(WorldEntity, "position", setPositionLoader2, getPosition, xmlelement, loading);
    183         XMLPortParamLoadOnly(WorldEntity, "direction", setDirectionLoader, xmlelement, loading);
    184         XMLPortParamLoadOnly(WorldEntity, "yawpitchroll", setYawPitchRoll, xmlelement, loading);
    185         XMLPortParam(WorldEntity, "scale", setTotalScale, getScale, xmlelement, loading);
    186         XMLPortParam(WorldEntity, "rotationAxis", setRotationAxisLoader, getRotationAxis, xmlelement, loading);
    187         XMLPortParam(WorldEntity, "rotationRate", setRotationRate, getRotationRate, xmlelement, loading);
    188 
    189         XMLPortObject(WorldEntity, WorldEntity, "attached", attachWorldEntity, getAttachedWorldEntity, xmlelement, loading);
     178    void WorldEntity::XMLPort(Element& xmlelement, XMLPort::Mode mode)
     179    {
     180        BaseObject::XMLPort(xmlelement, mode);
     181
     182        XMLPortParam(WorldEntity, "position", setPositionLoader2, getPosition, xmlelement, mode);
     183        XMLPortParamLoadOnly(WorldEntity, "direction", setDirectionLoader, xmlelement, mode);
     184        XMLPortParamLoadOnly(WorldEntity, "yawpitchroll", setYawPitchRoll, xmlelement, mode);
     185        XMLPortParam(WorldEntity, "scale", setTotalScale, getScale, xmlelement, mode);
     186        XMLPortParam(WorldEntity, "rotationAxis", setRotationAxisLoader, getRotationAxis, xmlelement, mode);
     187        XMLPortParam(WorldEntity, "rotationRate", setRotationRate, getRotationRate, xmlelement, mode);
     188
     189        XMLPortObject(WorldEntity, WorldEntity, "attached", attachWorldEntity, getAttachedWorldEntity, xmlelement, mode, false, true);
    190190    }
    191191
     
    219219    }
    220220
    221     const WorldEntity* WorldEntity::getAttachedWorldEntity(unsigned int index)
     221    const WorldEntity* WorldEntity::getAttachedWorldEntity(unsigned int index) const
    222222    {
    223223        if (index < this->attachedWorldEntities_.size())
Note: See TracChangeset for help on using the changeset viewer.