Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1625 for code/trunk/src/core


Ignore:
Timestamp:
Jun 26, 2008, 2:13:17 PM (16 years ago)
Author:
rgrieder
Message:

merged hud branch back to trunk

Location:
code/trunk/src/core
Files:
7 edited

Legend:

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

    r1559 r1625  
    6666
    6767    /**
    68         @brief load general xml paramters
    69     */
    70     void BaseObject::loadParams(TiXmlElement* xmlElem)
    71     {
    72         if (xmlElem->Attribute("name"))
    73         {
    74             this->setName(xmlElem->Attribute("name"));
    75         }
    76     }
    77 
    78     /**
    7968        @brief XML loading and saving.
    8069        @param xmlelement The XML-element
     
    8574    {
    8675        XMLPortParam(BaseObject, "name", setName, getName, xmlelement, mode);
     76        XMLPortParam(BaseObject, "visible", setVisible, isVisible, xmlelement, mode);
     77        XMLPortParam(BaseObject, "active", setActive, isActive, xmlelement, mode);
    8778    }
    8879
  • code/trunk/src/core/BaseObject.h

    r1608 r1625  
    5252            BaseObject();
    5353            virtual ~BaseObject();
    54             virtual void loadParams(TiXmlElement* xmlElem);
    5554            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    5655
  • code/trunk/src/core/Executor.cc

    r1505 r1625  
    3030#include "Executor.h"
    3131#include "util/Math.h"
     32#include "util/Convert.h"
    3233#include "Language.h"
    3334
     
    136137            {
    137138                std::string paramnumber;
    138                 if (!Convert::ToString(&paramnumber, param))
     139                if (!convertValue(&paramnumber, param))
    139140                    return (*this);
    140141
  • code/trunk/src/core/Iterator.h

    r1543 r1625  
    9292            {
    9393                this->element_ = element;
     94                return *this;
    9495            }
    9596
  • code/trunk/src/core/Loader.cc

    r1505 r1625  
    116116        Script::run();*/
    117117        Script* lua = Script::getInstance();
     118        lua->clearLuaOutput();
    118119        lua->loadFile(level->getFile(), true);
    119120        lua->run();
  • code/trunk/src/core/Script.h

    r1505 r1625  
    7272    inline std::string getLuaOutput() { return output_; };
    7373    //inline std::string* getFileString() { return &fileString_; };
     74    inline void clearLuaOutput() { output_ = ""; }
    7475
    7576    unsigned int getNextQuote(const std::string& text, unsigned int start);
  • code/trunk/src/core/TclThreadManager.h

    r1535 r1625  
    4545namespace orxonox
    4646{
    47     class boost::thread;
    48 
    4947    struct _CoreExport TclInterpreterBundle
    5048    {
Note: See TracChangeset for help on using the changeset viewer.