Blackjack

com.amoebacode.blackjack.event
Class PlayerEventListenerCollection

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

public class PlayerEventListenerCollection
extends EventListenerCollection

PlayerEventListenerCollection manages a collection of player event listeners.

Version:
0.9
Author:
Jason Gurney

Fields inherited from class com.amoebacode.blackjack.event.EventListenerCollection
listeners
 
Constructor Summary
PlayerEventListenerCollection()
          Default public constructor.
 
Method Summary
 void fireAddPlayerHandEvent(IPlayerHand hand)
          Fires an add player hand event to all of the listeners in this collection.
 void fireDisplayNetGainEvent(IPlayer player)
          Fires a display net gain 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

PlayerEventListenerCollection

public PlayerEventListenerCollection()
Default public constructor.
Method Detail

fireDisplayNetGainEvent

public void fireDisplayNetGainEvent(IPlayer player)
Fires a display net gain event to all of the listeners in this collection.
Parameters:
player - the IPlayer source of the event

fireAddPlayerHandEvent

public void fireAddPlayerHandEvent(IPlayerHand hand)
Fires an add player hand event to all of the listeners in this collection.
Parameters:
hand - the IPlayerHand source of the event

Blackjack

Copyright © 2002 amoebacode.com.