OGS Java API Spec

ogs.cclasses
Class Paladin

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

public class Paladin
extends CClass

A character class that strives to be the paragon of virtue. Paladins are champions of all that is pure and just. They are exemplars and the epitome of chilvary. Paladins are often called knights, cavaliers, and crusaders. As such, their alignment must always be lawful good. Any paladin who ceases to be lawful good or otherwise betrays their code of conduct immediately looses all paladin abilities and can no longer advance in level as a paladin. Ex-paladins may make reparations with an atonement spell.

Paladins begin proficient with all simple and martial weapons, all light, medium, and heavy armors, and all shields. Paladins can gain many special abilities including detect evil, divine grace, lay on hands, divine health, aura of courage, smite evil, remove disease, turn undead, special mount, and divine spell casting. Wisdom is used as the spell casting ability for paladins.

Paladins are typically found in fantasy campaigns.


Field Summary
 
Fields inherited from class ogs.support.Object
listeners
 
Constructor Summary
Paladin()
          Create a new 1st-level Paladin cclass.
Paladin(int xpLevel)
          Create a new Nth-level Paladin cclass.
 
Method Summary
 boolean attachObject(Object object)
          Attach this Paladin cclass to a character.
protected  int getBaseAttackValue()
          Determine the value of base attack bonus for this cclass.
protected  int getBaseFortSaveValue()
          Determine the value of base Fortitude save bonus for this cclass.
 int getHitDie()
          Determine the hit die for this cclass.
 int getSkillPoints()
          Determine the skill points per experience level for this cclass.
 Vector getSpellsPerDay()
          Determine the number of spells that this paladin can cast per day.
 
Methods inherited from class ogs.core.CClass
getBaseAttack, getBaseFortSave, getBaseRefSave, getBaseRefSaveValue, getBaseWillSave, getBaseWillSaveValue, 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

Paladin

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


Paladin

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

Parameters:
xpLevel - Experience level of paladin.
Method Detail

getHitDie

public int getHitDie()
Determine the hit die for this cclass. Paladins use d10 for their hit die.

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

getSkillPoints

public int getSkillPoints()
Determine the skill points per experience level for this cclass. Paladins 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. Paladins use the strong advancement rate for base attack bonuses.

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

getBaseFortSaveValue

protected int getBaseFortSaveValue()
Determine the value of base Fortitude save bonus for this cclass. Paladins use the strong advancement rate for base Fortitude save bonuses.

Overrides:
getBaseFortSaveValue in class CClass
Returns:
Value of base Fortitude save bonus.

attachObject

public boolean attachObject(Object object)
Attach this Paladin cclass to a character.

Parameters:
object - Object to attach this paladin to.

getSpellsPerDay

public Vector getSpellsPerDay()
Determine the number of spells that this paladin can cast per day. The vector index of the return value is the spell level. If the number of spells for a given spell level is zero (0), the number of spells that can be cast for that level is the same as the bonus spells from the Charisma score of the paladin (if any).

Returns:
Number of spells that can be cast per spell level per day.

OGS Java API Spec