KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > poker > data > game > PitBossVDO


1 package poker.data.game;
2
3 import java.util.Vector JavaDoc;
4
5 /**
6  *
7  * EnhyDraw!, beta 4, 5/21/99
8  *
9  * Copyright 1999, Larry Wolcot & Daryl Tempesta
10  * ALL rights reserved. Not for commercial use
11  * without written permission from both authors.
12  *
13  * Forgive the lack of docs and CR's in the Data Objects.
14  * I don't have a lot of time for this project, and this
15  * should be easy enough to figure out
16  */

17 public class PitBossVDO implements java.io.Serializable JavaDoc {
18     private String JavaDoc gameName= "";
19     private int totalDollars = 0;
20     private int totalBankrupt = 0;
21     private int totalHandsDealt = 1;
22     private int totalHandsWon = 0;
23
24    /**
25     * Basic Constructor
26     */

27     public PitBossVDO(){
28     }
29
30     //basic "SET" encapsulation methods for this object.
31
public void setGameName(String JavaDoc gameName){
32     this.gameName = gameName;
33     }
34
35     public void setTotalDollars(int totalDollars){
36     this.totalDollars = totalDollars;
37     }
38
39     public void setTotalBankrupt(int totalBankrupt){
40     this.totalBankrupt = totalBankrupt;
41     }
42
43     public void setTotalHandsDealt(int totalHandsDealt){
44     this.totalHandsDealt = totalHandsDealt;
45     }
46
47     public void setTotalHandsWon(int totalHandsWon){
48     this.totalHandsWon = totalHandsWon;
49     }
50
51     //basic "GET" encapsulation methods for this object.
52
public String JavaDoc getGameName(){
53     return gameName;
54     }
55
56     public int getTotalDollars(){
57     return totalDollars;
58     }
59
60     public int getTotalHandsDealt(){
61     return totalHandsDealt;
62     }
63
64     public int getTotalBankrupt(){
65     return totalBankrupt;
66     }
67
68     public int getTotalHandsWon(){
69     return totalHandsWon;
70     }
71
72 }
73
Popular Tags