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.
Constructor Summary |
Intelligence()
Create a new Intelligence score. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Intelligence
public Intelligence()
- Create a new Intelligence score.
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.