Don't complain about transitioning back to PRE_GAME.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@428 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -198,13 +198,15 @@ 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 function stateDidChange (state :int) :Boolean
|
||||
{
|
||||
switch (state) {
|
||||
case GameObject.PRE_GAME:
|
||||
return true;
|
||||
case GameObject.IN_PLAY:
|
||||
gameDidStart();
|
||||
return true;
|
||||
|
||||
@@ -207,6 +207,8 @@ public abstract class GameController extends PlaceController
|
||||
protected boolean stateDidChange (int state)
|
||||
{
|
||||
switch (state) {
|
||||
case GameObject.PRE_GAME:
|
||||
return true;
|
||||
case GameObject.IN_PLAY:
|
||||
gameDidStart();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user