1 9 10 package poker.data.other; 11 12 public class Fortune{ 13 private int fortuneNumber; 14 private boolean hasBeenUsed; 15 private String fortune; 16 17 public Fortune(int fortuneNumber, String fortune){ 18 this.fortuneNumber = fortuneNumber; 19 this.fortune = fortune; 20 this.hasBeenUsed = false; 21 } 22 23 public String getFortune(){ 24 return fortune; 25 } 26 27 public boolean getHasBeenUsed(){ 28 return hasBeenUsed; 29 } 30 31 public int getFortuneNumber(){ 32 return fortuneNumber; 33 } 34 35 public void setFortune(String fortune){ 36 this.fortune = fortune; 37 } 38 39 public void setFortuneNumber(int fortuneNumber){ 40 this.fortuneNumber = fortuneNumber; 41 } 42 43 public void setHasBeenUsed(boolean hasBeenUsed){ 44 this.hasBeenUsed = hasBeenUsed; 45 } 46 47 } 48 | Popular Tags |