jfreerails.network
Class NewGameMessage2Server

java.lang.Object
  extended by jfreerails.network.NewGameMessage2Server
All Implemented Interfaces:
java.io.Serializable, Message2Server, FreerailsSerializable

public class NewGameMessage2Server
extends java.lang.Object
implements Message2Server

Request to start a game on a new map.

Author:
Luke
See Also:
Serialized Form

Field Summary
private  int id
           
private  java.lang.String mapName
           
private static long serialVersionUID
           
 
Constructor Summary
NewGameMessage2Server(int id, java.lang.String s)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 MessageStatus execute(ServerControlInterface server)
           
 int getID()
           
static java.lang.String[] getMapNames()
          TODO This would be better implemented in a config file, or better still dynamically determined by scanning the directory.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

id

private final int id

mapName

private final java.lang.String mapName
Constructor Detail

NewGameMessage2Server

public NewGameMessage2Server(int id,
                             java.lang.String s)
Method Detail

getID

public int getID()
Specified by:
getID in interface Message2Server

execute

public MessageStatus execute(ServerControlInterface server)
Specified by:
execute in interface Message2Server

getMapNames

public static java.lang.String[] getMapNames()
TODO This would be better implemented in a config file, or better still dynamically determined by scanning the directory.


equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object