From e91d6b23c288286e8731bffe49f1b63288d2c251 Mon Sep 17 00:00:00 2001 From: Daniel Mills Date: Tue, 12 Jul 2016 10:37:13 -0400 Subject: [PATCH] Tweak base Game object --- .../java/org/cyberpwn/phantom/game/PhantomGame.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/cyberpwn/phantom/game/PhantomGame.java b/src/main/java/org/cyberpwn/phantom/game/PhantomGame.java index 9498aad19..ba7e6656b 100644 --- a/src/main/java/org/cyberpwn/phantom/game/PhantomGame.java +++ b/src/main/java/org/cyberpwn/phantom/game/PhantomGame.java @@ -1,22 +1,26 @@ package org.cyberpwn.phantom.game; import org.bukkit.entity.Player; +import org.cyberpwn.phantom.construct.Controllable; +import org.cyberpwn.phantom.construct.Controller; import org.cyberpwn.phantom.lang.GList; import org.cyberpwn.phantom.util.C; -public class PhantomGame, P extends GamePlayer> implements Game +public class PhantomGame, P extends GamePlayer> extends Controller implements Game { private GList teams; private GList

gamePlayers; private GList players; - public PhantomGame() + public PhantomGame(Controllable parentController) { + super(parentController); + this.teams = new GList(); this.players = new GList(); this.gamePlayers = new GList

(); } - + @Override public GList getTeams() {