Blackjack

com.amoebacode.blackjack.event
Class BasicStrategyEventListenerCollection

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

public class BasicStrategyEventListenerCollection
extends EventListenerCollection

BasicStrategyEventListenerCollection manages a collection of basic strategy event listeners.

Version:
0.9
Author:
Jason Gurney

Fields inherited from class com.amoebacode.blackjack.event.EventListenerCollection
listeners
 
Constructor Summary
BasicStrategyEventListenerCollection()
          Default public constructor.
 
Method Summary
 void fireBuyingInsuranceEvent(IBasicStrategy strat)
          Fires a buying insurance event to all of the listeners in this collection.
 void fireIncorrectMoveEvent(IBasicStrategy strat, java.lang.String playerScore, int dealerScore, java.lang.String correctMove)
          Fires an incorrect move 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

BasicStrategyEventListenerCollection

public BasicStrategyEventListenerCollection()
Default public constructor.
Method Detail

fireBuyingInsuranceEvent

public void fireBuyingInsuranceEvent(IBasicStrategy strat)
Fires a buying insurance event to all of the listeners in this collection.
Parameters:
strat - the IBasicStrategy source of the event

fireIncorrectMoveEvent

public void fireIncorrectMoveEvent(IBasicStrategy strat,
                                   java.lang.String playerScore,
                                   int dealerScore,
                                   java.lang.String correctMove)
Fires an incorrect move event to all of the listeners in this collection.
Parameters:
strat - the IBasicStrategy source of the event
playerScore - the player score for the event
dealerScore - the dealer score for the event
correctMove - the correct move for the event

Blackjack

Copyright © 2002 amoebacode.com.