Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

ogs::core::details::Quantity Class Reference

A detail that describes some aspect of an object. More...

#include <Quantity.h>

Inheritance diagram for ogs::core::details::Quantity:

Inheritance graph
[legend]
Collaboration diagram for ogs::core::details::Quantity:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Aspect { AGE, HEIGHT, WEIGHT }
 An enumerated type that represents the aspect of a quantity.


Public Member Functions

 Quantity (Aspect aspect, float value)
 Create a new quantity.

Aspect getAspect () const
 Determine the aspect of this quantity.

float getValue () const
 Determine the value of this quantity.

void setValue (float value)
 Change the value of this quantity.


Detailed Description

Predefined aspects include age, height, and weight. These aspects are not validated in any way; nonstandard aspects can also be substituted.


Constructor & Destructor Documentation

ogs::core::details::Quantity::Quantity Aspect  aspect,
float  value
[inline]
 

Parameters:
aspect Aspect of quantity.
value Value of quantity.


Member Function Documentation

Quantity::Aspect ogs::core::details::Quantity::getAspect  )  const [inline]
 

Returns:
Aspect of this quantity.

float ogs::core::details::Quantity::getValue  )  const [inline]
 

Returns:
Value of this quantity.

void ogs::core::details::Quantity::setValue float  value  )  [inline]
 

Parameters:
value Value of this quantity.


The documentation for this class was generated from the following file:
Generated on Sun Apr 20 03:38:33 2003 for Open Gaming System (OGS) by doxygen1.3