jfreerails.launcher
Class GUIClient
java.lang.Object
jfreerails.network.FreerailsClient
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
| 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 |
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
GUIClient
public GUIClient(java.lang.String name,
FreerailsProgressMonitor fm,
int screenMode,
java.awt.DisplayMode dm)
throws java.io.IOException
- Throws:
java.io.IOException
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()