KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > poker > spec > GameManager


1 /*
2  * poker
3  *
4  * Enhydra super-servlet specification object
5  *
6  */

7
8 package poker.spec;
9
10 import java.util.Vector JavaDoc;
11
12 public interface GameManager {
13 public void setUseDB(boolean useDB) throws Exception JavaDoc;
14 public String JavaDoc getTotalBankrupt();
15 public String JavaDoc getHouseProfit();
16 public String JavaDoc getTotalPlayers();
17 public String JavaDoc getTotalHandsDealt();
18 public String JavaDoc getTotalHandsWon();
19 public String JavaDoc getTotalHandsLost();
20 public void setTotalHandsWon(int n);
21 public void setTotalBankrupt(int n);
22 public void setHandsDealt(int n);
23 public void setDollars(int n);
24 public void setTotalDollars(int n);
25 public Vector JavaDoc getGameList();
26 public int getCount();
27 public Vector JavaDoc getTopTen();
28 public boolean getIsNameUsed(String JavaDoc name);
29 public boolean authenticate(String JavaDoc name, String JavaDoc pw);
30 public PokerGame getGame(String JavaDoc name) ;
31 public void addGame(PokerGame newGame);
32 public int getRank(int cash);
33 public void removeGame(String JavaDoc name);
34 public void updateGame(PokerGame thisGame);
35 }
Popular Tags