jtge.sample.toss
Class Model

java.lang.Object
  extended byjtge.sample.toss.Model
All Implemented Interfaces:
jtge.engine.handler.IConsumer

public class Model
extends java.lang.Object
implements jtge.engine.handler.IConsumer

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.

Version:
$Revision: 1.3 $ $Date: 2005/08/26 18:10:59 $
Author:
Mathieu Champlon

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

Model

public Model(jtge.engine.handler.IConsumer consumer)
Create a model.

Parameters:
consumer - the consumer handling results
Method Detail

handle

public final void handle(jtge.engine.command.ICommand command)

Specified by:
handle in interface jtge.engine.handler.IConsumer


Copyright © 2003-2005 . All Rights Reserved.