cz.cuni.amis.nb.pogamut.options
Enum TimelinePanel.MapFlag

Package class diagram package TimelinePanel.MapFlag
java.lang.Object
  extended by java.lang.Enum<TimelinePanel.MapFlag>
      extended by cz.cuni.amis.nb.pogamut.options.TimelinePanel.MapFlag
All Implemented Interfaces:
Serializable, Comparable<TimelinePanel.MapFlag>
Enclosing class:
TimelinePanel

public static enum TimelinePanel.MapFlag
extends Enum<TimelinePanel.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 TimelinePanel.MapFlag valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TimelinePanel.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 TimelinePanel.MapFlag WALK

FLY

public static final TimelinePanel.MapFlag FLY

SWIM

public static final TimelinePanel.MapFlag SWIM

JUMP

public static final TimelinePanel.MapFlag JUMP

DOOR

public static final TimelinePanel.MapFlag DOOR

SPECIAL

public static final TimelinePanel.MapFlag SPECIAL

LADDER

public static final TimelinePanel.MapFlag LADDER

PROSCRIBED

public static final TimelinePanel.MapFlag PROSCRIBED

FORCED

public static final TimelinePanel.MapFlag FORCED

PLAYER_ONLY

public static final TimelinePanel.MapFlag PLAYER_ONLY
Method Detail

values

public static TimelinePanel.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 (TimelinePanel.MapFlag c : TimelinePanel.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 TimelinePanel.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<TimelinePanel.MapFlag>


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