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

Quick Search    Search Deep

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

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

public class AttackMH
extends MessageHandler

This MessageHandler processes the "ataque" messages


Field Summary
private  java.util.Random $r
           
private  int[] destDices
           
(package private) static org.apache.log4j.Category log
           
private  int[] sourceDices
           
 
Constructor Summary
AttackMH()
           
 
Method Summary
protected  void processMessage(Message m)
          each subclass should implement to code to handle this message
private  void rollDices()
          rolls the dices and returns 6 numbes between 1 and 6
private  void sort(int[] dices)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

$r

private java.util.Random $r

sourceDices

private int[] sourceDices

destDices

private int[] destDices

log

static org.apache.log4j.Category log
Constructor Detail

AttackMH

public AttackMH()
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

rollDices

private void rollDices()
rolls the dices and returns 6 numbes between 1 and 6


sort

private void sort(int[] dices)