Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8246 in orxonox.OLD for branches/script_engine/src


Ignore:
Timestamp:
Jun 8, 2006, 2:53:10 PM (18 years ago)
Author:
snellen
Message:

moved example.cc to scripttrigger, object.cc, account.cc

Location:
branches/script_engine/src
Files:
2 edited
2 moved

Legend:

Unmodified
Added
Removed
  • branches/script_engine/src/lib/script_engine/Makefile.am

    r8202 r8246  
    1515                script.cc\
    1616                script_manager.cc\
    17                 script_class.cc \
    18                 script_trigger.cc
     17                script_class.cc\
     18                account.cc\
     19                object.cc
     20               
    1921
    2022AM_CPPFLAGS= @LUA_INCLUDES@
     
    2426                script.h\
    2527                script_manager.h\
    26                 script_class.h \
    27                 script_trigger.h
     28                script_class.h
     29               
    2830
    2931
  • branches/script_engine/src/world_entities/WorldEntities.am

    r7785 r8246  
    4949                world_entities/elements/text_element.cc \
    5050                \
    51                 world_entities/effects/lightning_bolt.cc
     51                world_entities/effects/lightning_bolt.cc \
     52                \
     53                world_entities/script_trigger.cc
    5254
    5355
     
    99101                elements/text_element.h \
    100102                \
    101                 effects/lightning_bolt.h
     103                effects/lightning_bolt.h \
     104                \
     105                script_trigger.h
  • branches/script_engine/src/world_entities/script_trigger.cc

    r8243 r8246  
     1//for testing
     2#include "luaincl.h"
    13#include "script_trigger.h"
    24#include "class_list.h"
     
    46
    57#include "state.h"
    6 
     8 
     9 
     10 
    711ScriptTrigger::ScriptTrigger(const TiXmlElement* root)
    812{
     
    127131   std::string file("lunartest2.lua");
    128132     // Script script;
    129    Script* script = ScriptManager::getInstance()->getScriptByFile(file);
     133   Script* script = State::getScriptManager()->getScriptByFile(file);
    130134   printf("-------------------------- top of the stack:%i\n",lua_gettop(script->getLuaState()));
    131135
Note: See TracChangeset for help on using the changeset viewer.