org.starhope.appius.game.intangible
Class EquipAs

java.lang.Object
  extended by 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.
 
Constructor Summary
EquipAs(EquipAs.Values value1)
           
EquipAs(java.lang.String value1)
          Instantiates based upon a string, e.g.
 
Method Summary
 boolean avatarCanEquip()
           
 EquipAs.Values getValue()
           
 boolean roomCanEquip()
           
 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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()