com.motlin.risk.dice
Class AbstractRoll

java.lang.Object
  extended by com.motlin.risk.dice.AbstractRoll
All Implemented Interfaces:
Roll
Direct Known Subclasses:
DefaultRoll, LeaderRoll

public abstract class AbstractRoll
extends Object
implements Roll


Constructor Summary
AbstractRoll(Die... dice)
           
 
Method Summary
 Casualties battle(Roll defender)
           
abstract  int get(int index)
           
 int getNumberOfDice()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractRoll

public AbstractRoll(Die... dice)
Method Detail

toString

public final String toString()
Overrides:
toString in class Object

battle

public final Casualties battle(Roll defender)
Specified by:
battle in interface Roll

get

public abstract int get(int index)
Specified by:
get in interface Roll

getNumberOfDice

public final int getNumberOfDice()
Specified by:
getNumberOfDice in interface Roll