9#define SHIP_METATABLE "ship"
const Ship ** lua_pushship(lua_State *L, const Ship *ship)
Pushes a ship on the stack.
int nlua_loadShip(nlua_env env)
Loads the ship library.
int lua_isship(lua_State *L, int ind)
Checks to see if ind is a ship.
const Ship * luaL_validship(lua_State *L, int ind)
Makes sure the ship is valid or raises a Lua error.
const Ship * luaL_checkship(lua_State *L, int ind)
Gets ship at index or raises error if there is no ship at index.
const Ship * lua_toship(lua_State *L, int ind)
Lua bindings to interact with ships.