PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
lua_level_engine.h
1 #ifndef LUALEVELENGINE_H
2 #define LUALEVELENGINE_H
3 
4 #include "lua_engine.h"
5 
6 class LevelScene;
7 class LVL_Player;
8 class LVL_Npc;
9 
10 class LuaLevelEngine : public LuaEngine
11 {
12 private:
13  Q_DISABLE_COPY(LuaLevelEngine)
14 public:
15  LuaLevelEngine(LevelScene* scene);
16  ~LuaLevelEngine();
17 
18  LVL_Player* createLuaPlayer();
19  LVL_Npc* createLuaNpc(unsigned int id);
20  void destoryLuaNpc(LVL_Npc* npc);
21  void destoryLuaPlayer(LVL_Player *plr);
22 
23  void loadNPCClass(int id, const QString& path);
24 
25  LevelScene* getScene();
26 
27  QString getNpcBaseClassPath() const;
28  void setNpcBaseClassPath(const QString &npcBaseClassPath);
29 
30  QString getPlayerBaseClassPath() const;
31  void setPlayerBaseClassPath(const QString &playerBaseClassPath);
32 
33 protected:
34  QString m_npcBaseClassPath;
35  QString m_playerBaseClassPath;
36 
37  void onBindAll();
38 };
39 
40 #endif // LUALEVELENGINE_H
Definition: scene_level.h:73
Definition: lua_level_engine.h:10
This class should have basic functions for interacting with lua To run the lua engine you have to con...
Definition: lua_engine.h:27
Definition: lvl_player.h:39
Definition: lvl_npc.h:21