com.threerings.micasa.simulator.client
Class SimulatorApp

java.lang.Object
  extended by com.threerings.micasa.simulator.client.SimulatorApp

public class SimulatorApp
extends Object

The simulator application is a test harness to facilitate development and debugging of games.


Nested Class Summary
protected static class SimulatorApp.ServerThread
           
 
Field Summary
protected  SimulatorClient _client
           
protected  SimulatorFrame _frame
           
protected  SimulatorApp.ServerThread _serverThread
           
protected static int DEFAULT_PLAYER_COUNT
          The default number of players in the game.
 
Constructor Summary
SimulatorApp()
           
 
Method Summary
protected static boolean checkArgs(String[] args)
           
protected  SimulatorController createController(SimulatorInfo siminfo)
           
protected  SimulatorClient createSimulatorClient(SimulatorFrame frame)
           
protected  SimulatorFrame createSimulatorFrame()
           
protected  SimulatorServer createSimulatorServer(com.google.inject.Injector injector)
           
protected  int getInt(String value, int defval)
           
static void main(String[] args)
           
 void run()
           
 void start(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_client

protected SimulatorClient _client

_frame

protected SimulatorFrame _frame

_serverThread

protected SimulatorApp.ServerThread _serverThread

DEFAULT_PLAYER_COUNT

protected static final int DEFAULT_PLAYER_COUNT
The default number of players in the game.

See Also:
Constant Field Values
Constructor Detail

SimulatorApp

public SimulatorApp()
Method Detail

start

public void start(String[] args)
           throws Exception
Throws:
Exception

createSimulatorServer

protected SimulatorServer createSimulatorServer(com.google.inject.Injector injector)

createSimulatorFrame

protected SimulatorFrame createSimulatorFrame()

createSimulatorClient

protected SimulatorClient createSimulatorClient(SimulatorFrame frame)
                                         throws Exception
Throws:
Exception

createController

protected SimulatorController createController(SimulatorInfo siminfo)

run

public void run()

main

public static void main(String[] args)

checkArgs

protected static boolean checkArgs(String[] args)

getInt

protected int getInt(String value,
                     int defval)