com.planet_ink.coffee_mud.MOBS.interfaces
Enum MOB.Attrib

java.lang.Object
  extended by java.lang.Enum<MOB.Attrib>
      extended by com.planet_ink.coffee_mud.MOBS.interfaces.MOB.Attrib
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MOB.Attrib>
Enclosing interface:
MOB

public static enum MOB.Attrib
extends java.lang.Enum<MOB.Attrib>

Enum for the MOB Attributes, which will also return whether the attribute is intuitively reversed (so Setting turns it off instead of on) and a longer description string. It also pre-calculates the bitmap value for storage.

See Also:
MOB.setAttribute(Attrib, boolean), MOB.getAttributesBitmap()

Enum Constant Summary
ANSI
           
AUTOASSIST
           
AUTODRAW
           
AUTOEXITS
           
AUTOFORWARD
           
AUTOGOLD
           
AUTOGUARD
           
AUTOIMPROVE
           
AUTOLOOT
           
AUTOMAP
           
AUTOMELEE
           
AUTONOTIFY
           
AUTORUN
           
AUTOWEATHER
           
BRIEF
           
COMPRESS
           
DAILYMESSAGE
           
MXP
           
NOBATTLESPAM
           
NOFOLLOW
           
NOTEACH
           
PLAYERKILL
           
QUIET
           
SOUND
           
SYSOPMSGS
           
TELNET_GA
           
 
Method Summary
 int getBitCode()
          Returns the bitmap mask of this attribute
 java.lang.String getName()
          The more official description code name of this attribute.
 boolean isAutoReversed()
          Returns true if the attribute is intuitively reversed, meaning that setting it turns it off, while clearing it turns it on.
static MOB.Attrib valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MOB.Attrib[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AUTOGOLD

public static final MOB.Attrib AUTOGOLD

AUTOLOOT

public static final MOB.Attrib AUTOLOOT

AUTOEXITS

public static final MOB.Attrib AUTOEXITS

AUTOASSIST

public static final MOB.Attrib AUTOASSIST

ANSI

public static final MOB.Attrib ANSI

SYSOPMSGS

public static final MOB.Attrib SYSOPMSGS

AUTOMELEE

public static final MOB.Attrib AUTOMELEE

PLAYERKILL

public static final MOB.Attrib PLAYERKILL

BRIEF

public static final MOB.Attrib BRIEF

NOFOLLOW

public static final MOB.Attrib NOFOLLOW

AUTOWEATHER

public static final MOB.Attrib AUTOWEATHER

AUTODRAW

public static final MOB.Attrib AUTODRAW

AUTOGUARD

public static final MOB.Attrib AUTOGUARD

SOUND

public static final MOB.Attrib SOUND

AUTOIMPROVE

public static final MOB.Attrib AUTOIMPROVE

NOTEACH

public static final MOB.Attrib NOTEACH

AUTONOTIFY

public static final MOB.Attrib AUTONOTIFY

AUTOFORWARD

public static final MOB.Attrib AUTOFORWARD

DAILYMESSAGE

public static final MOB.Attrib DAILYMESSAGE

QUIET

public static final MOB.Attrib QUIET

MXP

public static final MOB.Attrib MXP

COMPRESS

public static final MOB.Attrib COMPRESS

AUTORUN

public static final MOB.Attrib AUTORUN

AUTOMAP

public static final MOB.Attrib AUTOMAP

NOBATTLESPAM

public static final MOB.Attrib NOBATTLESPAM

TELNET_GA

public static final MOB.Attrib TELNET_GA
Method Detail

values

public static MOB.Attrib[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (MOB.Attrib c : MOB.Attrib.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MOB.Attrib valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getBitCode

public int getBitCode()
Returns the bitmap mask of this attribute

Returns:
the bitmap mask of this attribute

isAutoReversed

public boolean isAutoReversed()
Returns true if the attribute is intuitively reversed, meaning that setting it turns it off, while clearing it turns it on.

Returns:
true if it is reversed, false for normal

getName

public java.lang.String getName()
The more official description code name of this attribute.

Returns:
more official description code name of this attribute.