#ifndef __LUA_PLAYER_H
#define __LUA_PLAYER_H

/*
LUA_PLAYER.H

	Copyright (C) 2008 by Gregory Smith
 
	This program is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation; either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	This license is contained in the file "COPYING",
	which is included with this source code; it is available online at
	http://www.gnu.org/licenses/gpl.html

	Implements the Lua Player class
*/

#include "cseries.h"

extern "C"
{
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
}

#include "map.h"
#include "lua_templates.h"

extern char Lua_Player_Name[]; // "player"
typedef L_Class<Lua_Player_Name> Lua_Player;

extern char Lua_Players_Name[]; // "Players"
typedef L_Container<Lua_Players_Name, Lua_Player> Lua_Players;

extern char Lua_PlayerColor_Name[]; // "player_color"
typedef L_Enum<Lua_PlayerColor_Name> Lua_PlayerColor;

extern char Lua_PlayerColors_Name[]; // "PlayerColors"
typedef L_EnumContainer<Lua_PlayerColors_Name, Lua_PlayerColor> Lua_PlayerColors;

int Lua_Player_register (lua_State *L);

#endif
