|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.combat.ArmorTables
A totally non-OO, non-polymorphic, ugly piece of code that I'm embarrassed about. Keeps information about the various Armor classes in tables of various kinds. Will go away soon.
Method Summary | |
static java.lang.Class |
expectedBodyPart(java.lang.Class type)
Returns the name of the body part we expect to be able to hang the passed armor on. |
static java.lang.String |
getPartName(java.lang.Class type)
Returns the part-name of the passed armor-slot type, e.g. |
static java.lang.String |
getPluralName(java.lang.Class type)
Returns the plural form for the generic name of the passed armor type. |
static java.lang.String |
getPluralPartName(java.lang.Class type)
Returns the plural part-name of the passed armor-slot type, e.g. |
static java.lang.String |
getSingularName(java.lang.Class type)
Returns the singular form for the generic name of the passed armor type. |
static int |
getWearTime(Armor armor)
Returns the time it takes to wear or remove the item. |
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 getSingularName(java.lang.Class type)
type
- the armor type
public static java.lang.String getPluralName(java.lang.Class type)
type
- the armor type
public static int getWearTime(Armor armor)
public static java.lang.Class expectedBodyPart(java.lang.Class type)
type
- the armor type
public static java.lang.String getPartName(java.lang.Class type)
type
- the armor slot type
public static java.lang.String getPluralPartName(java.lang.Class type)
type
- the armor slot class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |