From 5225eb2a435d111c148b44c18da25dfeb98510f5 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 20 Dec 2005 21:01:36 +0000 Subject: [PATCH] Changed handleStateChange() to stateDidChange() to be more consistent with gameDidStart(), etc. and with the new GameManager.stateDidChange(). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3789 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../threerings/parlor/game/client/GameController.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/java/com/threerings/parlor/game/client/GameController.java b/src/java/com/threerings/parlor/game/client/GameController.java index 712f373ff..51506472f 100644 --- a/src/java/com/threerings/parlor/game/client/GameController.java +++ b/src/java/com/threerings/parlor/game/client/GameController.java @@ -199,7 +199,7 @@ public abstract class GameController extends PlaceController { // deal with game state changes if (event.getName().equals(GameObject.STATE)) { - if (!handleStateChange(event.getIntValue())) { + if (!stateDidChange(event.getIntValue())) { Log.warning("Game transitioned to unknown state " + "[gobj=" + _gobj + ", state=" + event.getIntValue() + "]."); @@ -208,12 +208,11 @@ public abstract class GameController extends PlaceController } /** - * Derived classes can override this method if they add additional - * game states and should handle transitions to those states, - * returning true to indicate they were handled and calling super for - * the normal game states. + * Derived classes can override this method if they add additional game + * states and should handle transitions to those states, returning true to + * indicate they were handled and calling super for the normal game states. */ - protected boolean handleStateChange (int state) + protected boolean stateDidChange (int state) { switch (state) { case GameObject.IN_PLAY: