Blackjack

com.amoebacode.blackjack.event
Class PlayerHandEventListenerCollection

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

public class PlayerHandEventListenerCollection
extends HandEventListenerCollection

PlayerHandEventListenerCollection manages a collection of player hand event listeners.

Version:
0.9
Author:
Jason Gurney

Fields inherited from class com.amoebacode.blackjack.event.EventListenerCollection
listeners
 
Constructor Summary
PlayerHandEventListenerCollection()
          Default public constructor.
 
Method Summary
 void fireAvailableCommandsEvent(AvailableHandCommands availableCommands)
          Fires an update available commands event to all of the listeners in this collection.
 void fireDrawNetGainEvent(IPlayerHand hand)
          Fires a draw net gain event to all of the listeners in this collection.
 void fireRemoveCardEvent(ICard splitCard)
          Fires a remove card event to all of the listeners in this collection.
 void fireUpdateBetLabelEvent(IPlayerHand hand)
          Fires an update bet label event to all of the listeners in this collection.
 
Methods inherited from class com.amoebacode.blackjack.event.HandEventListenerCollection
fireAddCardEvent, fireClearEvent
 
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

PlayerHandEventListenerCollection

public PlayerHandEventListenerCollection()
Default public constructor.
Method Detail

fireRemoveCardEvent

public void fireRemoveCardEvent(ICard splitCard)
Fires a remove card event to all of the listeners in this collection.
Parameters:
splitCard - the ICard source of the event

fireAvailableCommandsEvent

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

fireUpdateBetLabelEvent

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

fireDrawNetGainEvent

public void fireDrawNetGainEvent(IPlayerHand hand)
Fires a draw net gain event to all of the listeners in this collection.
Parameters:
hand - the IPlayerHand source of the event

Blackjack

Copyright © 2002 amoebacode.com.