nl.tudelft.goal.ut2004.visualizer.options
Enum MapFlag

Package class diagram package MapFlag
java.lang.Object
  extended by java.lang.Enum<MapFlag>
      extended by nl.tudelft.goal.ut2004.visualizer.options.MapFlag
All Implemented Interfaces:
Serializable, Comparable<MapFlag>

public enum MapFlag
extends Enum<MapFlag>

List of preferrences flags related to links between waypoints in unreal map.


Enum Constant Summary
DOOR
           
FLY
           
FORCED
           
JUMP
           
LADDER
           
PLAYER_ONLY
           
PROSCRIBED
           
SPECIAL
           
SWIM
           
WALK
           
 
Method Summary
 boolean getDefault()
          Get default value of this flag
 int getFlag()
          Return int value that is used by unreal engine to represent this flag in waylinks.
 String getPrefKey()
          Get preferences key for TimelinePanel.
 String toString()
           
static MapFlag valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MapFlag[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

WALK

public static final MapFlag WALK

FLY

public static final MapFlag FLY

SWIM

public static final MapFlag SWIM

JUMP

public static final MapFlag JUMP

DOOR

public static final MapFlag DOOR

SPECIAL

public static final MapFlag SPECIAL

LADDER

public static final MapFlag LADDER

PROSCRIBED

public static final MapFlag PROSCRIBED

FORCED

public static final MapFlag FORCED

PLAYER_ONLY

public static final MapFlag PLAYER_ONLY
Method Detail

values

public static MapFlag[] 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 (MapFlag c : MapFlag.values())
    System.out.println(c);

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

valueOf

public static MapFlag valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getPrefKey

public String getPrefKey()
Get preferences key for TimelinePanel.

Get the value of preference through NbPreferences.forModule(TimelinePanel.class).getBoolean(String prefKey, boolean ifNothingSet)

Returns:

getDefault

public boolean getDefault()
Get default value of this flag

Returns:
wheather to show or not show edges wioth this flag

getFlag

public int getFlag()
Return int value that is used by unreal engine to represent this flag in waylinks.

Returns:
1 bit integer (2^n, like 1,2,4,8,..)

toString

public String toString()
Overrides:
toString in class Enum<MapFlag>


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.