01: /*
02: * poker
03: *
04: * Enhydra super-servlet specification object
05: *
06: */
07:
08: package poker.spec;
09:
10: import java.util.Vector;
11:
12: public interface GameManager {
13: public void setUseDB(boolean useDB) throws Exception;
14:
15: public String getTotalBankrupt();
16:
17: public String getHouseProfit();
18:
19: public String getTotalPlayers();
20:
21: public String getTotalHandsDealt();
22:
23: public String getTotalHandsWon();
24:
25: public String getTotalHandsLost();
26:
27: public void setTotalHandsWon(int n);
28:
29: public void setTotalBankrupt(int n);
30:
31: public void setHandsDealt(int n);
32:
33: public void setDollars(int n);
34:
35: public void setTotalDollars(int n);
36:
37: public Vector getGameList();
38:
39: public int getCount();
40:
41: public Vector getTopTen();
42:
43: public boolean getIsNameUsed(String name);
44:
45: public boolean authenticate(String name, String pw);
46:
47: public PokerGame getGame(String name);
48:
49: public void addGame(PokerGame newGame);
50:
51: public int getRank(int cash);
52:
53: public void removeGame(String name);
54:
55: public void updateGame(PokerGame thisGame);
56: }
|