Blackjack

com.amoebacode.blackjack.event
Class RoundEventListenerCollection

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

public class RoundEventListenerCollection
extends EventListenerCollection

RoundEventListenerCollection manages a collection of round event listeners.

Version:
0.9
Author:
Jason Gurney

Fields inherited from class com.amoebacode.blackjack.event.EventListenerCollection
listeners
 
Constructor Summary
RoundEventListenerCollection()
          Default public constructor.
 
Method Summary
 void fireAddDealerEvent(IDealer dealer)
          Fires an add dealer event to all of the listeners in this collection.
 void fireAddPlayerEvent(IPlayer player)
          Fires an add player 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

RoundEventListenerCollection

public RoundEventListenerCollection()
Default public constructor.
Method Detail

fireAddPlayerEvent

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

fireAddDealerEvent

public void fireAddDealerEvent(IDealer dealer)
Fires an add dealer event to all of the listeners in this collection.
Parameters:
dealer - the IDealer source of the event

Blackjack

Copyright © 2002 amoebacode.com.