diff options
author | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-06-11 00:02:42 +0200 |
---|---|---|
committer | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-06-11 00:02:42 +0200 |
commit | cc4797fd8b894cc7e02346dc93f891cccb4c0a09 (patch) | |
tree | cfa8d3777d8b07ce488573a80ae04ff5aeed1775 /src/jrummikub/view/IGameListPanel.java | |
parent | 9c553786f2e0e395149a5ef5e27d24d7d944fe3e (diff) | |
download | JRummikub-cc4797fd8b894cc7e02346dc93f891cccb4c0a09.tar JRummikub-cc4797fd8b894cc7e02346dc93f891cccb4c0a09.zip |
Netzwerk hat Panel mit laufenden Spielen und einem funktionierenden Abbrechen-Button
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@406 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/view/IGameListPanel.java')
-rw-r--r-- | src/jrummikub/view/IGameListPanel.java | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/jrummikub/view/IGameListPanel.java b/src/jrummikub/view/IGameListPanel.java new file mode 100644 index 0000000..adb754b --- /dev/null +++ b/src/jrummikub/view/IGameListPanel.java @@ -0,0 +1,54 @@ +package jrummikub.view; + +import java.util.UUID; + +import jrummikub.util.Event; +import jrummikub.util.Event1; +import jrummikub.util.IEvent; +import jrummikub.util.IEvent1; +import jrummikub.view.IGameListPanel.GameData; + +public interface IGameListPanel { + public static class GameData { + private UUID gameID; + private String host; + private int currentPlayerCount = 0; + private int maxPlayerCount = 0; + + public GameData(UUID gameID, String host) { + this.gameID = gameID; + this.host = host; + + } + + public void setCurrentPlayerCount(int i) { + currentPlayerCount = i; + } + + public int getCurrentPlayerCount() { + return currentPlayerCount; + } + + public void setMaxPlayerCount(int i) { + maxPlayerCount = i; + } + + public int getMaxPlayerCount() { + return maxPlayerCount; + } + + public String getHost() { + return host; + } + + public UUID getGameID() { + return gameID; + } + } + + public IEvent getOpenNewGameEvent(); + + public IEvent getCancelEvent(); + + public IEvent1<GameData> getJoinEvent(); +}
\ No newline at end of file |