#include <shop_windows.h>
Inheritance diagram for hoa_shop::private_shop::ShopActionWindow:


Public Member Functions | |
| void | Draw () |
| Draws the window to the screen. | |
| ShopActionWindow () | |
| void | Update () |
| Handles user input and updates the state of the window. | |
| void | UpdateFinanceText () |
| Updates the text box that displays the financial information about the transaction. | |
| ~ShopActionWindow () | |
Public Attributes | |
| hoa_video::OptionBox | options |
| The list of options for what the player may do in shop mode Each option includes the name of the object and its price. | |
| hoa_video::TextBox | text_box |
| Prints financial information in the bottom of the window. | |
****************************************************************************
Shop actions include "buy", "sell", etc. This window also contains financial information about the party and the current purchases.
Definition at line 38 of file shop_windows.h.
| hoa_shop::private_shop::ShopActionWindow::ShopActionWindow | ( | ) |
Definition at line 42 of file shop_windows.cpp.
References hoa_utils::MakeUnicodeString(), options, hoa_video::OptionBox::SetCellSize(), hoa_video::OptionBox::SetCursorOffset(), hoa_video::TextBox::SetDimensions(), hoa_video::TextBox::SetDisplayMode(), hoa_video::TextBox::SetDisplaySpeed(), hoa_video::TextBox::SetFont(), hoa_video::OptionBox::SetFont(), hoa_video::OptionBox::SetOptionAlignment(), hoa_video::OptionBox::SetOptions(), hoa_video::private_video::GUIControl::SetOwner(), hoa_video::private_video::GUIElement::SetPosition(), hoa_video::OptionBox::SetSelection(), hoa_video::OptionBox::SetSelectMode(), hoa_video::OptionBox::SetSize(), hoa_video::TextBox::SetTextAlignment(), hoa_video::OptionBox::SetVerticalWrapMode(), text_box, UpdateFinanceText(), hoa_video::VIDEO_MENU_EDGE_RIGHT, hoa_video::VIDEO_MENU_INSTANT, hoa_video::VIDEO_SELECT_SINGLE, hoa_video::VIDEO_TEXT_INSTANT, hoa_video::VIDEO_WRAP_MODE_NONE, hoa_video::VIDEO_X_LEFT, hoa_video::VIDEO_Y_CENTER, and hoa_video::VIDEO_Y_TOP.
Here is the call graph for this function:

| hoa_shop::private_shop::ShopActionWindow::~ShopActionWindow | ( | ) |
Definition at line 83 of file shop_windows.cpp.
| void hoa_shop::private_shop::ShopActionWindow::Draw | ( | ) | [virtual] |
Draws the window to the screen.
Reimplemented from hoa_video::MenuWindow.
Definition at line 170 of file shop_windows.cpp.
References hoa_video::TextBox::Draw(), hoa_video::OptionBox::Draw(), hoa_video::MenuWindow::Draw(), options, and text_box.
Referenced by hoa_shop::ShopMode::Draw().
Here is the call graph for this function:

| void hoa_shop::private_shop::ShopActionWindow::Update | ( | ) |
Handles user input and updates the state of the window.
Definition at line 89 of file shop_windows.cpp.
References hoa_shop::ShopMode::_all_objects, hoa_shop::ShopMode::_confirm_window, hoa_shop::ShopMode::_current_inv, hoa_shop::ShopMode::_info_window, hoa_shop::ShopMode::_list_window, hoa_shop::ShopMode::_sell_window, hoa_shop::ShopMode::_shop_sounds, hoa_shop::ShopMode::_state, hoa_input::GameInput::CancelPress(), hoa_input::GameInput::ConfirmPress(), hoa_shop::private_shop::current_shop, hoa_input::GameInput::DownPress(), hoa_global::GameGlobal::GetInventory(), hoa_video::OptionBox::GetSelection(), hoa_system::GameSystem::GetUpdateTime(), hoa_global::GlobalManager, hoa_video::OptionBox::HandleConfirmKey(), hoa_video::OptionBox::HandleDownKey(), hoa_video::OptionBox::HandleUpKey(), hoa_video::MenuWindow::Hide(), hoa_shop::private_shop::ObjectSellListWindow::hide_options, hoa_shop::private_shop::ObjectListWindow::hide_options, hoa_input::InputManager, hoa_mode_manager::ModeManager, hoa_shop::private_shop::ObjectSellListWindow::object_list, hoa_shop::private_shop::ObjectListWindow::object_list, hoa_shop::private_shop::ConfirmWindow::options, options, hoa_mode_manager::GameModeManager::Pop(), hoa_video::OptionBox::SetCursorState(), hoa_shop::private_shop::ObjectInfoWindow::SetObject(), hoa_video::OptionBox::SetSelection(), hoa_shop::SHOP_DEBUG, hoa_shop::private_shop::SHOP_STATE_CONFIRM, hoa_shop::private_shop::SHOP_STATE_LIST, hoa_shop::private_shop::SHOP_STATE_SELL, hoa_video::MenuWindow::Show(), hoa_system::SystemManager, hoa_video::OptionBox::Update(), hoa_shop::private_shop::ObjectSellListWindow::UpdateSellList(), hoa_input::GameInput::UpPress(), hoa_video::VIDEO_CURSOR_STATE_HIDDEN, and hoa_video::VIDEO_CURSOR_STATE_VISIBLE.
Referenced by hoa_shop::ShopMode::Update().
Here is the call graph for this function:

| void hoa_shop::private_shop::ShopActionWindow::UpdateFinanceText | ( | ) |
Updates the text box that displays the financial information about the transaction.
Definition at line 157 of file shop_windows.cpp.
References hoa_shop::private_shop::current_shop, hoa_global::GameGlobal::GetDrunes(), hoa_shop::ShopMode::GetPurchaseCost(), hoa_shop::ShopMode::GetSalesRevenue(), hoa_shop::ShopMode::GetTotalRemaining(), hoa_global::GlobalManager, hoa_utils::MakeUnicodeString(), hoa_utils::NumberToString(), hoa_video::TextBox::SetDisplayText(), and text_box.
Referenced by hoa_shop::ShopMode::Reset(), ShopActionWindow(), hoa_shop::private_shop::ConfirmWindow::Update(), hoa_shop::private_shop::ObjectSellListWindow::Update(), and hoa_shop::private_shop::ObjectListWindow::Update().
Here is the call graph for this function:

The list of options for what the player may do in shop mode Each option includes the name of the object and its price.
Definition at line 56 of file shop_windows.h.
Referenced by Draw(), ShopActionWindow(), hoa_shop::private_shop::ConfirmWindow::Update(), hoa_shop::private_shop::ObjectSellListWindow::Update(), hoa_shop::private_shop::ObjectListWindow::Update(), and Update().
Prints financial information in the bottom of the window.
Definition at line 59 of file shop_windows.h.
Referenced by Draw(), ShopActionWindow(), and UpdateFinanceText().
1.5.1