|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jrummikub.control.ApplicationControl
public class ApplicationControl
The application control controls the settings for a new games and create the game control
Field Summary | |
---|---|
private GameControl |
gameControl
|
private LoginControl |
loginControl
|
private NetworkControl |
networkControl
|
private SaveControl |
saveControl
|
private DedicatedServer |
server
|
private SettingsControl |
settingsControl
|
private Connection |
tempConnection
|
private IView |
view
|
Constructor Summary | |
---|---|
ApplicationControl(IView view)
Creates a new application control |
Method Summary | |
---|---|
private void |
abortControls()
End all controls in case of e.g. quit event |
private void |
addGameControlListeners(GameControl gameControl)
Adds events listeners to game control events |
private void |
addNewNetworkGameHandler()
|
private void |
addQuitGameHandlers()
|
private void |
addSaveLoadHandlers()
|
private void |
createLoginControl(boolean reset)
Create a new network login control |
private void |
createNetworkControl(LoginData loginData)
Create a new network game control |
boolean |
isGameRunning()
Checks if a game is currently running |
private void |
showQuitWarning()
|
private void |
showRestartWarning()
|
void |
startApplication()
Starts the application by showing the game settings dialog panel |
boolean |
startDedicatedServer(java.lang.String password)
Ensure the dedicated server is running |
void |
updateDedicatedServerPassword(LoginData loginData)
If the login given is to our own dedicated server, update it's password to match |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private SettingsControl settingsControl
private LoginControl loginControl
private NetworkControl networkControl
private SaveControl saveControl
private GameControl gameControl
private Connection tempConnection
private DedicatedServer server
private IView view
Constructor Detail |
---|
public ApplicationControl(IView view)
view
- the view to useMethod Detail |
---|
private void addSaveLoadHandlers()
private void addNewNetworkGameHandler()
private void addQuitGameHandlers()
private void showRestartWarning()
private void showQuitWarning()
public boolean isGameRunning()
private void createLoginControl(boolean reset)
private void abortControls()
public void startApplication()
private void addGameControlListeners(GameControl gameControl)
gameControl
- of current gameprivate void createNetworkControl(LoginData loginData)
loginData
- users login data for channelpublic boolean startDedicatedServer(java.lang.String password)
password
- password to use, if empty "jrummikub" is used
public void updateDedicatedServerPassword(LoginData loginData)
loginData
- login data of user trying to connect
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |