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
|
// deal with game state changes
|
||||||
if (event.getName().equals(GameObject.STATE)) {
|
if (event.getName().equals(GameObject.STATE)) {
|
||||||
if (!handleStateChange(event.getIntValue())) {
|
if (!stateDidChange(event.getIntValue())) {
|
||||||
Log.warning("Game transitioned to unknown state " +
|
Log.warning("Game transitioned to unknown state " +
|
||||||
"[gobj=" + _gobj +
|
"[gobj=" + _gobj +
|
||||||
", state=" + event.getIntValue() + "].");
|
", state=" + event.getIntValue() + "].");
|
||||||
@@ -208,12 +208,11 @@ public abstract class GameController extends PlaceController
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Derived classes can override this method if they add additional
|
* Derived classes can override this method if they add additional game
|
||||||
* game states and should handle transitions to those states,
|
* states and should handle transitions to those states, returning true to
|
||||||
* returning true to indicate they were handled and calling super for
|
* indicate they were handled and calling super for the normal game states.
|
||||||
* the normal game states.
|
|
||||||
*/
|
*/
|
||||||
protected boolean handleStateChange (int state)
|
protected boolean stateDidChange (int state)
|
||||||
{
|
{
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case GameObject.IN_PLAY:
|
case GameObject.IN_PLAY:
|
||||||
|
|||||||
Reference in New Issue
Block a user