lua/wrappers/game/lua_door.cpp
/**
	 * Returns true if the given character can open this door.
	 *
	 * @param am.character character The character to check.
	 * @returns boolean True if the given character can open
	 *  this door.
	 */
Returns true if the given character can open this door.
Returns true if the given character can open this door .
int Door_can_open_by(lua_State *lua)
	{
		Door *door = castUData<Door>(lua, 1);
		if (door)
		{
			Character *obj = castUData<Character>(lua, 2);
			if (obj)
			{
				lua_pushboolean(lua, door->canOpenBy(obj));
				return 1;
			}
			return LuaState::expectedArgs(lua, "can_open_by", "am.character character");
		}
		return LuaState::expectedContext(lua, "can_open_by", "am.door");
	}
int Door_can_open_by ( lua_State * lua ) { Door * door = castUData < Door > ( lua , 1 ) ; if ( door ) { Character * obj = castUData < Character > ( lua , 2 ) ; if ( obj ) { lua_pushboolean ( lua , door -> canOpenBy ( obj ) ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Returns true if the given character can open this door.
Returns true if the given character can open this door .