au.edu.mq.itec802.cardGame.blackjack
Class BlackjackHouse

java.lang.Object
  extended by au.edu.mq.itec802.cardGame.blackjack.BlackjackAbstractPlayer
      extended by au.edu.mq.itec802.cardGame.blackjack.BlackjackHouse
All Implemented Interfaces:
Player

public class BlackjackHouse
extends BlackjackAbstractPlayer

The Class BlackjackHouse.

Version:
$Id: BlackjackHouse.java 22/03/2011 jumbo$
Author:
Tomas Krajca

Constructor Summary
BlackjackHouse()
           
 
Method Summary
 int getAmount()
          The house has an infinite amount Note: this should never be called
 int getInitAmount()
          The house has infinite amount Note: this should never be called
 int getNumber()
          The house does not have any number, obviously, it's not a player Note: this should never be called
 boolean isHouse()
          The house is house, obviously :)
 void play(BlackjackPack pack)
          Simulates the house playing a round
 void play(Pack pack)
          Simulates the house playing a round
 
Methods inherited from class au.edu.mq.itec802.cardGame.blackjack.BlackjackAbstractPlayer
emptyHand, getBet, getScore, loses, setBet, wins
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlackjackHouse

public BlackjackHouse()
Method Detail

play

public void play(BlackjackPack pack)
Simulates the house playing a round

Specified by:
play in class BlackjackAbstractPlayer
Parameters:
pack - of cards to play with
See Also:
(au.edu.mq.itec802.cardGame.blackjack.BlackjackPack)

isHouse

public boolean isHouse()
The house is house, obviously :)

Overrides:
isHouse in class BlackjackAbstractPlayer
Returns:
true, if is house
See Also:
BlackjackAbstractPlayer.isHouse()

getNumber

public int getNumber()
The house does not have any number, obviously, it's not a player Note: this should never be called

Specified by:
getNumber in class BlackjackAbstractPlayer
Returns:
the player's number
See Also:
BlackjackAbstractPlayer.getNumber()

getAmount

public int getAmount()
The house has an infinite amount Note: this should never be called

Specified by:
getAmount in class BlackjackAbstractPlayer
Returns:
the current player's amount
See Also:
BlackjackAbstractPlayer.getAmount()

getInitAmount

public int getInitAmount()
The house has infinite amount Note: this should never be called

Specified by:
getInitAmount in class BlackjackAbstractPlayer
Returns:
the player's initial amount
See Also:
()

play

public void play(Pack pack)
Simulates the house playing a round

Parameters:
pack - -- a pack to play with
See Also:
Player.play(au.edu.mq.itec802.cardGame.Pack)