java.lang.Object
org.zazof.jtegServer.MessageHandler
org.zazof.jtegServer.FichasMH
- public class FichasMH
- extends MessageHandler
This MessageHandler process "fichas", "fichas2" and "fichasc" messages.
|
Method Summary |
private int |
createContinentInfo(Player p,
World w)
creates a magic number :-) which contains info about the countries owned by the player |
protected void |
processMessage(Message m)
each subclass should implement to code to handle this message |
private void |
updateGameModel(World w,
int nbCountries,
int[] countries,
int[] armies)
if all data is valid, update the model |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nextPlayer
private Player nextPlayer
$count
private int $count
FICHAS
private int FICHAS
FICHAS2
private int FICHAS2
FICHASC
private int FICHASC
mode
private int mode
log
static org.apache.log4j.Category log
FichasMH
public FichasMH()
processMessage
protected void processMessage(Message m)
- Description copied from class:
MessageHandler
- each subclass should implement to code to handle this message
- Specified by:
processMessage in class MessageHandler
updateGameModel
private void updateGameModel(World w,
int nbCountries,
int[] countries,
int[] armies)
- if all data is valid, update the model
createContinentInfo
private int createContinentInfo(Player p,
World w)
- creates a magic number :-) which contains info about the countries owned by the player