hoa_menu::private_menu::CharacterWindow Class Reference

Represents an individual character window. More...

#include <menu_views.h>

Inheritance diagram for hoa_menu::private_menu::CharacterWindow:

Inheritance graph
[legend]
Collaboration diagram for hoa_menu::private_menu::CharacterWindow:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CharacterWindow ()
void Draw ()
 render this window to the screen
void SetCharacter (hoa_global::GlobalCharacter *character)
 Set the character for this window.
 ~CharacterWindow ()

Private Attributes

uint32 _char_id
 The name of the character that this window corresponds) to.
hoa_video::StillImage _portrait
 The image of the character.

Detailed Description

Represents an individual character window.

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

There should be one of these windows for each character in the game. It will contain all the information of the character and handle its draw placement.

Definition at line 103 of file menu_views.h.


Constructor & Destructor Documentation

hoa_menu::private_menu::CharacterWindow::CharacterWindow (  ) 

Definition at line 49 of file menu_views.cpp.

References _char_id, and hoa_global::GLOBAL_CHARACTER_INVALID.

hoa_menu::private_menu::CharacterWindow::~CharacterWindow (  ) 

Definition at line 56 of file menu_views.cpp.

References _portrait, hoa_video::GameVideo::DeleteImage(), and hoa_video::VideoManager.

Here is the call graph for this function:


Member Function Documentation

void hoa_menu::private_menu::CharacterWindow::Draw (  )  [virtual]

render this window to the screen

Returns:
success/failure

Reimplemented from hoa_video::MenuWindow.

Definition at line 77 of file menu_views.cpp.

References _char_id, _portrait, hoa_video::GameVideo::DrawImage(), hoa_video::GameVideo::DrawText(), hoa_global::GameGlobal::GetCharacter(), hoa_video::MenuWindow::GetDimensions(), hoa_global::GlobalCharacter::GetExperienceForNextLevel(), hoa_global::GlobalActor::GetExperienceLevel(), hoa_global::GlobalActor::GetHitPoints(), hoa_global::GlobalActor::GetMaxHitPoints(), hoa_global::GlobalActor::GetMaxSkillPoints(), hoa_global::GlobalActor::GetName(), hoa_video::private_video::GUIElement::GetPosition(), hoa_global::GlobalActor::GetSkillPoints(), hoa_global::GLOBAL_CHARACTER_INVALID, hoa_global::GlobalManager, hoa_utils::MakeUnicodeString(), hoa_video::GameVideo::Move(), hoa_video::GameVideo::MoveRelative(), hoa_video::GameVideo::SetDrawFlags(), hoa_video::VIDEO_X_LEFT, hoa_video::VIDEO_Y_TOP, and hoa_video::VideoManager.

Referenced by hoa_menu::MenuMode::Draw().

Here is the call graph for this function:

void hoa_menu::private_menu::CharacterWindow::SetCharacter ( hoa_global::GlobalCharacter character  ) 

Set the character for this window.

Parameters:
character the character to associate with this window

Definition at line 64 of file menu_views.cpp.

References _char_id, _portrait, hoa_global::GlobalActor::GetFilename(), hoa_global::GlobalActor::GetID(), hoa_video::GameVideo::LoadImage(), hoa_video::StillImage::SetDimensions(), hoa_video::StillImage::SetFilename(), hoa_video::StillImage::SetStatic(), and hoa_video::VideoManager.

Here is the call graph for this function:


Member Data Documentation

uint32 hoa_menu::private_menu::CharacterWindow::_char_id [private]

The name of the character that this window corresponds) to.

Definition at line 106 of file menu_views.h.

Referenced by CharacterWindow(), Draw(), and SetCharacter().

hoa_video::StillImage hoa_menu::private_menu::CharacterWindow::_portrait [private]

The image of the character.

Definition at line 109 of file menu_views.h.

Referenced by Draw(), SetCharacter(), and ~CharacterWindow().


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