Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 17, 2006, 7:55:59 PM (18 years ago)
Author:
bensch
Message:

orxonox/script_engine: namespace OrxScript introduced

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/script_engine/src/lib/script_engine/VirtualMachine.h

    r7645 r7653  
    55
    66#include "luaincl.h"
    7 
    8 class LuaVirtualMachine
     7namespace OrxScript
    98{
     9  class LuaVirtualMachine
     10  {
    1011  public:
    1112    LuaVirtualMachine (void);
     
    1516    bool destroy (void);
    1617
    17    // Load and run script elements
     18    // Load and run script elements
    1819    bool runFile (const std::string& strFilename);
    1920    bool runBuffer (const unsigned char *pbBuffer, size_t szLen, const char *strName = NULL);
    2021
    21    // C-Api into script
     22    // C-Api into script
    2223    bool callFunction (int nArgs, int nReturns = 0);
    2324
    24    // Get the state of the lua stack (use the cast operator)
    25    //lua_State *GetState (void) { return luaState; }
     25    // Get the state of the lua stack (use the cast operator)
     26    //lua_State *GetState (void) { return luaState; }
    2627    operator lua_State *(void) { return luaState; }
    2728
    2829    static void panic (lua_State *lua);
    2930
    30    // Check if the VM is OK and can be used still
     31    // Check if the VM is OK and can be used still
    3132    virtual bool isOk (void) { return machineIsOk; }
    3233
    33    // For debugging
     34    // For debugging
    3435    //void AttachDebugger (CLuaDebugger *dbg) { m_pDbg = dbg; }
    3536
     
    3738    lua_State* luaState;
    3839    bool machineIsOk;
    39    // CLuaDebugger *m_pDbg;
    40 };
     40    // CLuaDebugger *m_pDbg;
     41  };
     42}
    4143#endif
Note: See TracChangeset for help on using the changeset viewer.