Blackjack

com.amoebacode.blackjack.event
Class GameEventListenerCollection

java.lang.Object
  |
  +--com.amoebacode.blackjack.event.EventListenerCollection
        |
        +--com.amoebacode.blackjack.event.GameEventListenerCollection

public class GameEventListenerCollection
extends EventListenerCollection

GameEventListenerCollection manages a collection of game event listeners.

Version:
0.9
Author:
Jason Gurney

Fields inherited from class com.amoebacode.blackjack.event.EventListenerCollection
listeners
 
Constructor Summary
GameEventListenerCollection()
          Default public constructor.
 
Method Summary
 void fireAvailableCommandsEvent(AvailableGameCommands availableCommands)
          Fires an update available commands event to all of the listeners in this collection.
 void fireSetBasicStrategyEvent(IBasicStrategy basicStrategy)
          Fires a set basic strategy tutor event to all of the listeners in this collection.
 void fireSetDeckEvent(IDeck deck)
          Fires a set deck event to all of the listeners in this collection.
 void fireSetHouseRulesEvent(IHouseRules houseRules)
          Fires a set casino options event to all of the listeners in this collection.
 void fireSetPreferencesEvent(IPreferences preferences)
          Fires a set preferences event to all of the listeners in this collection.
 void fireSetRoundEvent(IRound round)
          Fires a set deck event to all of the listeners in this collection.
 void fireUpdateBalanceLabelEvent(IGame game)
          Fires an update balance label event to all of the listeners in this collection.
 void fireUpdateBetLabelEvent(IGame game)
          Fires an update bet label event to all of the listeners in this collection.
 
Methods inherited from class com.amoebacode.blackjack.event.EventListenerCollection
addEventListener, getEventListenerAt, getNumberOfListeners
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

GameEventListenerCollection

public GameEventListenerCollection()
Default public constructor.
Method Detail

fireSetDeckEvent

public void fireSetDeckEvent(IDeck deck)
Fires a set deck event to all of the listeners in this collection.
Parameters:
deck - the IDeck source of the event

fireSetPreferencesEvent

public void fireSetPreferencesEvent(IPreferences preferences)
Fires a set preferences event to all of the listeners in this collection.
Parameters:
preferences - the IPreferences source of the event

fireSetHouseRulesEvent

public void fireSetHouseRulesEvent(IHouseRules houseRules)
Fires a set casino options event to all of the listeners in this collection.
Parameters:
houseRules - the IHouseRules source of the event

fireSetBasicStrategyEvent

public void fireSetBasicStrategyEvent(IBasicStrategy basicStrategy)
Fires a set basic strategy tutor event to all of the listeners in this collection.
Parameters:
basicStrategy - the IBasicStrategy source of the event

fireUpdateBetLabelEvent

public void fireUpdateBetLabelEvent(IGame game)
Fires an update bet label event to all of the listeners in this collection.
Parameters:
game - the IGame source of the event

fireUpdateBalanceLabelEvent

public void fireUpdateBalanceLabelEvent(IGame game)
Fires an update balance label event to all of the listeners in this collection.
Parameters:
game - the IGame source of the event

fireAvailableCommandsEvent

public void fireAvailableCommandsEvent(AvailableGameCommands availableCommands)
Fires an update available commands event to all of the listeners in this collection.
Parameters:
availableCommands - the AvailableGameCommands source of the event

fireSetRoundEvent

public void fireSetRoundEvent(IRound round)
Fires a set deck event to all of the listeners in this collection.
Parameters:
deck - the IDeck source of the event

Blackjack

Copyright © 2002 amoebacode.com.