Crossfire Server, Trunk
quest_state Struct Reference
+ Collaboration diagram for quest_state:

Data Fields

sstring code
 
int is_complete
 
quest_statenext
 
int sent_to_client
 
int state
 
int was_completed
 

Detailed Description

Information about a quest for a player.

Definition at line 48 of file quest.cpp.

Field Documentation

◆ code

sstring quest_state::code

Quest internal code.

Definition at line 49 of file quest.cpp.

Referenced by command_quest(), free_state(), get_or_create_state(), get_state(), quest_info(), and quest_read_player_data().

◆ is_complete

int quest_state::is_complete

Whether the quest is complete in the current playthrough

Definition at line 52 of file quest.cpp.

Referenced by quest_info(), quest_read_player_data(), and quest_set_state().

◆ next

quest_state* quest_state::next

Next quest on the list.

Definition at line 54 of file quest.cpp.

Referenced by command_quest(), free_state(), get_or_create_state(), get_state(), and quest_read_player_data().

◆ sent_to_client

int quest_state::sent_to_client

Whether this state was sent to the client or not.

Definition at line 53 of file quest.cpp.

Referenced by quest_set_state().

◆ state

int quest_state::state

State for the player.

Definition at line 50 of file quest.cpp.

Referenced by quest_get_player_state(), quest_info(), quest_read_player_data(), and quest_set_state().

◆ was_completed

int quest_state::was_completed

Whether the quest was completed once or not, indepandently of the state.

Definition at line 51 of file quest.cpp.

Referenced by quest_read_player_data(), and quest_set_state().


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