Crossfire Server, Trunk
quest_definition Struct Reference

#include <quest.h>

+ Collaboration diagram for quest_definition:

Data Fields

uint32_t client_code = 0
 
const Faceface = nullptr
 
struct quest_definitionparent = nullptr
 
sstring quest_code = nullptr
 
sstring quest_comment = nullptr
 
sstring quest_description = nullptr
 
bool quest_is_system = false
 
int quest_restart = 0
 
sstring quest_title = nullptr
 
std::vector< quest_step_definition * > steps
 

Detailed Description

Definition of an in-game quest.

Definition at line 37 of file quest.h.

Field Documentation

◆ client_code

uint32_t quest_definition::client_code = 0

The code used to communicate with the client, merely a unique index.

Definition at line 44 of file quest.h.

◆ face

const Face* quest_definition::face = nullptr

Face associated with this quest.

Definition at line 43 of file quest.h.

Referenced by QuestWrapper::displayIcon(), QuestWrapper::face(), QuestWrapper::setFace(), and QuestWrapper::uses().

◆ parent

struct quest_definition* quest_definition::parent = nullptr

Parent for this quest, NULL if it is a 'top-level' quest

Definition at line 47 of file quest.h.

Referenced by get_quest_by_number(), quest_info(), QuestWrapper::questParent(), and QuestWrapper::setQuestParent().

◆ quest_code

sstring quest_definition::quest_code = nullptr

Quest internal code.

Definition at line 38 of file quest.h.

Referenced by QuestsWrapper::addQuest(), and QuestWrapper::code().

◆ quest_comment

sstring quest_definition::quest_comment = nullptr

Quest comment, not visible to players.

Definition at line 41 of file quest.h.

Referenced by QuestWrapper::comment(), and QuestWrapper::setComment().

◆ quest_description

sstring quest_definition::quest_description = nullptr

Quest longer description.

Definition at line 40 of file quest.h.

Referenced by QuestWrapper::description(), and QuestWrapper::setDescription().

◆ quest_is_system

bool quest_definition::quest_is_system = false

If set then the quest isn't counted or listed.

Definition at line 45 of file quest.h.

Referenced by QuestWrapper::isSystem(), Quests::replace(), and QuestWrapper::setSystem().

◆ quest_restart

int quest_definition::quest_restart = 0

If non zero, can be restarted.

Definition at line 42 of file quest.h.

Referenced by QuestWrapper::canRestart(), and QuestWrapper::setRestart().

◆ quest_title

sstring quest_definition::quest_title = nullptr

Quest title for player.

Definition at line 39 of file quest.h.

Referenced by QuestsWrapper::addQuest(), QuestWrapper::displayName(), QuestWrapper::setTitle(), and QuestWrapper::title().

◆ steps


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