Crossfire Server, Trunk
quest_condition Struct Reference

#include <quest.h>

+ Collaboration diagram for quest_condition:

Data Fields

int maxstep
 
int minstep
 
struct quest_conditionnext
 
sstring quest_code
 

Detailed Description

One condition to automatically move to a quest step.

Definition at line 19 of file quest.h.

Field Documentation

◆ maxstep

int quest_condition::maxstep

The latest step that triggers the condition, to match, the stages must be between minstep and maxstep

Definition at line 23 of file quest.h.

Referenced by check_conditions(), evaluate_quest_conditions(), QuestLoader::load(), quest_condition_from_string(), and quest_write_condition().

◆ minstep

int quest_condition::minstep

The earliest step in the quest that triggers the condition, -1 means finished, 0 means not started

Definition at line 21 of file quest.h.

Referenced by check_conditions(), evaluate_quest_conditions(), QuestLoader::load(), quest_condition_from_string(), and quest_write_condition().

◆ next

struct quest_condition* quest_condition::next

The next condition to check

Definition at line 25 of file quest.h.

Referenced by check_conditions(), evaluate_quest_conditions(), quest_destroy_step(), and QuestStepWrapper::setConditions().

◆ quest_code

sstring quest_condition::quest_code

The documentation for this struct was generated from the following file: