GameStateInterface added and GamePlay moved to GamePlay(GameStateInterface) class.
This commit is contained in:
1 parent
a303e6afc6
commit
adb19d7e82
43 files changed
+1991
-2012
No files matched your search
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,38 @@
|
||||
package mangavalk.tetris;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.graphics.Canvas;
|
||||
|
||||
public interface GameStateInterface
|
||||
{
|
||||
// GameState Parameters
|
||||
final int GS_STOPPED = 0;
|
||||
final int GS_LOADING = 1;
|
||||
final int GS_PLAYING = 2;
|
||||
final int GS_GAMEOVER = 3;
|
||||
final int GS_PAUSED = 4;
|
||||
final int GS_START = 5;
|
||||
final int GS_LOAD = 6;
|
||||
final int GS_READY = 7;
|
||||
|
||||
// Methods.
|
||||
public void DrawFrame(Canvas canvas);
|
||||
|
||||
public void SendMove(float x,float y, boolean pointerUp);
|
||||
|
||||
public void SetGameState(int gameState);
|
||||
|
||||
public void onPause();
|
||||
|
||||
// SetParameters.
|
||||
public void SetActivity(Activity activity);
|
||||
|
||||
public void SetCanvas(CanvasView _CanvasView);
|
||||
|
||||
public void SetStartLevel(int startLevel);
|
||||
|
||||
public void SetPayedVersion(boolean payedVersion);
|
||||
|
||||
// Get
|
||||
public int GetGameState();
|
||||
}
|
||||
@@ -71,7 +71,7 @@ public class MainActivity extends Activity
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
canvasClass.onResume();
|
||||
//canvasClass.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user