OGS Java API Spec

ogs.cclasses
Class Commoner

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

public class Commoner
extends CClass

A commoner is a nonplayer character (NPC) class for ordinary, average, everyday characters. The Commoner class is normally reserved only for an NPC that does not qualify for any other cclass. The Commoner class uses the same advancment rates for attack and save bonuses used by default in the CClass base class.


Field Summary
 
Fields inherited from class ogs.support.Object
listeners
 
Constructor Summary
Commoner()
          Create a new 1st-level Commoner cclass.
Commoner(int xpLevel)
          Create a new Nth-level Commoner cclass.
 
Method Summary
 int getHitDie()
          Commoners use d4 for hit die.
 int getSkillPoints()
          Commoners get 2 skill points per experience level.
 
Methods inherited from class ogs.core.CClass
getBaseAttack, getBaseAttackValue, getBaseFortSave, getBaseFortSaveValue, 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

Commoner

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


Commoner

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

Parameters:
xpLevel - Experience level of the cclass.
Method Detail

getHitDie

public int getHitDie()
Commoners use d4 for hit die.

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

getSkillPoints

public int getSkillPoints()
Commoners get 2 skill points per experience level.

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

OGS Java API Spec