20 package net.sf.gridarta.model.exitconnector;
22 import java.util.prefs.Preferences;
24 import org.jetbrains.annotations.NotNull;
70 return PREFERENCES.getBoolean(PASTE_EXIT_NAME_KEY, PASTE_EXIT_NAME_DEFAULT);
75 PREFERENCES.putBoolean(PASTE_EXIT_NAME_KEY, pasteExitName);
80 return PREFERENCES.getBoolean(AUTO_CREATE_EXIT_KEY, AUTO_CREATE_EXIT_DEFAULT);
85 PREFERENCES.putBoolean(AUTO_CREATE_EXIT_KEY, autoCreateExit);
91 return PREFERENCES.get(EXIT_ARCHETYPE_NAME_KEY, EXIT_ARCHETYPE_NAME_DEFAULT);
96 PREFERENCES.put(EXIT_ARCHETYPE_NAME_KEY, exitArchetypeName);
static final boolean AUTO_CREATE_EXIT_DEFAULT
The default value for AUTO_CREATE_EXIT_KEY.
static final String EXIT_ARCHETYPE_NAME_KEY
The preferences key for "exit archetype".
static final String EXIT_ARCHETYPE_NAME_DEFAULT
The default value for EXIT_ARCHETYPE_NAME_KEY.
void saveExitArchetypeName(@NotNull final String exitArchetypeName)
boolean loadPasteExitName()
static final boolean PASTE_EXIT_NAME_DEFAULT
The default value for PASTE_EXIT_NAME_KEY.
Base package of all Gridarta classes.
boolean autoCreateExit
Whether exit game objects should be auto-created when needed.
void savePasteExitName(final boolean pasteExitName)
Interface used as preferences location.
boolean loadAutoCreateExit()
static final String AUTO_CREATE_EXIT_KEY
The preferences key for "auto create exit".
static final String PASTE_EXIT_NAME_KEY
The preferences key for "paste exit name".
void saveAutoCreateExit(final boolean autoCreateExit)
String exitArchetypeName
The archetype to insert when creating new exit game objects.
boolean pasteExitName
Whether the exit's name should be set when pasted.
String loadExitArchetypeName()
static final Preferences PREFERENCES
The Preferences.
Default ExitConnectorModel implementation.
Stores information needed by the exit connector.