/**
* Author: Joshua McMillen
*/
package games.blackjack;
import java.util.ArrayList;
import game.Card;
import games.blackjack.commands.CommandList;
import games.blackjack.commands.BuildPlayerList;
/**
* Controller for User (Player)
*/
public class User
{
//initialize currency, bet, commands, and hand
private int currency;
private int bet;
private CommandList commL = new CommandList();
private ArrayList<Card> hand;
//construct commands, set currency, and set bet
public User()
{
BuildPlayerList commB = new BuildPlayerList();
commB.createList(commL);
setCurrency(100);
setBet(25);
setHand(new ArrayList<Card>());
}
//returns bet
public int getBet()
{
return bet;
}
//sets bet
public void setBet(int bet)
{
this.bet = bet;
}
//returns currency
public int getCurrency()
{
return currency;
}
//sets currency
public void setCurrency(int currency)
{
this.currency = currency;
}
//returns hand
public ArrayList<Card> getHand()
{
return hand;
}
//sets hand
public void setHand(ArrayList<Card> hand)
{
this.hand = hand;
}
//returns commands
public CommandList getCommL()
{
return commL;
}
//sets commands
public void setCommL(CommandList commL)
{
this.commL = commL;
}
}