public class RollController extends Controller implements IRollController
Constructor and Description |
---|
RollController(IRollView view,
IRollResultView resultView)
RollController constructor
|
Modifier and Type | Method and Description |
---|---|
IRollResultView |
getResultView() |
IRollView |
getRollView() |
void |
rollDice()
Called when the user clicks the "Roll!" button in the roll view
|
void |
setResultView(IRollResultView resultView) |
getView
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getView
public RollController(IRollView view, IRollResultView resultView)
view
- Roll viewresultView
- Roll result viewpublic IRollResultView getResultView()
public void setResultView(IRollResultView resultView)
public IRollView getRollView()
public void rollDice()
IRollController
rollDice
in interface IRollController