Class: GamePlay::QuestBookQuest

Inherits:
Base show all
Includes:
Text::Util
Defined in:
scripts/01400 GamePlay/01400 Quest/03400 GamePlay__QuestBookQuest.rb

Overview

Show the quest info

Constant Summary

Constants inherited from Base

Base::DEFAULT_TRANSITION, Base::DEFAULT_TRANSITION_PARAMETER, Base::MESSAGE_ERROR

Constants included from Input

Input::AXIS_MAPPING, Input::AXIS_SENSITIVITY, Input::DEAD_ZONE, Input::Keyboard, Input::Keys, Input::NON_TRIGGER_ZONE, Input::REPEAT_COOLDOWN, Input::REPEAT_SPACE

Instance Attribute Summary

Attributes inherited from Base

#__last_scene, #__result_process, #message_window, #running, #viewport

Instance Method Summary collapse

Methods inherited from Base

#add_disposable, #call_scene, #display_message, #display_message_and_wait, #dispose, #find_parent, #main, #return_to_scene, #snap_to_bitmap, #visible, #visible=

Methods included from Input

dir4, dir8, get_text, joy_axis_position, press?, register_events, released?, repeat?, swap_states, trigger?

Constructor Details

#initialize(id, index, quests_id) ⇒ QuestBookQuest

Create a new QuestBookList

Parameters:

  • id (Integer)

    Id of the quest to show

  • index (Integer)

    Index of last scene

  • quests_id (Array<Integer>)

    List of quest ids

Instance Method Details

#_convert_catch(data) ⇒ String

Fonction de conversion en message de l'objectif de capture

Parameters:

Returns:

#adjust_viewport

Adjust the viewport position

#create_graphics

#show_earning(text, earning)

Show an earning

Parameters:

  • text (Text)

    a text object

  • earning (Hash)

    earning data

#show_objective(quest_data)

Show the objective of a quest

Parameters:

#show_quest

Show the quest info

#update

Updates the interface