Blackjack

com.amoebacode.blackjack.event
Class BasicStrategyEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.amoebacode.blackjack.event.BlackjackEvent
              |
              +--com.amoebacode.blackjack.event.BasicStrategyEvent
All Implemented Interfaces:
java.io.Serializable

public class BasicStrategyEvent
extends BlackjackEvent

BasicStrategyEvent is the state object for incorrect basic strategy decision notification.

Version:
0.9
Author:
Jason Gurney
See Also:
Serialized Form

Field Summary
private  java.lang.String correctMove
          The correct move corresponding to the event
private  int dealerScore
          The dealer score corresponding to the event
private  java.lang.String playerScore
          The player score corresponding to the event
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BasicStrategyEvent(IBasicStrategy source)
          Default public constructor.
 
Method Summary
 java.lang.String getCorrectMove()
          Returns the correct move for this event.
 int getDealerScore()
          Returns the dealer score for this event.
 java.lang.String getPlayerScore()
          Returns the player score for this event.
 void setCorrectMove(java.lang.String correctMove)
          Sets the correct move for this event.
 void setDealerScore(int dealerScore)
          Sets the dealer score for this event.
 void setPlayerScore(java.lang.String playerScore)
          Sets the player score for this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

playerScore

private java.lang.String playerScore
The player score corresponding to the event

dealerScore

private int dealerScore
The dealer score corresponding to the event

correctMove

private java.lang.String correctMove
The correct move corresponding to the event
Constructor Detail

BasicStrategyEvent

public BasicStrategyEvent(IBasicStrategy source)
Default public constructor.
Parameters:
source - the IBasicStrategy source
Method Detail

setPlayerScore

public void setPlayerScore(java.lang.String playerScore)
Sets the player score for this event.
Parameters:
playerScore - this event's player score

getPlayerScore

public java.lang.String getPlayerScore()
Returns the player score for this event.
Returns:
this event's player score

setDealerScore

public void setDealerScore(int dealerScore)
Sets the dealer score for this event.
Parameters:
dealerScore - this event's dealer score

getDealerScore

public int getDealerScore()
Returns the dealer score for this event.
Returns:
this event's dealer score

setCorrectMove

public void setCorrectMove(java.lang.String correctMove)
Sets the correct move for this event.
Parameters:
correctMove - this event's correct move

getCorrectMove

public java.lang.String getCorrectMove()
Returns the correct move for this event.
Returns:
this event's correct move

Blackjack

Copyright © 2002 amoebacode.com.