OGS Java API Spec

ogs.magic.abilities
Class Intelligence

java.lang.Object
  |
  +--ogs.support.Object
        |
        +--ogs.core.Ability
              |
              +--ogs.magic.abilities.Intelligence
All Implemented Interfaces:
Ability, EventListener

public class Intelligence
extends Ability
implements Ability

The Intelligence class with additional methods to support magic.


Nested Class Summary
 
Nested classes inherited from class ogs.core.Ability
Ability.AverageMethod, Ability.HighPoweredMethod, Ability.Method, Ability.Modifier, Ability.StandardMethod
 
Field Summary
 
Fields inherited from class ogs.core.Ability
CHA, CON, DEX, INT, NUM, STR, WIS
 
Fields inherited from class ogs.support.Object
listeners
 
Constructor Summary
Intelligence()
          Create a new Intelligence score.
 
Method Summary
 int[] getBonusSpells()
          Determine bonus spells for this ability.
 int getHighestSpellLevel()
          Determine highest spell level that can be cast.
 
Methods inherited from class ogs.core.Ability
getCurrentScore, getIncreases, getIncreasesLevel, getModifier, getModifier, getModifiers, getOriginalScore, handleEvent
 
Methods inherited from class ogs.support.Object
addListener, notifyListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Intelligence

public Intelligence()
Create a new Intelligence score.

Method Detail

getHighestSpellLevel

public int getHighestSpellLevel()
Determine highest spell level that can be cast. A negative value indicates that spells can not be cast based on this ability.

Specified by:
getHighestSpellLevel in interface Ability
Returns:
Highest spell level.

getBonusSpells

public int[] getBonusSpells()
Determine bonus spells for this ability.

Specified by:
getBonusSpells in interface Ability
Returns:
Number of bonus spells per spell level.

OGS Java API Spec