PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
lvl_bgo.h
1 /*
2  * Platformer Game Engine by Wohlstand, a free platform for game making
3  * Copyright (c) 2015 Vitaly Novichkov <admin@wohlnet.ru>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef LVL_BGO_H
20 #define LVL_BGO_H
21 
22 #include "lvl_base_object.h"
23 #include <data_configs/obj_bgo.h>
25 
26 #include <luabind/luabind.hpp>
27 #include <lua_inclues/lua.hpp>
28 
29 class LVL_Bgo : public PGE_Phys_Object
30 {
31 public:
32  LVL_Bgo();
33  ~LVL_Bgo();
34  void init();
35 
36  void transformTo_x(long id);
37 
38  LevelBGO data; //Local settings
39 
40  bool animated;
41  long animator_ID;
42 
43  obj_bgo * setup;//Global config
44 
45  void render(double camX, double camY);
46  bool isInited();
47 
48  /************LUA-Specific functions*********/
49  long lua_getID();
50  static luabind::scope bindToLua();
51  /*******************************************/
52 
53 private:
54  bool _isInited;
55 };
56 
57 
58 #endif // LVL_BGO_H
Definition: obj_bgo.h:25
Level specific Background object entry structure. Defines preferences of each Background object...
Definition: lvl_filedata.h:138
Definition: lvl_bgo.h:29
PGE File Library.
The PGE_Phys_Object class.
Definition: lvl_base_object.h:51