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

ogs::core::DirectMethod Struct Reference

A method that generates a direct ability score. More...

#include <Ability.h>

Inheritance diagram for ogs::core::DirectMethod:

Inheritance graph
[legend]
Collaboration diagram for ogs::core::DirectMethod:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DirectMethod (Ability::Score score)
 Create a new direct method.

Ability::Score operator() (Ability::Type)
 Generate a score using the direct method.


Public Attributes

Ability::Score score
 The score generated by a direct method.


Detailed Description

The direct method is used to initialize an ability with a fixed score. This method is normally used by referees and players who are allowed to choose ability scores.


Constructor & Destructor Documentation

ogs::core::DirectMethod::DirectMethod Ability::Score  score  )  [inline]
 

Parameters:
score A score to be generated by this method.


Member Function Documentation

Ability::Score ogs::core::DirectMethod::operator() Ability::Type   )  [inline, virtual]
 

This method simply returns the score contained in the direct method.

Returns:
An ability score.

Implements ogs::core::Method.


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