jfreerails.launcher
Class GUIClient

java.lang.Object
  extended by jfreerails.network.FreerailsClient
      extended by jfreerails.launcher.GUIClient
All Implemented Interfaces:
ClientControlInterface, MoveReceiver, ServerCommandReceiver, UntriedMoveReceiver, FreerailsProgressMonitor, GameModel

public class GUIClient
extends FreerailsClient
implements FreerailsProgressMonitor

A swing freerails client.

Author:
Luke

Nested Class Summary
 
Nested classes/interfaces inherited from interface jfreerails.controller.ClientControlInterface
ClientControlInterface.ClientProperty
 
Field Summary
private  ActionRoot actionRoot
           
private  GUIComponentFactoryImpl factory
           
private  ModelRootImpl modelRoot
           
private  FreerailsProgressMonitor monitor
           
private  java.lang.String name
           
private  ScreenHandler screenHandler
           
private  RenderersRoot vl
           
 
Fields inherited from class jfreerails.network.FreerailsClient
connection2Server
 
Fields inherited from interface jfreerails.util.FreerailsProgressMonitor
NULL_INSTANCE
 
Constructor Summary
GUIClient(java.lang.String name, FreerailsProgressMonitor fm, int screenMode, java.awt.DisplayMode dm)
           
 
Method Summary
protected  void clientUpdates()
          Empty method called by update(), subclasses should override this method instead of overriding update().
 void finished()
           
 ScreenHandler getScreenHandler()
           
static void main(java.lang.String[] args)
           
protected  void newWorld(World w)
          Subclasses should override this method if they need to respond the the world being changed.
 void nextStep(int max)
           
 void setMessage(java.lang.String s)
           
 void setProperty(ClientControlInterface.ClientProperty propertyName, java.io.Serializable value)
          Sets a property, for example, the list of saved games.
 void setValue(int i)
           
(package private)  void start()
           
 
Methods inherited from class jfreerails.network.FreerailsClient
connect, connect, disconnect, getLastTickTime, getMoveFork, getProperty, getWorld, processMove, processPreMove, resetProperties, sendCommand, setGameModel, tryDoMove, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actionRoot

private final ActionRoot actionRoot

factory

private final GUIComponentFactoryImpl factory

modelRoot

private final ModelRootImpl modelRoot

monitor

private final FreerailsProgressMonitor monitor

name

private final java.lang.String name

screenHandler

private final ScreenHandler screenHandler

vl

private RenderersRoot vl
Constructor Detail

GUIClient

public GUIClient(java.lang.String name,
                 FreerailsProgressMonitor fm,
                 int screenMode,
                 java.awt.DisplayMode dm)
          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

main

public static void main(java.lang.String[] args)

clientUpdates

protected void clientUpdates()
Description copied from class: FreerailsClient
Empty method called by update(), subclasses should override this method instead of overriding update().

Overrides:
clientUpdates in class FreerailsClient

finished

public void finished()
Specified by:
finished in interface FreerailsProgressMonitor

getScreenHandler

public ScreenHandler getScreenHandler()

newWorld

protected void newWorld(World w)
Description copied from class: FreerailsClient
Subclasses should override this method if they need to respond the the world being changed.

Overrides:
newWorld in class FreerailsClient

nextStep

public void nextStep(int max)
Specified by:
nextStep in interface FreerailsProgressMonitor

setMessage

public void setMessage(java.lang.String s)

setValue

public void setValue(int i)
Specified by:
setValue in interface FreerailsProgressMonitor

setProperty

public void setProperty(ClientControlInterface.ClientProperty propertyName,
                        java.io.Serializable value)
Description copied from interface: ClientControlInterface
Sets a property, for example, the list of saved games.

Specified by:
setProperty in interface ClientControlInterface
Overrides:
setProperty in class FreerailsClient

start

void start()