KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > poker > spec > GameList


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 GameList {
13
14 public void setUseDB(boolean useDB) throws Exception JavaDoc;
15 public void addGame(PokerGame thisGame);
16 public void addGameToDB(PokerGame newGame) throws Exception JavaDoc;
17 public void removeGame(String JavaDoc thisName);
18 public void removeDBGame(String JavaDoc name) throws Exception JavaDoc;
19 public void removeMemoryGame(String JavaDoc name);
20 public PokerGame getGame(String JavaDoc name);
21 public boolean getIsNameUsed(String JavaDoc name);
22 public Vector JavaDoc getTopTen();
23 public boolean authenticate(String JavaDoc name, String JavaDoc pw);
24 public boolean getIsNameUsedInDB(String JavaDoc name);
25 public boolean getIsNameUsedInMemory(String JavaDoc name);
26 public boolean authenticateInDB(String JavaDoc name, String JavaDoc pw);
27 public boolean authenticateInMemory (String JavaDoc name, String JavaDoc pw);
28 public PokerGame getGameInMemory(String JavaDoc name);
29 public Vector JavaDoc getTopTenInMemory();
30 public void updateGame(PokerGame thisGame);
31 public int getCount();
32 public Vector JavaDoc getTopTenInDB();
33 public int getRank(int cash);
34
35 }
Popular Tags