Screenshots with F9.
[sdlbotor.git] / luafuncs.h
blobb50c9d0dad387e8246f7c46a2f99b85f55eff885
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 );
23 static LUA_FUNC( Map_GetRandomFreePosition );
24 static LUA_FUNC( Map_IsTile );
25 static LUA_FUNC( Map_IsObjectOn );
26 static LUA_FUNC( Map_IsRobotOn );
27 static LUA_FUNC( Map_CheckFree );
29 static const luaL_Reg lMapFuncs[];
32 //PLAYER:
34 static LUA_FUNC( Player_GetPosition );
35 static LUA_FUNC( Player_SetImmune );
36 static LUA_FUNC( Player_Teleport );
37 static LUA_FUNC( Player_Pickup );
38 static LUA_FUNC( Player_Drop );
39 static LUA_FUNC( Player_AddLives );
41 static const luaL_Reg lPlayerFuncs[];
48 #endif