OGS Java API Spec

ogs.feats
Class ImprovedSave

java.lang.Object
  |
  +--ogs.support.Object
        |
        +--ogs.core.Feature
              |
              +--ogs.core.Feat
                    |
                    +--ogs.feats.ImprovedSave
All Implemented Interfaces:
EventListener

public class ImprovedSave
extends Feat

A feat that adds a +2 bonus to saving throws. Improved Save feats come in three varieties: Great Fortitude, Iron Will, and Lightning Reflexes. Each variety applies to a different type of save.


Field Summary
static byte GREAT_FORTITUDE
          Bonus is added to all Fortitude saves.
static byte IRON_WILL
          Bonus is added to all Will saves.
static byte LIGHTNING_REFLEXES
          Bonus is added to all Reflex saves.
 
Fields inherited from class ogs.core.Feat
COMBAT, CUMULATIVE, EXCLUSIVE, GENERAL, MAGIC, REPEATABLE, SPECIAL
 
Fields inherited from class ogs.support.Object
listeners
 
Method Summary
 boolean attachObject(Object object)
          Attach this Improved Save feat to a creature.
protected  boolean canAttach(Object object)
          Determine if this feat can be attached to an object.
static ImprovedSave createGreatFortitude()
          Create a new Great Fortitude feat.
static ImprovedSave createIronWill()
          Create a new Iron Will feat.
static ImprovedSave createLightningReflexes()
          Create a new Lightning Reflexes feat.
 boolean detachObject()
          Detach this Improved Save feat from a creature.
 int getCompatibility()
          Determine the compatability of this feat.
 int getGroup()
          Determine the group that this feat belongs to.
 int getType()
          Determine the type of this Improved Save feat.
 
Methods inherited from class ogs.core.Feat
findFeat, getSlots, getSlotsLevel
 
Methods inherited from class ogs.core.Feature
canDetach, getObject
 
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
 

Field Detail

GREAT_FORTITUDE

public static final byte GREAT_FORTITUDE
Bonus is added to all Fortitude saves.

See Also:
Constant Field Values

IRON_WILL

public static final byte IRON_WILL
Bonus is added to all Will saves.

See Also:
Constant Field Values

LIGHTNING_REFLEXES

public static final byte LIGHTNING_REFLEXES
Bonus is added to all Reflex saves.

See Also:
Constant Field Values
Method Detail

createGreatFortitude

public static ImprovedSave createGreatFortitude()
Create a new Great Fortitude feat.

Returns:
A new Great Fortitude feat.

createIronWill

public static ImprovedSave createIronWill()
Create a new Iron Will feat.

Returns:
A new Iron Will feat.

createLightningReflexes

public static ImprovedSave createLightningReflexes()
Create a new Lightning Reflexes feat.

Returns:
A new Lightning Reflexes feat.

getCompatibility

public int getCompatibility()
Determine the compatability of this feat. Improved Save feats are exclusive feats.

Specified by:
getCompatibility in class Feat
Returns:
Feat.EXCLUSIVE

getGroup

public int getGroup()
Determine the group that this feat belongs to. Improved Save feats are general feats.

Specified by:
getGroup in class Feat
Returns:
Feat.GENERAL

getType

public int getType()
Determine the type of this Improved Save feat.

Returns:
GREAT_FORTITUDE, IRON_WILL, or LIGHTNING_REFLEXES.

canAttach

protected boolean canAttach(Object object)
Determine if this feat can be attached to an object. An improved save feat can only be attached to a creature if the creature does not already have this feat.

Overrides:
canAttach in class Feat
Parameters:
object - Object to attach this feature to.
Returns:
True if the feature is attached to the object.

attachObject

public boolean attachObject(Object object)
Attach this Improved Save feat to a creature.

Overrides:
attachObject in class Feature
Parameters:
object - Creature to attach Improved Save to.
Returns:
True if feat is attached to creature.

detachObject

public boolean detachObject()
Detach this Improved Save feat from a creature.

Overrides:
detachObject in class Feature
Returns:
True if feat is detached from creature.

OGS Java API Spec