ch.sahits.game
Class OpenPatrician

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

public class OpenPatrician
extends Object

Main class for starting the OpenPatrician game.

Author:
Andi Hotz, (c) Sahits GmbH, 2011 Created on Dec 16, 2011

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

Field Detail

logger

private static org.apache.log4j.Logger logger

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 -

logEnvironment

private static void logEnvironment()

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-2012 Sahits GmbH. All Rights Reserved.