jfreerails.network
Class SimpleServerGameModel
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
w
private World w
passwords
private java.lang.String[] passwords
SimpleServerGameModel
public SimpleServerGameModel()
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