|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.EquipmentMode
public class EquipmentMode
Class EquipmentMode describes a Equipment's particular mode.
The getDisplayableName method allows you to obtain the
localized string from a predefined ResourceBundle.
The equals function allows to check if the mode is equivalent
to the mode identified by the given name.
There is no way to create the instance of the EquipmentMode
directly, use EquipmentMode#getMode instead.
EquipmentType,
Mounted| Field Summary | |
|---|---|
protected static java.util.Hashtable<java.lang.String,EquipmentMode> |
modesHash
Hash of all modes |
protected java.lang.String |
name
Unique internal mode identifier. |
| Constructor Summary | |
|---|---|
protected |
EquipmentMode(java.lang.String name)
Protected constructor since we don't allow direct creation of the mode. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.String modeName)
|
java.lang.String |
getDisplayableName()
|
static EquipmentMode |
getMode(java.lang.String name)
|
java.lang.String |
getName()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static java.util.Hashtable<java.lang.String,EquipmentMode> modesHash
protected java.lang.String name
| Constructor Detail |
|---|
protected EquipmentMode(java.lang.String name)
Protected constructor since we don't allow direct creation of the mode.
Modes available via getMode
Contructs the new mode denoted by the given name.
name - unique mode identifier| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getDisplayableName()
public static EquipmentMode getMode(java.lang.String name)
name - mode name
public boolean equals(java.lang.String modeName)
modeName - The name of the mode to compare with
true if this mode equals to the mode denoted by
the given name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||