OGS Java API Spec

ogs.core
Class Ability.Method

java.lang.Object
  |
  +--ogs.core.Ability.Method
Direct Known Subclasses:
Ability.AverageMethod, Ability.HighPoweredMethod, Ability.StandardMethod
Enclosing class:
Ability

public abstract class Ability.Method
extends Object

A function object that generates an ability score. Ability methods have at least one member: an operation that generates an ability score.


Constructor Summary
Ability.Method()
           
 
Method Summary
abstract  byte generateScore(int abilityType)
          Generate an ability score for a type of ability.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ability.Method

public Ability.Method()
Method Detail

generateScore

public abstract byte generateScore(int abilityType)
Generate an ability score for a type of ability. The type of ability may be ignored if it is not needed to generate a score.

Parameters:
abilityType - Type of ability score to generate.
Returns:
A score for the given type of ability.

OGS Java API Spec