Class: PFM::Quests::Quest
Overview
Class describing a running quest
Instance Attribute Summary collapse
-
#quest_id ⇒ Integer
readonly
Get the quest id.
Class Method Summary collapse
-
.pokemon_from_data(data, level)
Get Pokémon from data.
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 each 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
200 201 |
# File 'docs/4_Systems_800_Quest.rb', line 200 def initialize(quest_id) end |
Instance Attribute Details
#quest_id ⇒ Integer (readonly)
Get the quest id
197 198 199 |
# File 'docs/4_Systems_800_Quest.rb', line 197 def quest_id @quest_id end |
Class Method Details
.pokemon_from_data(data, level)
Get Pokémon from data
259 260 |
# File 'docs/4_Systems_800_Quest.rb', line 259 def pokemon_from_data(data, level) end |
Instance Method Details
#checked_by_player
Marks the quest as seen
235 236 |
# File 'docs/4_Systems_800_Quest.rb', line 235 def checked_by_player end |
#custom_objective?(objective_method_name, objective_nb) ⇒ Boolean
Test if a quest has a specific custom objective.
225 226 |
# File 'docs/4_Systems_800_Quest.rb', line 225 def custom_objective?(objective_method_name, objective_nb) end |
#data_get(*path, default) ⇒ Object, default
Get a specific data information
206 207 |
# File 'docs/4_Systems_800_Quest.rb', line 206 def data_get(*path, default) end |
#data_set(*path, value)
Set a specific data information
211 212 |
# File 'docs/4_Systems_800_Quest.rb', line 211 def data_set(*path, value) end |
#distribute_earnings
Distribute the earning of the quest
228 229 |
# File 'docs/4_Systems_800_Quest.rb', line 228 def distribute_earnings end |
#finished? ⇒ Boolean
Tell if all the objective of the quest are finished
232 233 |
# File 'docs/4_Systems_800_Quest.rb', line 232 def finished? end |
#objective?(objective_method_name, *args) ⇒ Boolean
Test if the quest has a specific kind of objective
217 218 |
# File 'docs/4_Systems_800_Quest.rb', line 217 def objective?(objective_method_name, *args) end |
#objective_catch_pokemon_test(pkm, pokemon) ⇒ Boolean
Check each specific pokemon criterion in catch_pokemon
253 254 |
# File 'docs/4_Systems_800_Quest.rb', line 253 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
240 241 |
# File 'docs/4_Systems_800_Quest.rb', line 240 def objective_text_list end |