OGS Java API Spec

ogs.cclasses
Class Sorcerer

java.lang.Object
  |
  +--ogs.support.Object
        |
        +--ogs.core.CClass
              |
              +--ogs.cclasses.Sorcerer
All Implemented Interfaces:
EventListener

public class Sorcerer
extends CClass

A character class with inherent spell casting abilities. Sorcerers are much like wizards. They have no alignment restrictions and can summon a familliar at 1st-level. Unlike wizards however, sorcerers are more limited in their range of spell casting abilities but do not have to memorize spells before casting them. They are also proficient with all simple weapons.


Field Summary
 
Fields inherited from class ogs.support.Object
listeners
 
Constructor Summary
Sorcerer()
          Create a new 1st-level Sorcerer cclass.
Sorcerer(int xpLevel)
          Create a new Nth-level Sorcerer cclass.
 
Method Summary
protected  int getBaseAttackValue()
          Determine the value of base attack bonus for this cclass.
protected  int getBaseWillSaveValue()
          Determine the value of base Will save bonus for sorcerers.
 int getHitDie()
          Determine the hit die for this cclass.
 int getSkillPoints()
          Determine the skill points per experience level for this cclass.
 Vector getSpellsKnown()
          Determine the number of spells knonwn by this sorcerer.
 Vector getSpellsPerDay()
          Determine the number of spells that this sorcerer can cast per day.
 
Methods inherited from class ogs.core.CClass
getBaseAttack, getBaseFortSave, getBaseFortSaveValue, getBaseRefSave, getBaseRefSaveValue, getBaseWillSave, getLevel, setLevel
 
Methods inherited from class ogs.support.Object
addListener, handleEvent, notifyListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sorcerer

public Sorcerer()
Create a new 1st-level Sorcerer cclass.


Sorcerer

public Sorcerer(int xpLevel)
Create a new Nth-level Sorcerer cclass.

Parameters:
xpLevel - Experience level of sorcerer.
Method Detail

getHitDie

public int getHitDie()
Determine the hit die for this cclass. Sorcerers use d4 for their hit die.

Specified by:
getHitDie in class CClass
Returns:
Die.d4.

getSkillPoints

public int getSkillPoints()
Determine the skill points per experience level for this cclass. Sorcerers gain 2 skill points for each experience level.

Specified by:
getSkillPoints in class CClass
Returns:
2 skill points.

getBaseAttackValue

protected int getBaseAttackValue()
Determine the value of base attack bonus for this cclass. Sorcerers use the weak advancment rate for base attack bonuses.

Overrides:
getBaseAttackValue in class CClass
Returns:
Value of base attack bonus.

getBaseWillSaveValue

protected int getBaseWillSaveValue()
Determine the value of base Will save bonus for sorcerers. Sorcerers use the strong advancment rate for base Will save bonuses.

Overrides:
getBaseWillSaveValue in class CClass
Returns:
Value of base Will save bonus.

getSpellsPerDay

public Vector getSpellsPerDay()
Determine the number of spells that this sorcerer can cast per day.

Returns:
Number of spells at each spell leve.

getSpellsKnown

public Vector getSpellsKnown()
Determine the number of spells knonwn by this sorcerer.

Returns:
Number of spells at each spell level.

OGS Java API Spec