Class: PFM::Quests::Quest
Overview
Class describing a running quest
Instance Attribute Summary collapse
-
#quest_id ⇒ Integer
readonly
Get the quest id.
Instance Method Summary collapse
-
#checked_by_player
Marks the quest as seen.
-
#custom_objective?(objective_method_name, objective_nb) ⇒ Boolean
Test if a quest has a specific custom objective.
-
#data_get(*path, default) ⇒ Object, default
Get a specific data information.
-
#data_set(*path, value)
Set a specific data information.
-
#distribute_earnings
Distribute the earning of the quest.
-
#finished? ⇒ Boolean
Tell if all the objective of the quest are finished.
-
#initialize(quest_id) ⇒ Quest
constructor
Create a new quest.
-
#objective?(objective_method_name, *args) ⇒ Boolean
Test if the quest has a specific kind of objective.
-
#objective_catch_pokemon_test(pkm, pokemon) ⇒ Boolean
Check the specific pokemon criterion in catch_pokemon.
-
#objective_text_list ⇒ Array<Array(String, Boolean)>
Get the list of objective texts with their validation state.
Constructor Details
#initialize(quest_id) ⇒ Quest
Create a new quest
196 197 |
# File 'docs/4_Systems_800_Quest.rb', line 196 def initialize(quest_id) end |
Instance Attribute Details
#quest_id ⇒ Integer (readonly)
Get the quest id
193 194 195 |
# File 'docs/4_Systems_800_Quest.rb', line 193 def quest_id @quest_id end |
Instance Method Details
#checked_by_player
Marks the quest as seen
231 232 |
# File 'docs/4_Systems_800_Quest.rb', line 231 def checked_by_player end |
#custom_objective?(objective_method_name, objective_nb) ⇒ Boolean
Test if a quest has a specific custom objective.
221 222 |
# File 'docs/4_Systems_800_Quest.rb', line 221 def custom_objective?(objective_method_name, objective_nb) end |
#data_get(*path, default) ⇒ Object, default
Get a specific data information
202 203 |
# File 'docs/4_Systems_800_Quest.rb', line 202 def data_get(*path, default) end |
#data_set(*path, value)
Set a specific data information
207 208 |
# File 'docs/4_Systems_800_Quest.rb', line 207 def data_set(*path, value) end |
#distribute_earnings
Distribute the earning of the quest
224 225 |
# File 'docs/4_Systems_800_Quest.rb', line 224 def distribute_earnings end |
#finished? ⇒ Boolean
Tell if all the objective of the quest are finished
228 229 |
# File 'docs/4_Systems_800_Quest.rb', line 228 def finished? end |
#objective?(objective_method_name, *args) ⇒ Boolean
Test if the quest has a specific kind of objective
213 214 |
# File 'docs/4_Systems_800_Quest.rb', line 213 def objective?(objective_method_name, *args) end |
#objective_catch_pokemon_test(pkm, pokemon) ⇒ Boolean
Check the specific pokemon criterion in catch_pokemon
249 250 |
# File 'docs/4_Systems_800_Quest.rb', line 249 def objective_catch_pokemon_test(pkm, pokemon) end |
#objective_text_list ⇒ Array<Array(String, Boolean)>
Does not return text of hidden objectives
Get the list of objective texts with their validation state
236 237 |
# File 'docs/4_Systems_800_Quest.rb', line 236 def objective_text_list end |