org.cb.jset.client
Class AbstractGame

java.lang.Object
  extended byorg.cb.jset.client.AbstractGame
All Implemented Interfaces:
SetGame
Direct Known Subclasses:
LocalGame, NetworkGame

public abstract class AbstractGame
extends java.lang.Object
implements SetGame

An abstract SetGame, responsible of the event management.

Version:
$Id: AbstractGame.java 123 2004-04-14 23:45:53Z jerome $
Author:
jerome@coffeebreaks.org - last modified by $LastModifiedBy$

Field Summary
protected  javax.swing.event.EventListenerList _listenerList
           
 
Constructor Summary
AbstractGame()
           
 
Method Summary
 void addBoardListener(SetGameBoardListener listener)
           
 void addGameListener(SetGameListener listener)
           
protected  void fireCardsAdded(CardProperties[] cards)
           
protected  void fireGameChange(GameEvent event)
           
protected  void fireSetRemoved(CardSet set)
           
 void removeBoardListener(SetGameBoardListener listener)
           
 void removeGameListener(SetGameListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.cb.jset.client.SetGame
endTurn, removeSet, start, stop
 

Field Detail

_listenerList

protected final javax.swing.event.EventListenerList _listenerList
Constructor Detail

AbstractGame

public AbstractGame()
Method Detail

addBoardListener

public void addBoardListener(SetGameBoardListener listener)
Specified by:
addBoardListener in interface SetGame

removeBoardListener

public void removeBoardListener(SetGameBoardListener listener)
Specified by:
removeBoardListener in interface SetGame

addGameListener

public void addGameListener(SetGameListener listener)
Specified by:
addGameListener in interface SetGame

removeGameListener

public void removeGameListener(SetGameListener listener)
Specified by:
removeGameListener in interface SetGame

fireGameChange

protected void fireGameChange(GameEvent event)

fireCardsAdded

protected void fireCardsAdded(CardProperties[] cards)

fireSetRemoved

protected void fireSetRemoved(CardSet set)


Copyright © 2004 CoffeeBreaks. All Rights Reserved.