OGS Java API Spec

ogs.core.details
Interface Maturity


public interface Maturity

The various stages of life for a creature. The Maturity class is an interface that determines the longevity or lifespan of a creature. This class is implemented by Creature classes such as Human that can be used as a player character (PC) race. It provides players and referees with average age ranges such as adult, starting, middle, old, venerable, and maximum. Each of these stages have effects that are applied once a creature reaches that age. The pure virtual member functions should behave the same for all instances of a Creature class (i.e., as static member functions). All ages are expressed in years by default.


Method Summary
 int getAdultAge()
          Determine the average adult age for this type of creature.
 Die getMaximumAge()
          Access the die used to roll a random maximum age for a PC.
 int getMiddleAge()
          Determine the average middle age for this type of creature.
 int getOldAge()
          Determine the average old age for this type of creature.
 int getVenerableAge()
          Determine the average venerable age for this type of creature.
 

Method Detail

getAdultAge

public int getAdultAge()
Determine the average adult age for this type of creature. The adult age is the base value for determining the starting age of a PC.

Returns:
Average adult age of a creature.

getMiddleAge

public int getMiddleAge()
Determine the average middle age for this type of creature. At middle age, a character recieves a -1 modifier to physical abilities (Strength, Constitution, and Dexterity) and a +1 modifier to mental abilities (Intelligence, Wisdom, and Charisma).

Returns:
Average middle age of a creature.

getOldAge

public int getOldAge()
Determine the average old age for this type of creature. At old age, a character recieves a -2 modifier to physical abilities and a +1 modifier to mental abilities.

Returns:
Average old age of a creature.

getVenerableAge

public int getVenerableAge()
Determine the average venerable age for this type of creature. At venerable age, a character recieves a -3 modifier to physical abilities and a +1 modifier to mental abilities. The venerable age is also used as the base value for determining maximum age.

Returns:
Average venerable age of a creature.

getMaximumAge

public Die getMaximumAge()
Access the die used to roll a random maximum age for a PC. The modifier of this die is the same as the venerage age. A PC dies of natural causes when he or she reaches this maximum age.

Returns:
Die used to roll random maximum ages.

OGS Java API Spec