|
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.details.Alignment
A detail that represents attitudes on morals and order. Alignments are associated with entities (typically characters and creatures) that possess the concepts of good and evil, law and chaos. Items can also be imbued with emanations of an alignment.
Field Summary | |
static int |
CHAOS
An absolute alignment favoring chaos and anarchy. |
static int |
CHAOTIC_EVIL
A relative alignment favoring chaos and evil. |
static int |
CHAOTIC_GOOD
A relative alignment favoring chaos and good. |
static int |
CHAOTIC_NEUTRAL
A relative alignment favoring true chaos. |
static int |
EVIL
An absolute alignment favoring bad and evil. |
static int |
GOOD
An absolute alignment favoring good and just. |
static int |
LAW
An absolute alignment favoring law and order. |
static int |
LAWFUL_EVIL
A relative alignment favoring law and evil. |
static int |
LAWFUL_GOOD
A relative alignment favoring law and good. |
static int |
LAWFUL_NEUTRAL
A relative alignment favoring true law. |
static int |
NEUTRAL_EVIL
A relative alignment favoring evil in general. |
static int |
NEUTRAL_GOOD
A relative alignment favoring good in general. |
static int |
NEUTRAL_MORAL
An absolute alignment favoring neither good nor evil. |
static int |
NEUTRAL_ORDER
An absolute alignment favoring neither law nor chaos. |
static int |
TRUE_NEUTRAL
|
Fields inherited from class ogs.support.Object |
listeners |
Constructor Summary | |
Alignment()
Create a true neutral alignment. |
|
Alignment(int value)
Create a new alignment. |
Method Summary | |
int |
getValue()
Determine the value of this alignment. |
boolean |
isAbsolute()
Determine if this alignment is an absolute alignment. |
boolean |
isAligned(Alignment alignment)
Determine if this alignment is aligned with another alignment. |
boolean |
isRelative()
Determine if this alignment is a relative alignment. |
void |
setValue(int value)
Change the value of this alignment. |
Methods inherited from class ogs.core.Feature |
attachObject, canAttach, 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 LAW
public static final int CHAOS
public static final int NEUTRAL_ORDER
public static final int GOOD
public static final int EVIL
public static final int NEUTRAL_MORAL
public static final int LAWFUL_GOOD
public static final int NEUTRAL_GOOD
public static final int CHAOTIC_GOOD
public static final int LAWFUL_NEUTRAL
public static final int TRUE_NEUTRAL
public static final int CHAOTIC_NEUTRAL
public static final int LAWFUL_EVIL
public static final int NEUTRAL_EVIL
public static final int CHAOTIC_EVIL
Constructor Detail |
public Alignment()
public Alignment(int value)
value
- One of the predefined alignment values.
IllegalArgumentException
- If value is an invalid alignment.Method Detail |
public boolean isAbsolute()
public boolean isRelative()
public boolean isAligned(Alignment alignment)
alignment
- An alignment.
public int getValue()
public void setValue(int value)
value
- One of the predefined alignment values.
|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |