hoa_shop::private_shop::ObjectInfoWindow Class Reference

Displays detailed information about a selected object. More...

#include <shop_windows.h>

Inheritance diagram for hoa_shop::private_shop::ObjectInfoWindow:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

void Draw ()
 Draws the window and the object properties contained within.
 ObjectInfoWindow ()
void SetObject (hoa_global::GlobalObject *obj)
 Sets the object that this window will display the properties of.
 ~ObjectInfoWindow ()

Public Attributes

hoa_video::TextBox description
 A text box that holds the description text of the object.
hoa_video::TextBox properties
 A text box that displays the object's properties, such as attack or defense ratings.

Private Attributes

hoa_global::GlobalObject_object
 A pointer to the object whose properties are to be described If this member is set to NULL, then the window will be blank. The pointer should point to an object contained within a ShopMode class, not to an object in the player's inventory or anywhere else.

Detailed Description

Displays detailed information about a selected object.

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

Definition at line 164 of file shop_windows.h.


Constructor & Destructor Documentation

hoa_shop::private_shop::ObjectInfoWindow::ObjectInfoWindow (  ) 

Definition at line 426 of file shop_windows.cpp.

References _object, description, properties, hoa_video::TextBox::SetDimensions(), hoa_video::TextBox::SetDisplayMode(), hoa_video::TextBox::SetDisplaySpeed(), hoa_video::TextBox::SetFont(), hoa_video::private_video::GUIControl::SetOwner(), hoa_video::private_video::GUIElement::SetPosition(), hoa_video::TextBox::SetTextAlignment(), hoa_video::VIDEO_MENU_EDGE_TOP, hoa_video::VIDEO_MENU_INSTANT, hoa_video::VIDEO_TEXT_INSTANT, hoa_video::VIDEO_X_LEFT, hoa_video::VIDEO_X_RIGHT, and hoa_video::VIDEO_Y_TOP.

Here is the call graph for this function:

hoa_shop::private_shop::ObjectInfoWindow::~ObjectInfoWindow (  ) 

Definition at line 458 of file shop_windows.cpp.


Member Function Documentation

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

Draws the window and the object properties contained within.

Reimplemented from hoa_video::MenuWindow.

Definition at line 503 of file shop_windows.cpp.

References _object, description, hoa_video::TextBox::Draw(), hoa_video::GameVideo::DrawImage(), hoa_video::GameVideo::DrawText(), hoa_global::GlobalObject::GetIconImage(), hoa_global::GlobalObject::GetName(), hoa_video::GameVideo::Move(), hoa_video::GameVideo::MoveRelative(), properties, and hoa_video::VideoManager.

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

Here is the call graph for this function:

void hoa_shop::private_shop::ObjectInfoWindow::SetObject ( hoa_global::GlobalObject obj  ) 

Sets the object that this window will display the properties of.

Parameters:
obj A pointer to the object to represent. NULL indicates no object.

Definition at line 464 of file shop_windows.cpp.

References _object, hoa_video::TextBox::ClearText(), description, hoa_global::GlobalObject::GetDescription(), hoa_global::GlobalArmor::GetMetaphysicalDefense(), hoa_global::GlobalObject::GetObjectType(), hoa_global::GlobalArmor::GetPhysicalDefense(), hoa_global::GLOBAL_OBJECT_ARM_ARMOR, hoa_global::GLOBAL_OBJECT_HEAD_ARMOR, hoa_global::GLOBAL_OBJECT_LEG_ARMOR, hoa_global::GLOBAL_OBJECT_TORSO_ARMOR, hoa_global::GLOBAL_OBJECT_WEAPON, hoa_utils::NumberToString(), properties, and hoa_video::TextBox::SetDisplayText().

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

Here is the call graph for this function:


Member Data Documentation

hoa_global::GlobalObject* hoa_shop::private_shop::ObjectInfoWindow::_object [private]

A pointer to the object whose properties are to be described If this member is set to NULL, then the window will be blank. The pointer should point to an object contained within a ShopMode class, not to an object in the player's inventory or anywhere else.

Definition at line 190 of file shop_windows.h.

Referenced by Draw(), ObjectInfoWindow(), and SetObject().

hoa_video::TextBox hoa_shop::private_shop::ObjectInfoWindow::description

A text box that holds the description text of the object.

Definition at line 179 of file shop_windows.h.

Referenced by Draw(), ObjectInfoWindow(), and SetObject().

hoa_video::TextBox hoa_shop::private_shop::ObjectInfoWindow::properties

A text box that displays the object's properties, such as attack or defense ratings.

Definition at line 182 of file shop_windows.h.

Referenced by Draw(), ObjectInfoWindow(), and SetObject().


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