java.lang.Object
org.zazof.jtegServer.MessageHandler
org.zazof.jtegServer.AttackMH
- public class AttackMH
- extends MessageHandler
This MessageHandler processes the "ataque" messages
|
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 |
$r
private java.util.Random $r
sourceDices
private int[] sourceDices
destDices
private int[] destDices
log
static org.apache.log4j.Category log
AttackMH
public AttackMH()
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)