PointClickEngine::Core::Quest
Inherits YAML::Serializable < JSON::Serializable < Reference < Object
Individual quest definition
Constructors
new(id : String, name : String, description : String)
Sourcenew(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
Sourcenew(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
SourceInstance methods
abandon(state_manager : GameStateManager)
Sourceadd_reward(type : String, identifier : String, amount : Int32 = 1)
Sourceauto_start
Sourceauto_start=(auto_start : Bool)
Sourcecan_abandon
Sourcecan_abandon=(can_abandon : Bool)
Sourcecan_start?(state_manager : GameStateManager) : Bool
Sourcecomplete(state_manager : GameStateManager)
Sourcecompleted
Sourcecompleted=(completed : Bool)
Sourcecompletion_time
Sourcecompletion_time=(completion_time : Float32)
Sourcecurrent_step
Sourcecurrent_step=(current_step : String)
Sourcedescription
Sourcedescription=(description : String)
Sourcefail(state_manager : GameStateManager, reason : String = "")
Sourcefailed
Sourcefailed=(failed : Bool)
Sourceget_completion_percentage
Sourceget_progress_text
Sourceget_visible_objectives
Sourceid
Sourceid=(id : String)
Sourcejournal_entries
Sourcejournal_entries=(journal_entries : Array(String))
Sourcename
Sourcename=(name : String)
Sourceobjectives
Sourceobjectives=(objectives : Array(QuestObjective))
Sourcepriority
Sourcepriority=(priority : Int32)
Sourcereset
Sourcerewards
Sourcerewards=(rewards : Array(QuestReward))
Sourcestart(state_manager : GameStateManager)
Sourcestart_condition
Sourcestart_condition=(start_condition : String)
Sourceupdate_progress(state_manager : GameStateManager) : Bool
Source