Functions | Variables
player-quest.h File Reference

Quest-related variables and functions. More...

Go to the source code of this file.


bool is_quest (int level)
 Check if the given level is a quest level. More...
void player_quests_reset (struct player *p)
 Copy all the standard quests to the player quest history. More...
void player_quests_free (struct player *p)
 Free the player quests. More...
bool quest_check (const struct monster *m)
 Check if this (now dead) monster is a quest monster, and act appropriately. More...


struct questquests
 Array of quests. More...
struct file_parser quests_parser

Detailed Description

Quest-related variables and functions.

Copyright (c) 2013 Angband developers

This work is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation, version 2, or

b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.

Function Documentation

◆ is_quest()

bool is_quest ( int  level)

Check if the given level is a quest level.

References i, quest::level, angband_constants::quest_max, player::quests, and z_info.

◆ player_quests_free()

void player_quests_free ( struct player p)

◆ player_quests_reset()

void player_quests_reset ( struct player p)

Copy all the standard quests to the player quest history.

References i, quest::level, quest::max_num, mem_zalloc(), quest::name, player_quests_free(), angband_constants::quest_max, player::quests, quest::race, string_make(), and z_info.

Referenced by player_init(), and rd_quests().

◆ quest_check()

bool quest_check ( const struct monster m)

Variable Documentation

◆ quests

struct quest* quests

Array of quests.

Referenced by setup_tests().

◆ quests_parser

struct file_parser quests_parser