Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8093 in orxonox.OLD for branches


Ignore:
Timestamp:
Jun 1, 2006, 6:28:50 PM (19 years ago)
Author:
snellen
Message:

continued working on the scriptmanager

Location:
branches/script_engine/src
Files:
1 added
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • branches/script_engine/src/defs/include_paths.am

    r7927 r8093  
    2727AM_CXXFLAGS+=-I$(MAINSRCDIR)/lib/newmat
    2828AM_CXXFLAGS+=-I$(MAINSRCDIR)/lib/sound
     29AM_CXXFLAGS+=-I$(MAINSRCDIR)/lib/script_engine
    2930AM_CXXFLAGS+=-I$(MAINSRCDIR)/defs
    3031AM_CXXFLAGS+=-I$(MAINSRCDIR)/font
  • branches/script_engine/src/lib/BuildLibs.am

    r7954 r8093  
    2222                $(LIB_PREFIX)/shell/libORXshell.a \
    2323                $(LIB_PREFIX)/math/libORXmath.a \
    24                 $(LIB_PREFIX)/libORXlibs.a
     24                $(LIB_PREFIX)/libORXlibs.a \
     25                $(LIB_PREFIX)/script_engine/libORXscript.a
  • branches/script_engine/src/lib/script_engine/Makefile.am

    r8073 r8093  
    1010AM_CPPFLAGS= @LUA_INCLUDES@
    1111
    12 bin_PROGRAMS = account
    13 account_SOURCES = \
    14                 account.cc\
     12bin_PROGRAMS = example
     13example_SOURCES = \
     14                example.cc\
    1515                script.cc\
    1616                script_manager.cc
     
    1818
    1919
    20 account_LDADD = libORXscript.a -L../../../extern_libs @LUA_LIBS@
     20example_LDADD = libORXscript.a -L../../../extern_libs @LUA_LIBS@
    2121
    2222#main_LDFLAGS =
  • branches/script_engine/src/lib/script_engine/script.h

    r8075 r8093  
    2323    bool executeFunction();
    2424    // push parameters for luafunction
    25     bool  pushParam(int param, std::string& toFunction);//overload this function to add different types
     25    bool  pushParam(int param, std::string& toFunction);
    2626    bool  pushParam(float param, std::string& toFunction);
    2727    bool  pushParam(double param, std::string& toFunction);
    2828    // get returned values the last return value in lua is the first in c.
    29     int   getReturnedInt();//overload this function to get different types
     29    int   getReturnedInt();
    3030    bool  getReturnedBool();
    3131    float getReturnedFloat();
  • branches/script_engine/src/lib/script_engine/script_manager.cc

    r8085 r8093  
     1#include <string>
     2#include <list>
    13
    24#include "script.h"
    35#include "script_manager.h"
     6
     7
     8
     9ScriptManager::ScriptManager()
     10{
     11  this->init();
     12
     13}
     14
     15ScriptManager::~ScriptManager()
     16{
     17
     18
     19}
     20
     21
     22void ScriptManager::init()
     23{
     24
     25
     26}
     27
     28
     29
     30void ScriptManager::loadParams(const TiXmlElement* root)
     31{
     32
     33}
     34
  • branches/script_engine/src/lib/script_engine/script_manager.h

    r8086 r8093  
    44
    55#include <string>
     6
    67#include "base_object.h"
    7 
    88#include "luaincl.h"
     9#include "loading/load_param.h"
    910
    1011
    1112
    12 class ScriptManager
     13class ScriptManager //: public BaseObject
    1314{
    1415 public:
    15   init();
     16  ScriptManager();
     17  virtual ~ScriptManager();
    1618
    17 
     19  virtual void loadParams(const TiXmlElement* root);
    1820
    1921
    2022 private:
    21 
     23  void  init();
    2224
    2325
Note: See TracChangeset for help on using the changeset viewer.