Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.zazof.jtegServer
Class FichasMH  view FichasMH download FichasMH.java

java.lang.Object
  extended byorg.zazof.jtegServer.MessageHandler
      extended byorg.zazof.jtegServer.FichasMH

public class FichasMH
extends MessageHandler

This MessageHandler process "fichas", "fichas2" and "fichasc" messages.


Field Summary
private  int $count
           
private  int FICHAS
           
private  int FICHAS2
           
private  int FICHASC
           
(package private) static org.apache.log4j.Category log
           
private  int mode
           
private  Player nextPlayer
           
 
Constructor Summary
FichasMH()
           
 
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
 

Field Detail

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
Constructor Detail

FichasMH

public FichasMH()
Method Detail

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