org.starhope.appius.game.intangible
Class EquipAs
java.lang.Object
org.starhope.appius.game.intangible.EquipAs
public class EquipAs
- extends java.lang.Object
This is basically a super-Enum which contains the types of equipment
that are hard-coded in the database, and can tell us a few things
about them.
- Author:
- brpocock
Nested Class Summary |
static class |
EquipAs.Values
This is the real, nested enum. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EquipAs
public EquipAs(java.lang.String value1)
- Instantiates based upon a string, e.g. from JSON or database
- Parameters:
value1
- The string in question
EquipAs
public EquipAs(EquipAs.Values value1)
- Parameters:
value1
- The value of this super-enum
avatarCanEquip
public boolean avatarCanEquip()
- Returns:
- whether the item is something that can be equipped by /
applied to an avatar. If not, it must apply to decorated
rooms.
getValue
public EquipAs.Values getValue()
- Returns:
- the value
roomCanEquip
public boolean roomCanEquip()
- Returns:
- true if this is something that applies to decorated
rooms, and not avatars.
toString
public java.lang.String toString()
- Special note: we use ONE_HAND and TWO_HAND internally (Java
identifier rules) but export 1HAND and 2HAND to SQL/JSON
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()