diff options
Diffstat (limited to 'same-android')
-rw-r--r-- | same-android/src/main/java/com/orbekk/GameController.java | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/same-android/src/main/java/com/orbekk/GameController.java b/same-android/src/main/java/com/orbekk/GameController.java index 01ad24d..8e1e169 100644 --- a/same-android/src/main/java/com/orbekk/GameController.java +++ b/same-android/src/main/java/com/orbekk/GameController.java @@ -1,5 +1,32 @@ package com.orbekk; -public class GameController { +import java.util.ArrayList; +import java.util.List; + +import android.graphics.Paint; +public class GameController { + private List<Player> players = new ArrayList<Player>(); + private Player localPlayer; + + public static class Player { + public Paint color; + public int posX; + public int posY; + } + + public GameController(Player localPlayer) { + this.localPlayer = localPlayer; + } + + public Player getLocalPlayer() { + return localPlayer; + } + + public List<Player> getRemotePlayers() { + return players; + } + + + } |