Added potion. reverted inventory lala
[sdlbotor.git] / luafuncs.h
blob47f659e09fc2d9c48d0332cf86bad95e1afc6b1f
1 #ifndef LUAFUNCS_H
2 #define LUAFUNCS_H
4 #include "luainclude.h"
6 #define LUA_FUNC( name ) int name( lua_State *L )
8 namespace botor
11 class LuaFuncs
14 public:
16 static void Push( lua_State *L );
18 //MAP:
20 static LUA_FUNC( Map_Acid );
21 static LUA_FUNC( Map_CreateObject );
22 static LUA_FUNC( Map_CreateRobot );
24 static const luaL_Reg lMapFuncs[];
27 //PLAYER:
29 static LUA_FUNC( Player_GetPosition );
30 static LUA_FUNC( Player_SetImmune );
31 static LUA_FUNC( Player_Teleport );
32 static LUA_FUNC( Player_Pickup );
33 static LUA_FUNC( Player_Drop );
34 static LUA_FUNC( Player_AddLives );
36 static const luaL_Reg lPlayerFuncs[];
43 #endif