Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/script/src/orxonox/script/Script.h @ 956

Last change on this file since 956 was 956, checked in by bknecht, 16 years ago

loads level from file and creates lua code from XML code. not tested yet though

File size: 578 bytes
Line 
1/**
2 @file  script.h
3 @brief Representation of a lua script
4 @author Benjamin Knecht <beni_at_orxonox.net>
5 */
6
7#ifndef _Script_H__
8#define _Script_H__
9
10extern "C" {
11#include "lua.h"
12}
13
14#include <list>
15#include <string>
16
17namespace orxonox
18{
19
20  class Script
21  {
22    Script();
23    ~Script();
24
25    void loadFile(std::string filename);
26    void xmlToLua();
27
28    inline lua_State* getLuaState() { return state_; };
29
30    private:
31
32      //std::list<std::string>& getLevelFileLines();
33
34      std::list<std::string> fileLines_;
35      lua_State* state_;
36
37  };
38}
39#endif /* _Script_H__ */
Note: See TracBrowser for help on using the repository browser.