ogs.magic.abilities
Class Charisma
java.lang.Object
|
+--ogs.support.Object
|
+--ogs.core.Ability
|
+--ogs.magic.abilities.Charisma
- All Implemented Interfaces:
- Ability, EventListener
- public class Charisma
- extends Ability
- implements Ability
The Charisma
class with additional methods to
support magic.
Constructor Summary |
Charisma()
Create a new Charisma ability. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Charisma
public Charisma()
- Create a new Charisma ability.
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.