1 #ifndef __LUA_PLAYER_H
2 #define __LUA_PLAYER_H
3 
4 /*
5 LUA_PLAYER.H
6 
7 	Copyright (C) 2008 by Gregory Smith
8 
9 	This program is free software; you can redistribute it and/or modify
10 	it under the terms of the GNU General Public License as published by
11 	the Free Software Foundation; either version 3 of the License, or
12 	(at your option) any later version.
13 
14 	This program is distributed in the hope that it will be useful,
15 	but WITHOUT ANY WARRANTY; without even the implied warranty of
16 	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 	GNU General Public License for more details.
18 
19 	This license is contained in the file "COPYING",
20 	which is included with this source code; it is available online at
21 	http://www.gnu.org/licenses/gpl.html
22 
23 	Implements the Lua Player class
24 */
25 
26 #include "cseries.h"
27 
28 #ifdef HAVE_LUA
29 extern "C"
30 {
31 #include "lua.h"
32 #include "lauxlib.h"
33 #include "lualib.h"
34 }
35 
36 #include "map.h"
37 #include "lua_templates.h"
38 
39 extern char Lua_Player_Name[]; // "player"
40 typedef L_Class<Lua_Player_Name> Lua_Player;
41 
42 extern char Lua_Players_Name[]; // "Players"
43 typedef L_Container<Lua_Players_Name, Lua_Player> Lua_Players;
44 
45 extern char Lua_PlayerColor_Name[]; // "player_color"
46 typedef L_Enum<Lua_PlayerColor_Name> Lua_PlayerColor;
47 
48 extern char Lua_PlayerColors_Name[]; // "PlayerColors"
49 typedef L_EnumContainer<Lua_PlayerColors_Name, Lua_PlayerColor> Lua_PlayerColors;
50 
51 int Lua_Player_register (lua_State *L);
52 
53 #endif
54 
55 #endif
56