#include <map_dialogue.h>
Inheritance diagram for hoa_map::private_map::DialogueManager:


Public Member Functions | |
| void | ClearDialogue () |
| DialogueManager () | |
| void | Draw () |
| Draws the dialogue window, text, portraits, and other related visuals to the screen. | |
| MapDialogue * | GetCurrentDialogue () const |
| void | SetCurrentDialogue (MapDialogue *dialogue) |
| void | Update () |
| Updates the state of the conversation. | |
| ~DialogueManager () | |
Private Attributes | |
| hoa_video::StillImage | _background_image |
| A background image used in map dialogue. | |
| MapDialogue * | _current_dialogue |
| A pointer to the current piece of dialogue that is active. | |
| hoa_video::TextBox | _display_textbox |
| The textbox used for rendering the dialogue text. | |
| hoa_video::StillImage | _nameplate_image |
| The nameplate image used along with the dialogue box image. | |
****************************************************************************
The MapMode class creates an instance of this class to handle all dialogue processing. This includes the visual display of dialogue as well as handling user input and processing of any scripted sequences that should appear with the dialogue.
Definition at line 39 of file map_dialogue.h.
| hoa_map::private_map::DialogueManager::DialogueManager | ( | ) |
Definition at line 48 of file map_dialogue.cpp.
References _background_image, _display_textbox, _nameplate_image, hoa_video::StillImage::GetFilename(), hoa_video::ImageDescriptor::Load(), hoa_video::GameVideo::PopState(), hoa_video::GameVideo::PushState(), hoa_video::private_video::GUIElement::SetAlignment(), hoa_video::GameVideo::SetCoordSys(), hoa_video::TextBox::SetDimensions(), hoa_video::TextBox::SetDisplayMode(), hoa_video::TextBox::SetDisplaySpeed(), hoa_video::StillImage::SetFilename(), hoa_video::TextBox::SetFont(), hoa_video::private_video::GUIElement::SetPosition(), hoa_video::TextBox::SetTextColor(), hoa_video::VIDEO_TEXT_FADECHAR, hoa_video::VIDEO_X_LEFT, hoa_video::VIDEO_Y_TOP, and hoa_video::VideoManager.
Here is the call graph for this function:

| hoa_map::private_map::DialogueManager::~DialogueManager | ( | ) |
Definition at line 75 of file map_dialogue.cpp.
| void hoa_map::private_map::DialogueManager::ClearDialogue | ( | ) | [inline] |
| void hoa_map::private_map::DialogueManager::Draw | ( | ) | [virtual] |
Draws the dialogue window, text, portraits, and other related visuals to the screen.
Reimplemented from hoa_video::MenuWindow.
Definition at line 155 of file map_dialogue.cpp.
References hoa_map::MapMode::_all_objects, _background_image, _current_dialogue, hoa_map::MapMode::_current_map, _display_textbox, _nameplate_image, hoa_video::TextBox::Draw(), hoa_video::ImageDescriptor::Draw(), hoa_video::GameVideo::DrawText(), hoa_map::private_map::VirtualSprite::face_portrait, hoa_map::private_map::MapDialogue::GetCurrentSpeaker(), hoa_video::GameVideo::Move(), hoa_video::GameVideo::MoveRelative(), hoa_map::private_map::VirtualSprite::name, hoa_video::GameVideo::PopState(), hoa_video::GameVideo::PushState(), hoa_video::GameVideo::SetCoordSys(), hoa_video::GameVideo::SetDrawFlags(), hoa_video::GameVideo::SetFont(), hoa_video::GameVideo::SetTextColor(), hoa_video::VIDEO_X_CENTER, hoa_video::VIDEO_X_LEFT, hoa_video::VIDEO_Y_BOTTOM, and hoa_video::VideoManager.
Referenced by hoa_map::MapMode::Draw().
Here is the call graph for this function:

| MapDialogue* hoa_map::private_map::DialogueManager::GetCurrentDialogue | ( | ) | const [inline] |
| void hoa_map::private_map::DialogueManager::SetCurrentDialogue | ( | MapDialogue * | dialogue | ) | [inline] |
Definition at line 51 of file map_dialogue.h.
References _current_dialogue.
Referenced by hoa_map::MapMode::_HandleInputExplore().
| void hoa_map::private_map::DialogueManager::Update | ( | ) |
Updates the state of the conversation.
Definition at line 81 of file map_dialogue.cpp.
References _current_dialogue, hoa_map::MapMode::_current_map, _display_textbox, hoa_map::MapMode::_map_state, hoa_map::MapMode::_time_elapsed, hoa_input::GameInput::ConfirmPress(), hoa_map::private_map::EXPLORE, hoa_video::TextBox::ForceFinish(), hoa_map::private_map::MapDialogue::GetCurrentAction(), hoa_map::private_map::MapDialogue::GetCurrentText(), hoa_map::private_map::MapDialogue::GetCurrentTime(), hoa_map::private_map::MapDialogue::GetLineSpeaker(), hoa_map::private_map::MapDialogue::GetNumLines(), hoa_script::GameScript::HandleLuaError(), hoa_input::InputManager, hoa_map::private_map::MapDialogue::IsBlocked(), hoa_video::TextBox::IsFinished(), hoa_map::private_map::MapDialogue::IsSaving(), hoa_map::private_map::MapDialogue::ReadNextLine(), hoa_script::ScriptManager, hoa_video::TextBox::SetDisplayText(), and hoa_video::TextBox::Update().
Referenced by hoa_map::MapMode::Update().
Here is the call graph for this function:

A background image used in map dialogue.
Definition at line 65 of file map_dialogue.h.
Referenced by DialogueManager(), and Draw().
A pointer to the current piece of dialogue that is active.
Definition at line 62 of file map_dialogue.h.
Referenced by ClearDialogue(), Draw(), GetCurrentDialogue(), SetCurrentDialogue(), and Update().
The textbox used for rendering the dialogue text.
Definition at line 71 of file map_dialogue.h.
Referenced by DialogueManager(), Draw(), and Update().
The nameplate image used along with the dialogue box image.
Definition at line 68 of file map_dialogue.h.
Referenced by DialogueManager(), and Draw().
1.5.1