class

PointClickEngine::Core::Quest

Inherits YAML::Serializable < JSON::Serializable < Reference < Object

Individual quest definition

Constructors

new(id : String, name : String, description : String)
Source
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

abandon(state_manager : GameStateManager)
Source
active

Quest state

Source
active=(active : Bool)

Quest state

Source
add_objective(id : String, description : String, condition : String, optional : Bool = false, hidden : Bool = false)
Source
add_reward(type : String, identifier : String, amount : Int32 = 1)
Source
auto_start
Source
auto_start=(auto_start : Bool)
Source
can_abandon
Source
can_abandon=(can_abandon : Bool)
Source
can_start?(state_manager : GameStateManager) : Bool
Source
category

Quest metadata

Source
category=(category : String)

Quest metadata

Source
complete(state_manager : GameStateManager)
Source
completed
Source
completed=(completed : Bool)
Source
completion_time
Source
completion_time=(completion_time : Float32)
Source
current_step
Source
current_step=(current_step : String)
Source
description
Source
description=(description : String)
Source
fail(state_manager : GameStateManager, reason : String = "")
Source
failed
Source
failed=(failed : Bool)
Source
get_completion_percentage
Source
get_progress_text
Source
get_visible_objectives
Source
id=(id : String)
Source
journal_entries
Source
journal_entries=(journal_entries : Array(String))
Source
name
Source
name=(name : String)
Source
objectives
Source
objectives=(objectives : Array(QuestObjective))
Source
priority
Source
priority=(priority : Int32)
Source
reset
Source
rewards
Source
rewards=(rewards : Array(QuestReward))
Source
start(state_manager : GameStateManager)
Source
start_condition
Source
start_condition=(start_condition : String)
Source
update_progress(state_manager : GameStateManager) : Bool
Source