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