intergration of switchable abstract classes
This commit is contained in:
@@ -91,6 +91,28 @@ public class GamePlay extends GameStateInterface
|
||||
canvasView.OnGameStateChanged(GameState);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void SetGameState(int gameState, boolean isPostBack)
|
||||
{
|
||||
GameState = gameState;
|
||||
|
||||
switch(GameState)
|
||||
{
|
||||
case GS_LOAD:
|
||||
{
|
||||
Load();
|
||||
break;
|
||||
}
|
||||
case GS_START:
|
||||
{
|
||||
StartGame();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
canvasView.OnGameStateChanged(GameState, isPostBack);
|
||||
}
|
||||
|
||||
// Set
|
||||
@Override
|
||||
public void SetCanvas(CanvasView _CanvasView)
|
||||
|
||||
Reference in New Issue
Block a user