ArtMOO
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
G:/dev/qt/MOO/ServerCore/lua_connection.h
Go to the documentation of this file.
00001 #ifndef LUA_CONNECTION_H
00002 #define LUA_CONNECTION_H
00003 
00004 #include <lua.hpp>
00005 
00006 #include "lua_utilities.h"
00007 
00008 class Connection;
00009 
00010 class lua_connection
00011 {
00012 public:
00013         typedef struct luaConnection
00014         {
00015                 Connection              *mConnection;
00016         } luaConnection;
00017 
00018         static void lua_pushconnection( lua_State *L, Connection *O );
00019 
00020 private:
00021         static void initialise( void );
00022 
00023         static void luaRegisterState( lua_State *L );
00024 
00025         static int luaPlayer( lua_State *L );
00026         static int luaNotify( lua_State *L );
00027         static int luaBoot( lua_State *L );
00028 
00029         static int luaConnections( lua_State *L );
00030         static int luaCon( lua_State *L );
00031 
00032         static int luaGet( lua_State *L );
00033 
00034         static luaConnection *arg( lua_State *L, int pIndex = 1 );
00035 
00036         static const char                       *mLuaName;
00037 
00038         static LuaMap                            mLuaMap;
00039 
00040         static const luaL_Reg            mLuaStatic[];
00041         static const luaL_Reg            mLuaInstance[];
00042         static const luaL_Reg            mLuaInstanceFunctions[];
00043 
00044         friend class lua_moo;
00045 };
00046 
00047 #endif // LUA_CONNECTION_H