package domain; import domain.sheets.*; import java.util.HashMap; public class Sheet { private String[] usedRows; private String[] canceledRows; private String[] emptyRows; // Sheet rows, first half Aces aces; Twos twos; Threes threes; Fours fours; Fives fives; Sixes sixes; // Sheet rows, second half ThreeOfKind threeOfKind; FourOfKind fourOfKind; FullHouse fullHouse; SmallStraight smallStraight; LargeStraight largeStraight; Yahtzee yahtzee; Chance chance; public Sheet(){ this.aces = new Aces(); this.twos = new Twos(); this.threes = new Threes(); this.fours = new Fours(); this.fives = new Fives(); this.sixes = new Sixes(); this.threeOfKind = new ThreeOfKind(); this.fourOfKind = new FourOfKind(); this.fullHouse = new FullHouse(); this.smallStraight = new SmallStraight(); this.largeStraight = new LargeStraight(); this.yahtzee = new Yahtzee(); this.chance = new Chance(); } public void writeCategory(String category) public HashMap getAllCategories(){ HashMap allCategories = new HashMap<>(); allCategories.put("Aces", aces); allCategories.put("Twos", twos); allCategories.put("Threes", threes); allCategories.put("Fours", fours); allCategories.put("Fives", fives); allCategories.put("Sixes", sixes); allCategories.put("ThreeOfKind", threeOfKind); allCategories.put("FourOfKind", fourOfKind); allCategories.put("FullHouse", fullHouse); allCategories.put("SmallStraight", smallStraight); allCategories.put("LargeStraight", largeStraight); allCategories.put("Yahtzee", yahtzee); allCategories.put("Chance", chance); return allCategories; } }