lua/wrappers/game/lua_game.cpp
/**
	 * Adds a quest to the quest pool.
	 *
	 * @param am.quest quest The quest to add.
	 * @returns boolean True if the quest was successfully added.
	 */
Adds a quest to the quest pool.
Adds a quest to the quest pool .
int Game_add_quest(lua_State *lua)
	{
		Game *game = castUData<Game>(lua, 1);
		if (game)
		{
			Quest *quest = castUData<Quest>(lua, 2);
			if (quest)
			{
				lua_pushboolean(lua, game->addQuest(quest));
				return 1;
			}
			return LuaState::expectedArgs(lua, "add_quest", "am.quest quest");
		}
		return LuaState::expectedContext(lua, "add_quest", "am.game");
	}
int Game_add_quest ( lua_State * lua ) { Game * game = castUData < Game > ( lua , 1 ) ; if ( game ) { Quest * quest = castUData < Quest > ( lua , 2 ) ; if ( quest ) { lua_pushboolean ( lua , game -> addQuest ( quest ) ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Adds a quest to the quest pool.
Adds a quest to the quest pool .