jfreerails.network
Class SimpleServerGameModel

java.lang.Object
  extended by jfreerails.network.SimpleServerGameModel
All Implemented Interfaces:
java.io.Serializable, ServerGameModel, GameModel

public class SimpleServerGameModel
extends java.lang.Object
implements ServerGameModel

A ServerGameModel that has a world object but no automation.

Author:
Luke
See Also:
Serialized Form

Field Summary
private  java.lang.String[] passwords
           
private static long serialVersionUID
           
private  World w
           
 
Constructor Summary
SimpleServerGameModel()
           
 
Method Summary
 java.lang.String[] getPasswords()
           
 World getWorld()
           
 void init(MoveReceiver moveExecuter)
           
 void itemAdded(KEY key, int index, FreerailsPrincipal principal)
           
 void itemRemoved(KEY key, int index, FreerailsPrincipal principal)
           
 void listUpdated(KEY key, int index, FreerailsPrincipal principal)
           
 void setWorld(World w, java.lang.String[] passwords)
           
 void update()
           
 void write(java.io.ObjectOutputStream objectOut)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

w

private World w

passwords

private java.lang.String[] passwords
Constructor Detail

SimpleServerGameModel

public SimpleServerGameModel()
Method Detail

setWorld

public void setWorld(World w,
                     java.lang.String[] passwords)
Specified by:
setWorld in interface ServerGameModel

getWorld

public World getWorld()
Specified by:
getWorld in interface ServerGameModel

init

public void init(MoveReceiver moveExecuter)
Specified by:
init in interface ServerGameModel

write

public void write(java.io.ObjectOutputStream objectOut)
           throws java.io.IOException
Specified by:
write in interface ServerGameModel
Throws:
java.io.IOException

update

public void update()
Specified by:
update in interface GameModel

listUpdated

public void listUpdated(KEY key,
                        int index,
                        FreerailsPrincipal principal)

itemAdded

public void itemAdded(KEY key,
                      int index,
                      FreerailsPrincipal principal)

itemRemoved

public void itemRemoved(KEY key,
                        int index,
                        FreerailsPrincipal principal)

getPasswords

public java.lang.String[] getPasswords()
Specified by:
getPasswords in interface ServerGameModel