ogs.core
Class Ability.AverageMethod
java.lang.Object
|
+--ogs.core.Ability.Method
|
+--ogs.core.Ability.AverageMethod
- Enclosing class:
- Ability
- public class Ability.AverageMethod
- extends Ability.Method
A method that generates average ability scores. The average
method rolls 3d6 to generate an ability score. The average
method is nnormally used to generate ability scores for
nonplayer characters.
|
Method Summary |
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 |
Ability.AverageMethod
public Ability.AverageMethod()
generateScore
public byte generateScore(int abilityType)
- Description copied from class:
Ability.Method
- 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.
- Specified by:
generateScore in class Ability.Method
- Parameters:
abilityType - Type of ability score to generate.
- Returns:
- A score for the given type of ability.