summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/view/IGameListPanel.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/view/IGameListPanel.java')
-rw-r--r--src/jrummikub/view/IGameListPanel.java54
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