net.datacrow.core
Class UserMode
java.lang.Object
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
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 |
_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
UserMode
public UserMode()
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
-