lua/wrappers/game/lua_map_region.cpp
/**
	 * Returns true if the given game object intersects with
	 * this map region. This will be true if any part of the game object
	 * is over a map region value > 0.
	 *
	 * @param am.game_object object Any game object (am.character, am.item, am.door).
	 * @returns boolean True if it intersects.
	 */
Returns true if the given game object intersects with
this map region. This will be true if any part of the game object
is over a map region value > 0.


Returns true if the given game object intersects with this map region . This will be true if any part of the game object is over a map region value > 0 .
int MapRegion_intersects_with(lua_State *lua)
	{
		MapRegion *region = castUData<MapRegion>(lua, 1);
		if (region)
		{
			GameObject *obj = getGameObject(lua, 2);
			if (obj)
			{
				lua_pushboolean(lua, region->intersectsWith(obj));
				return 1;
			}
			return LuaState::expectedArgs(lua, "intersects_with", "am.game_object object");
		}
		return LuaState::expectedContext(lua, "intersects_with", "am.map_region");
	}
int MapRegion_intersects_with ( lua_State * lua ) { MapRegion * region = castUData < MapRegion > ( lua , 1 ) ; if ( region ) { GameObject * obj = getGameObject ( lua , 2 ) ; if ( obj ) { lua_pushboolean ( lua , region -> intersectsWith ( obj ) ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Returns true if the given game object intersects with
 this map region.
Returns true if the given game object intersects with this map region .