Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 10, 2008, 5:03:34 PM (17 years ago)
Author:
bknecht
Message:

merged back that script-branch

Location:
code/trunk/src/orxonox/core
Files:
5 edited
4 copied

Legend:

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

    r871 r1021  
    2727
    2828/**
    29     @file BaseObject.cc
     29    @file
    3030    @brief Implementation of the BaseObject class.
    3131*/
  • code/trunk/src/orxonox/core/CMakeLists.txt

    r871 r1021  
    1717  Executor.cc
    1818  XMLPort.cc
     19  Tickable.cc
     20  Script.cc
    1921)
    2022
     
    2426TARGET_LINK_LIBRARIES( core
    2527  util
     28  ${Lua_LIBRARIES}
    2629)
  • code/trunk/src/orxonox/core/ClassTreeMask.cc

    r890 r1021  
    592592        {
    593593            const Identifier* subclass = it->getClass();
    594             newmask.add(subclass, this->isIncluded(subclass) || other.isIncluded(subclass), false, false);
     594            newmask.add(subclass, this->isIncluded(subclass) or other.isIncluded(subclass), false, false);
    595595        }
    596596
     
    599599        {
    600600            const Identifier* subclass = it->getClass();
    601             newmask.add(subclass, this->isIncluded(subclass) || other.isIncluded(subclass), false, false);
     601            newmask.add(subclass, this->isIncluded(subclass) or other.isIncluded(subclass), false, false);
    602602        }
    603603
     
    623623        {
    624624            const Identifier* subclass = it->getClass();
    625             newmask.add(subclass, this->isIncluded(subclass) && other.isIncluded(subclass), false, false);
     625            newmask.add(subclass, this->isIncluded(subclass) and other.isIncluded(subclass), false, false);
    626626        }
    627627
     
    630630        {
    631631            const Identifier* subclass = it->getClass();
    632             newmask.add(subclass, this->isIncluded(subclass) && other.isIncluded(subclass), false, false);
     632            newmask.add(subclass, this->isIncluded(subclass) and other.isIncluded(subclass), false, false);
    633633        }
    634634
     
    737737        {
    738738            const Identifier* subclass = it->getClass();
    739             newmask.add(subclass, this->isIncluded(subclass) XOR other.isIncluded(subclass), false, false);
     739            newmask.add(subclass, this->isIncluded(subclass) xor other.isIncluded(subclass), false, false);
    740740        }
    741741
     
    744744        {
    745745            const Identifier* subclass = it->getClass();
    746             newmask.add(subclass, this->isIncluded(subclass) XOR other.isIncluded(subclass), false, false);
     746            newmask.add(subclass, this->isIncluded(subclass) xor other.isIncluded(subclass), false, false);
    747747        }
    748748
  • code/trunk/src/orxonox/core/DebugLevel.cc

    r871 r1021  
    9595
    9696        // Return a constant value while we're creating the object
    97         return 4;
     97        return 3;
    9898    }
    9999}
  • code/trunk/src/orxonox/core/Loader.cc

    r871 r1021  
    3333#include "Debug.h"
    3434#include "CoreIncludes.h"
     35#include "Script.h"
    3536
    3637#include "util/tinyxml/ticpp.h"
     
    107108        Loader::currentMask_s = level->getMask() * mask;
    108109
     110        // let Lua work this out:
     111        //Script* lua;
     112        /*Script::loadFile(level->getFile(), true);
     113        Script::init(Script::getLuaState());
     114        Script::run();*/
     115        Script* lua = Script::getInstance();
     116        lua->loadFile(level->getFile(), true);
     117        lua->run();
     118
    109119        try
    110120        {
     
    112122            COUT(3) << "Mask: " << Loader::currentMask_s << std::endl;
    113123
    114             ticpp::Document xmlfile(level->getFile());
    115             xmlfile.LoadFile();
     124            //ticpp::Document xmlfile(level->getFile());
     125            //xmlfile.LoadFile();
     126            //ticpp::Element myelement(*Script::getFileString());
     127            ticpp::Document xmlfile;
     128            //xmlfile.ToDocument();
     129            xmlfile.Parse(lua->getLuaOutput(), true);
    116130
    117131            for ( ticpp::Iterator<ticpp::Element> child = xmlfile.FirstChildElement(false); child != child.end(); child++ )
Note: See TracChangeset for help on using the changeset viewer.