1 7 8 package poker.spec; 9 10 import java.util.Vector ; 11 12 public interface GameList { 13 14 public void setUseDB(boolean useDB) throws Exception ; 15 public void addGame(PokerGame thisGame); 16 public void addGameToDB(PokerGame newGame) throws Exception ; 17 public void removeGame(String thisName); 18 public void removeDBGame(String name) throws Exception ; 19 public void removeMemoryGame(String name); 20 public PokerGame getGame(String name); 21 public boolean getIsNameUsed(String name); 22 public Vector getTopTen(); 23 public boolean authenticate(String name, String pw); 24 public boolean getIsNameUsedInDB(String name); 25 public boolean getIsNameUsedInMemory(String name); 26 public boolean authenticateInDB(String name, String pw); 27 public boolean authenticateInMemory (String name, String pw); 28 public PokerGame getGameInMemory(String name); 29 public Vector getTopTenInMemory(); 30 public void updateGame(PokerGame thisGame); 31 public int getCount(); 32 public Vector getTopTenInDB(); 33 public int getRank(int cash); 34 35 } | Popular Tags |