|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.world.SystemProps
This class reads and retrieves properties set in the wyvern.ini file. It also initializes the Jython interpeter system state.
Field Summary | |
static java.lang.String |
DEFAULT_MAIN_MAP
|
static java.lang.String |
INITFILE_NAME
This file goes in the admin directory, "wyvern/admin/". |
Method Summary | |
static void |
disableScheduler()
If called on startup, instructs the system not to start up the game scheduler. |
static boolean |
getAnimationFlag()
Returns true if animation timers are enabled in this session. |
static int |
getIntProperty(java.lang.String name)
Returns a property with an integer value. |
static java.lang.String |
getProperty(java.lang.String name)
Returns true if a game engine property is set. |
static java.lang.String |
getWelcomeMessage()
Returns the message to display when a user logs in. |
static boolean |
inMapEditor()
Returns true if the system is running in a Map Editor. |
static boolean |
isPropertySet(java.lang.String name)
Returns true if the property is "true", else false. |
static void |
printProperties()
Prints all the properties and their values. |
static boolean |
runningWindows()
Returns true if we're on some flavor of Microsoft Windows. |
static void |
setAnimationFlag(boolean value)
Sets the system property controlling the startup of animation timers. |
static void |
setProperty(java.lang.String name,
java.lang.String value)
Sets an arbitrary property by name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String INITFILE_NAME
public static final java.lang.String DEFAULT_MAIN_MAP
Method Detail |
public static java.lang.String getProperty(java.lang.String name)
name
- the property name
public static boolean isPropertySet(java.lang.String name)
name
- the property name
public static java.lang.String getWelcomeMessage()
public static boolean getAnimationFlag()
public static void setAnimationFlag(boolean value)
value
- true to set animation on startuppublic static void setProperty(java.lang.String name, java.lang.String value)
name
- the property to setvalue
- the value to set it topublic static int getIntProperty(java.lang.String name)
name
- the property name
public static final boolean inMapEditor()
public static boolean runningWindows()
public static void printProperties()
public static void disableScheduler()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |