net.datacrow.core
Class UserMode

java.lang.Object
  extended by net.datacrow.core.UserMode

public abstract class UserMode
extends java.lang.Object

The user mode determines which actions are available to the user. A beginner might feel overwhelmed and therefore less features will be available to him.

Author:
Robert Jan van der Waals

Field Summary
static int _XP_BEGINNER
           
static int _XP_EXPERT
           
 
Constructor Summary
UserMode()
           
 
Method Summary
static int getUserMode()
           
static boolean isCorrectXpLevel(int level)
          Checks if the supplied user level corresponds with the current user mode.
static void setUserMode(int mode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_XP_BEGINNER

public static final int _XP_BEGINNER
See Also:
Constant Field Values

_XP_EXPERT

public static final int _XP_EXPERT
See Also:
Constant Field Values
Constructor Detail

UserMode

public UserMode()
Method Detail

setUserMode

public static void setUserMode(int mode)

getUserMode

public static int getUserMode()
See Also:
_XP_BEGINNER, _XP_EXPERT

isCorrectXpLevel

public static boolean isCorrectXpLevel(int level)
Checks if the supplied user level corresponds with the current user mode.

Parameters:
level -