|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ogs.support.Object | +--ogs.core.Feature | +--ogs.core.Feat
A feat is a feature that provides a special power, property, or other improvement.
Field Summary | |
static int |
COMBAT
A combat-use feat. |
static int |
CUMULATIVE
Indicates the the feat may be taken more than once with cumulative effects. |
static int |
EXCLUSIVE
Indicates that the feat may be taken only once. |
static int |
GENERAL
A general-purpose feat. |
static int |
MAGIC
A magic-related feat. |
static int |
REPEATABLE
Indicates that the feat may be taken more than once with distinct effects. |
static int |
SPECIAL
A feat that does not belong to one of the other groups. |
Fields inherited from class ogs.support.Object |
listeners |
Constructor Summary | |
Feat()
|
Method Summary | |
protected boolean |
canAttach(Object object)
Determine if this feat can be attached to an object. |
protected boolean |
findFeat(Object creatureObject,
Class featClass)
Determine if a creature has a feat. |
abstract int |
getCompatibility()
Determine the compatibility of this type of feat. |
abstract int |
getGroup()
Determine the group of this type of feat. |
static int |
getSlots(int xpLevel)
Determine number of slots available for feats at a given experience level. |
static int |
getSlotsLevel(int slots)
Determine experience level required for a given number of available slots for feats. |
Methods inherited from class ogs.core.Feature |
attachObject, canDetach, detachObject, 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 |
public static final int EXCLUSIVE
public static final int REPEATABLE
public static final int CUMULATIVE
public static final int GENERAL
public static final int COMBAT
public static final int MAGIC
public static final int SPECIAL
Constructor Detail |
public Feat()
Method Detail |
public static int getSlots(int xpLevel)
xpLevel
- An experience level.
public static int getSlotsLevel(int slots)
getSlots(int)
.
slots
- Number of slots available for feats.
public abstract int getCompatibility()
public abstract int getGroup()
protected boolean canAttach(Object object)
canAttach
in class Feature
object
- Object to attach this feature to.
protected boolean findFeat(Object creatureObject, Class featClass)
creatureObject
- Object (creature) to check for feat.featClass
- Class of feat.
|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |