hoa_video::private_video::Option Class Reference

Represents one particular option in a list and all its elements. More...

#include <option.h>

Collaboration diagram for hoa_video::private_video::Option:

Collaboration graph
[legend]
List of all members.

Public Attributes

bool disabled
 A flag to specify whether this option is disabled or not.
std::vector< OptionElementelements
 The elements that this option is composed of.
std::vector< StillImageimages
 Contains all images used for this option.
std::vector< hoa_utils::ustringtext
 Contains all pieces of text for this option.

Detailed Description

Represents one particular option in a list and all its elements.

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

For example in a shop menu, one option might be "Mythril Knife" and contain an icon of a knife, the text "Mythril Knife", a right alignment flag, and finally the text "500 drunes".

Todo:
Text should contain rendered text images instead of text that needs to be rendered and drawn every frame
Todo:
Add support for animated images
Todo:
Allow images to be manipulated (resized, gray-scaled, etc.)

Definition at line 181 of file option.h.


Member Data Documentation

bool hoa_video::private_video::Option::disabled

A flag to specify whether this option is disabled or not.

Definition at line 194 of file option.h.

Referenced by hoa_video::OptionBox::_ConstructOption(), and hoa_video::OptionBox::Draw().

std::vector<OptionElement> hoa_video::private_video::Option::elements

The elements that this option is composed of.

Definition at line 184 of file option.h.

Referenced by hoa_video::OptionBox::_ConstructOption(), and hoa_video::OptionBox::Draw().

std::vector<StillImage> hoa_video::private_video::Option::images

Contains all images used for this option.

Todo:
Allow for animated images as well

Definition at line 191 of file option.h.

Referenced by hoa_video::OptionBox::_ConstructOption(), and hoa_video::OptionBox::Draw().

std::vector<hoa_utils::ustring> hoa_video::private_video::Option::text

Contains all pieces of text for this option.

Definition at line 187 of file option.h.

Referenced by hoa_video::OptionBox::_ConstructOption(), and hoa_video::OptionBox::Draw().


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