Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
DiceInterface JavaScript is disabled on your browser. Skip navigation links Package Class Tree Deprecated Index Help Prev Class Next Class Frames No Frames All Classes Summary:  Nested |  Field |  Constr |  Method Detail:  Field |  Constr |  Method Interface DiceInterface public interface DiceInterface DiceInterface represents a pair of dice as used in tabula. It should use the Die class so that all randomness comes from there Requires a constructor with no parameters. Initially the dice have no value until they are rolled Method Summary All Methods Instance Methods Abstract Methods  Modifier and Type Method and Description void clear() clear both of the dice so they have no value until they are rolled again java.util.List getDice() Get the individual dice in a list. java.util.List getValues()  boolean haveRolled()  void roll() Roll both of the dice Method Detail haveRolled boolean haveRolled() Returns: true if and only if both of the dice have been rolled roll void roll() Roll both of the dice getValues java.util.List getValues() throws NotRolledYetException Returns: four numbers if there is a double, otherwise two Throws: NotRolledYetException - if either of the dice have not been rolled yet clear void clear() clear both of the dice so they have no value until they are rolled again getDice java.util.List getDice() Get the individual dice in a list. Returns: the Die objects in a list, which will have length 2 Skip navigation links Package Class Tree Deprecated Index Help Prev Class Next Class Frames No Frames All Classes Summary:  Nested |  Field |  Constr |  Method Detail:  Field |  Constr |  Method