lua/wrappers/game/lua_map.cpp
/**
	 * Returns the tile object on the tile instance at the given grid location.
	 *
	 * @param integer x The x position of the tile.
	 * @param integer y The y position of the tile.
	 * @returns am.tile The found file, nil if out of bounds.
	 */
Returns the tile object on the tile instance at the given grid location.
@param integer x The x position of the tile.
@param integer y The y position of the tile.
@returns am.tile The found file, nil if out of bounds.
Returns the tile object on the tile instance at the given grid location . @param integer x The x position of the tile . @param integer y The y position of the tile . @returns am . tile The found file nil if out of bounds .
int Map_tile(lua_State *lua)
	{
		Map *map = castUData<Map>(lua, 1);
		if (map && lua_isnumber(lua, -2) && lua_isnumber(lua, -1))
		{
			Tile *tile = map->getTile(lua_tointeger(lua, -2), lua_tointeger(lua, -1));
			if (tile)
			{
				wrapRefObject<Tile>(lua, tile);
				return 1;
			}
		}
		lua_pushnil(lua);
		return 1;
	}
int Map_tile ( lua_State * lua ) { Map * map = castUData < Map > ( lua , 1 ) ; if ( map && lua_isnumber ( lua , -2 ) && lua_isnumber ( lua , -1 ) ) { Tile * tile = map -> getTile ( lua_tointeger ( lua , -2 ) , lua_tointeger ( lua , -1 ) ) ; if ( tile ) { wrapRefObject < Tile > ( lua , tile ) ; return 1 ; } } lua_pushnil ( lua ) ; return 1 ; }
Returns the tile object on the tile instance at the given grid location.
Returns the tile object on the tile instance at the given grid location .