hoa_shop::private_shop::ConfirmWindow Class Reference

Displays the object's icon, name, and a sale confirmation message. More...

#include <shop_windows.h>

Inheritance diagram for hoa_shop::private_shop::ConfirmWindow:

Inheritance graph
[legend]
Collaboration diagram for hoa_shop::private_shop::ConfirmWindow:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ConfirmWindow ()
void Draw ()
 Draws the window and the object properties contained within.
void Update ()
 Updates the option box.
 ~ConfirmWindow ()

Public Attributes

hoa_video::OptionBox options
 Options for the user to confirm or reject the sale.

Detailed Description

Displays the object's icon, name, and a sale confirmation message.

****************************************************************************

This window is currently being used for the shopping cart functionality. When confirmed, all buy/sell transactions are finalized.

Definition at line 201 of file shop_windows.h.


Constructor & Destructor Documentation

hoa_shop::private_shop::ConfirmWindow::ConfirmWindow (  ) 

Definition at line 525 of file shop_windows.cpp.

References hoa_utils::MakeUnicodeString(), options, hoa_video::OptionBox::SetCellSize(), hoa_video::OptionBox::SetCursorOffset(), 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::OptionBox::SetVerticalWrapMode(), hoa_video::VIDEO_MENU_INSTANT, hoa_video::VIDEO_SELECT_SINGLE, hoa_video::VIDEO_WRAP_MODE_NONE, hoa_video::VIDEO_X_CENTER, hoa_video::VIDEO_X_LEFT, and hoa_video::VIDEO_Y_CENTER.

Here is the call graph for this function:

hoa_shop::private_shop::ConfirmWindow::~ConfirmWindow (  ) 

Definition at line 552 of file shop_windows.cpp.


Member Function Documentation

void hoa_shop::private_shop::ConfirmWindow::Draw (  )  [virtual]

Draws the window and the object properties contained within.

Reimplemented from hoa_video::MenuWindow.

Definition at line 623 of file shop_windows.cpp.

References hoa_shop::ShopMode::_state, hoa_shop::private_shop::current_shop, hoa_video::OptionBox::Draw(), hoa_video::GameVideo::DrawText(), hoa_video::GameVideo::Move(), options, hoa_video::GameVideo::PopState(), hoa_video::GameVideo::PushState(), hoa_video::GameVideo::SetDrawFlags(), hoa_shop::private_shop::SHOP_STATE_CONFIRM, hoa_video::VIDEO_X_CENTER, hoa_video::VIDEO_Y_CENTER, and hoa_video::VideoManager.

Referenced by hoa_shop::ShopMode::Draw().

Here is the call graph for this function:

void hoa_shop::private_shop::ConfirmWindow::Update (  ) 

Updates the option box.

Definition at line 558 of file shop_windows.cpp.

References hoa_shop::ShopMode::_action_window, hoa_shop::ShopMode::_all_objects, hoa_shop::ShopMode::_all_objects_quantities, hoa_shop::ShopMode::_current_inv, hoa_shop::ShopMode::_info_window, hoa_shop::ShopMode::_list_window, hoa_shop::ShopMode::_purchases_cost, hoa_shop::ShopMode::_sales_revenue, hoa_shop::ShopMode::_sell_objects_quantities, hoa_shop::ShopMode::_sell_window, hoa_shop::ShopMode::_shop_sounds, hoa_shop::ShopMode::_state, hoa_global::GameGlobal::AddDrunes(), hoa_global::GameGlobal::AddToInventory(), hoa_input::GameInput::CancelPress(), hoa_input::GameInput::ConfirmPress(), hoa_shop::private_shop::current_shop, hoa_global::GameGlobal::DecrementObjectCount(), hoa_global::GameGlobal::GetInventory(), hoa_shop::ShopMode::GetPurchaseCost(), hoa_shop::ShopMode::GetSalesRevenue(), hoa_video::OptionBox::GetSelection(), hoa_global::GlobalManager, hoa_video::OptionBox::HandleLeftKey(), hoa_video::OptionBox::HandleRightKey(), hoa_input::InputManager, hoa_input::GameInput::LeftPress(), hoa_shop::private_shop::ShopActionWindow::options, options, hoa_shop::private_shop::ObjectListWindow::RefreshList(), hoa_input::GameInput::RightPress(), hoa_video::OptionBox::SetCursorState(), hoa_shop::private_shop::ObjectInfoWindow::SetObject(), hoa_video::OptionBox::SetSelection(), hoa_shop::private_shop::SHOP_STATE_ACTION, hoa_shop::private_shop::SHOP_STATE_LIST, hoa_global::GameGlobal::SubtractDrunes(), hoa_video::OptionBox::Update(), hoa_shop::private_shop::ShopActionWindow::UpdateFinanceText(), hoa_shop::private_shop::ObjectSellListWindow::UpdateSellList(), 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:


Member Data Documentation

hoa_video::OptionBox hoa_shop::private_shop::ConfirmWindow::options

Options for the user to confirm or reject the sale.

Definition at line 214 of file shop_windows.h.

Referenced by ConfirmWindow(), Draw(), Update(), hoa_shop::private_shop::ObjectSellListWindow::Update(), hoa_shop::private_shop::ObjectListWindow::Update(), and hoa_shop::private_shop::ShopActionWindow::Update().


The documentation for this class was generated from the following files:
Generated on Fri Jul 6 23:15:56 2007 for Hero of Allacrost by  doxygen 1.5.1