|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jtge.sample.toss.Model
This class encapsulates the model within a facade.
The model implements the backend of the game logics : to execute toss orders and to publish win or loss results to a registered view.
Constructor Summary | |
Model(jtge.engine.handler.IConsumer consumer)
Create a model. |
Method Summary | |
void |
handle(jtge.engine.command.ICommand command)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Model(jtge.engine.handler.IConsumer consumer)
consumer
- the consumer handling resultsMethod Detail |
public final void handle(jtge.engine.command.ICommand command)
handle
in interface jtge.engine.handler.IConsumer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |