KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > poker > data > other > Fortune


1 /**
2  * EnhyDraw!, beta 4, 5/21/99
3  *
4  * Copyright 1999, Larry Wolcot & Daryl Tempesta
5  * ALL rights reserved. Not for commercial use
6  * without written permission from both authors.
7  *
8  */

9
10 package poker.data.other;
11
12 public class Fortune{
13     private int fortuneNumber;
14     private boolean hasBeenUsed;
15     private String JavaDoc fortune;
16
17     public Fortune(int fortuneNumber, String JavaDoc fortune){
18     this.fortuneNumber = fortuneNumber;
19     this.fortune = fortune;
20     this.hasBeenUsed = false;
21     }
22
23     public String JavaDoc 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 JavaDoc 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