player
Class ZIPlayer
java.lang.Object
player.Player
player.ZIPlayer
- Direct Known Subclasses:
- ZIFirm
public class ZIPlayer
- extends Player
- Author:
- tratch
Constructor Summary |
ZIPlayer(java.lang.String name,
boolean pBool)
Constructor |
Methods inherited from class player.Player |
addToInventory, browseInventory, clearFromInventory, clearInventory, clearValueFunction, getInventory, getPlayerName, getValue, printInventory, removeFromInventory, setBudget, setPlayerName, setValue |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZIPlayer
public ZIPlayer(java.lang.String name,
boolean pBool)
- Constructor
- Parameters:
name
- pBool
-
makeAsk
public Ask makeAsk(Ask theAsk,
Market theMarket)
- Specified by:
makeAsk
in class Player
- Returns:
- An Ask under the given market conditions
makeBid
public Bid makeBid(Bid theBid,
Market theMarket)
- Specified by:
makeBid
in class Player
- Returns:
- A bid under the given market conditions
isConstrained
public boolean isConstrained()
- Returns:
- True if the player is constrained, false otherwise
setConstrained
public void setConstrained(boolean constrained)
- Parameters:
constrained
-