|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.combat.Alignment
Utilities for dealing with alignments.
Method Summary | |
static void |
adjustAlignments(Damageable target,
Player winner,
java.util.List names)
Decides how much to adjust everyone's alignment for killing something. |
static java.lang.String |
alignmentToString(int align,
java.lang.String gender)
Returns a string given an alignment value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String alignmentToString(int align, java.lang.String gender)
gender
- the monster's gender ("male", "female" or null)align
- the monster's alignment
public static void adjustAlignments(Damageable target, Player winner, java.util.List names)
target
- the thing that was destroyed/killedwinner
- the person who dealt the death-blownames
- a list of names of all players who
participated in the kill (null if there's no group,
and only the winner gets the XP). If non-null,
should include the name of the winner.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |