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

ogs::core::Method Struct Reference

A function object that generates an ability score. More...

#include <Ability.h>

Inheritance diagram for ogs::core::Method:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual Ability::Score operator() (Ability::Type type)=0
 Generate an ability score for an ability type.


Detailed Description

Methods may be random methods (methods that generate random scores by rolling dice) or interactive methods (methods that require interaction with an external agent).


Member Function Documentation

virtual Ability::Score ogs::core::Method::operator() Ability::Type  type  )  [pure virtual]
 

The argument of a method is the type of ability score to generate. A method may ignore this parameter.

Parameters:
type A type of ability.
Returns:
An ability score.

Implemented in ogs::core::PartialMethod, ogs::core::StandardMethod, ogs::core::AverageMethod, ogs::core::HighPoweredMethod, and ogs::core::DirectMethod.


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