PointClickEngine::Core::QuestManager
Inherits YAML::Serializable < JSON::Serializable < Reference < Object
Quest manager handles all quests and their interactions
Constructors
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Sourcenew(pull : JSON::PullParser)
Sourcenew(event_bus : Events::EventBus)
Sourcenew
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_quest(id : String, state_manager : GameStateManager) : Bool
Sourceactive_notifications
Sourceactive_notifications=(active_notifications : Array(String))
Sourceadd_quest(quest : Quest)
Sourcecheck_objectives_for_flag(flag_name : String, value : Bool)
Sourcecheck_objectives_for_variable(var_name : String, value : GameValue)
Sourceclear_notifications
Sourcecreate_quest(id : String, name : String, description : String) : Quest
Sourceevent_bus
Sourceevent_bus=(event_bus : Events::EventBus | Nil)
Sourceget_active_quests
Sourceget_available_quests(state_manager : GameStateManager) : Array(Quest)
Sourceget_completed_quests
Sourceget_failed_quests
Sourceget_notifications
Sourceget_quest(id : String) : Quest | Nil
Sourceget_quests_by_category(category : String) : Array(Quest)
Sourceload_from_file(path : String) : Bool
Sourceon_quest_advanced(quest_id : String, step : String)
Sourceon_quest_completed(quest_id : String)
Sourcequests
Sourcequests=(quests : Hash(String, Quest))
Sourcereset_all_quests
Sourcereset_quest(id : String) : Bool
Sourcestart_quest(id : String, state_manager : GameStateManager) : Bool
Sourcestate_manager
Sourcestate_manager=(state_manager : GameStateManager | Nil)
Sourceupdate_all_quests(state_manager : GameStateManager, dt : Float32)
Source