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
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user