jfreerails.network
Class NewGameMessage2Server
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
id
private final int id
mapName
private final java.lang.String mapName
NewGameMessage2Server
public NewGameMessage2Server(int id,
java.lang.String s)
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