ogs.feats
Class ImprovedInitiative
java.lang.Object
|
+--ogs.support.Object
|
+--ogs.core.Feature
|
+--ogs.core.Feat
|
+--ogs.feats.ImprovedInitiative
- All Implemented Interfaces:
- EventListener
- public class ImprovedInitiative
- extends Feat
A feat that adds a +4 bonus to all initiative checks.
Method Summary |
boolean |
attachObject(Object object)
Attach this feat to a creature. |
boolean |
detachObject()
Detach this feat from a creature. |
int |
getCompatibility()
Determine the compatibility of this type of feat. |
int |
getGroup()
Determine the group that this feat belongs to. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImprovedInitiative
public ImprovedInitiative()
getCompatibility
public int getCompatibility()
- Determine the compatibility of this type of feat. Improved
Initiative feats are exclusive feats: only one instance of the
feat can be attached to a creature at one time.
- Specified by:
getCompatibility
in class Feat
- Returns:
- Feat.EXCLUSIVE.
getGroup
public int getGroup()
- Determine the group that this feat belongs to. Improved Initiative
feats are general feats.
- Specified by:
getGroup
in class Feat
- Returns:
- Feat.GENERAL
attachObject
public boolean attachObject(Object object)
- Attach this feat to a creature. This method adds the initative
modifier to the list of intiative modifiers for the creature.
This method returns false if the object is not an instance of a
class derived from the
Creature
class.
- Overrides:
attachObject
in class Feature
- Parameters:
object
- Creature to attach this feat to.
- Returns:
- True if this feat is attached to the creature.
detachObject
public boolean detachObject()
- Detach this feat from a creature. This method removes the
intiative modifier from the list of intiative modifiers for the
creature.
- Overrides:
detachObject
in class Feature
- Returns:
- True if this feat is detached from the creature.