ch.sahits.game
Class OpenPatrician

java.lang.Object
  extended by ch.sahits.game.OpenPatrician

public class OpenPatrician
extends Object


Field Summary
private static String HELP
           
private static Object lock
           
private static String START_CLIENT
           
private static String START_SERVER
           
private static boolean startedServer
           
 
Constructor Summary
OpenPatrician()
           
 
Method Summary
static void createStandaloneServer(OpenPatricianFrame userGui)
          Create the server instance for a standalone game.
static void main(String[] args)
           
private static void printUsage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_CLIENT

private static final String START_CLIENT
See Also:
Constant Field Values

START_SERVER

private static final String START_SERVER
See Also:
Constant Field Values

HELP

private static final String HELP
See Also:
Constant Field Values

startedServer

private static volatile boolean startedServer

lock

private static final Object lock
Constructor Detail

OpenPatrician

public OpenPatrician()
Method Detail

main

public static void main(String[] args)
Parameters:
args -

printUsage

private static void printUsage()

createStandaloneServer

public static void createStandaloneServer(OpenPatricianFrame userGui)
Create the server instance for a standalone game. If the server is already started no second server will be started.

Parameters:
userGui - Thread/Runnable that handels the users GUI rendering


Copyright © 2011 Sahits GmbH. All Rights Reserved.