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
|
* Derived classes can override this method if they add additional game states and should
|
||||||
* states and should handle transitions to those states, returning true to
|
* handle transitions to those states, returning true to indicate they were handled and calling
|
||||||
* indicate they were handled and calling super for the normal game states.
|
* super for the normal game states.
|
||||||
*/
|
*/
|
||||||
protected function stateDidChange (state :int) :Boolean
|
protected function stateDidChange (state :int) :Boolean
|
||||||
{
|
{
|
||||||
switch (state) {
|
switch (state) {
|
||||||
|
case GameObject.PRE_GAME:
|
||||||
|
return true;
|
||||||
case GameObject.IN_PLAY:
|
case GameObject.IN_PLAY:
|
||||||
gameDidStart();
|
gameDidStart();
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -207,6 +207,8 @@ public abstract class GameController extends PlaceController
|
|||||||
protected boolean stateDidChange (int state)
|
protected boolean stateDidChange (int state)
|
||||||
{
|
{
|
||||||
switch (state) {
|
switch (state) {
|
||||||
|
case GameObject.PRE_GAME:
|
||||||
|
return true;
|
||||||
case GameObject.IN_PLAY:
|
case GameObject.IN_PLAY:
|
||||||
gameDidStart();
|
gameDidStart();
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user