Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package game;
- import java.util.ArrayList;
- /**
- *
- * @author Jesper Nee
- * This class is the template for the Player object
- * Start with 100 "money"
- */
- public class Player {
- private String name = null;
- private int money = 0;
- private int bet = 0;
- ArrayList<String> playerHand = new ArrayList<String>();
- public Player(String _name) {
- name = _name;
- money = 100;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public int getMoney() {
- return money;
- }
- public void setMoney(int money) {
- this.money = money;
- }
- public int getBet() {
- return bet;
- }
- public void setBet(int bet) {
- this.bet = bet;
- }
- public String toString() {
- return name + " " + playerHand;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement