Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 9, 2008, 4:44:36 PM (16 years ago)
Author:
landauf
Message:

merged core branch to trunk

File:
1 edited

Legend:

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

    r790 r871  
    2020 *
    2121 *   Author:
    22  *      ...
     22 *      Fabian 'x3n' Landau
    2323 *   Co-authors:
    2424 *      ...
     
    2626 */
    2727
    28 /*!
     28/**
    2929    @file BaseObject.cc
    3030    @brief Implementation of the BaseObject class.
     
    3333#include "util/tinyxml/tinyxml.h"
    3434
     35#include "core/CoreIncludes.h"
    3536#include "BaseObject.h"
     37#include "XMLPort.h"
     38#include "Level.h"
    3639
    3740namespace orxonox
     
    4548    {
    4649        RegisterRootObject(BaseObject);
     50
     51        this->bActive_ = true;
     52        this->bVisible_ = true;
     53        this->level_ = 0;
    4754    }
    4855
     
    6471        }
    6572    }
     73
     74    /**
     75        @brief XML loading and saving.
     76        @param xmlelement The XML-element
     77        @param loading Loading (true) or saving (false)
     78        @return The XML-element
     79    */
     80    void BaseObject::XMLPort(Element& xmlelement, bool loading)
     81    {
     82        XMLPortParam(BaseObject, "name", setName, getName, xmlelement, loading);
     83    }
     84
     85    /**
     86        @brief Returns the levelfile that loaded this object.
     87        @return The levelfile
     88    */
     89    const std::string& BaseObject::getLevelfile() const
     90    {
     91        return this->level_->getFile();
     92    }
    6693}
Note: See TracChangeset for help on using the changeset viewer.