22 #include "lvl_base_object.h"
23 #include <data_configs/obj_block.h>
24 #include <common_features/rectf.h>
26 #include "lvl_player.h"
28 #include <luabind/luabind.hpp>
29 #include <lua_inclues/lua.hpp>
61 shape_tr_top_left = 1,
62 shape_tr_top_right =-1,
63 shape_tr_bottom_right = 2,
64 shape_tr_bottom_left =-2,
69 double shape_slope_angle_ratio;
72 int taskToTransform_t;
73 void transformTo(
long id,
int type=0);
74 void transformTo_x(
long id);
76 void hit(directions _dir=up);
77 void hit(
bool isUp,
LVL_Player* player,
int numHits=1);
78 void destroy(
bool playEffect=
false);
79 directions hitDirection;
88 void setFade(
int speed,
float target,
float step);
90 bool tickFader(
int ticks);
95 void render(
double camX,
double camY);
101 int lua_contentID_old();
102 void lua_setContentID_old(
int npcid);
104 void lua_setContentID(
int npcid);
105 bool lua_invisible();
106 void lua_setInvisible(
bool iv);
108 void lua_setSlippery(
bool sl);
110 static luabind::scope bindToLua();
118 #endif // LVL_BLOCK_H
Definition: lvl_player.h:39
Definition: lvl_block.h:31
Level specific Block entry structure. Defines preferences of each block.
Definition: lvl_filedata.h:95
Definition: obj_block.h:28
The PGE_Phys_Object class.
Definition: lvl_base_object.h:51