GameStateInterface added and GamePlay moved to GamePlay(GameStateInterface) class.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
/bin
|
||||
@@ -1,38 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="mangavalk.tetris"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0" >
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="13"
|
||||
android:targetSdkVersion="19" />
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
|
||||
<meta-data android:name="com.google.android.gms.version"
|
||||
android:value="@integer/google_play_services_version"/>
|
||||
|
||||
<activity
|
||||
android:name="mangavalk.tetris.MainActivity"
|
||||
android:label="@string/app_name"
|
||||
android:screenOrientation="portrait"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<activity android:name="com.google.android.gms.ads.AdActivity"
|
||||
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
@@ -1,148 +0,0 @@
|
||||
int attr adSize 0x7f010000
|
||||
int attr adSizes 0x7f010001
|
||||
int attr adUnitId 0x7f010002
|
||||
int attr cameraBearing 0x7f010004
|
||||
int attr cameraTargetLat 0x7f010005
|
||||
int attr cameraTargetLng 0x7f010006
|
||||
int attr cameraTilt 0x7f010007
|
||||
int attr cameraZoom 0x7f010008
|
||||
int attr mapType 0x7f010003
|
||||
int attr uiCompass 0x7f010009
|
||||
int attr uiRotateGestures 0x7f01000a
|
||||
int attr uiScrollGestures 0x7f01000b
|
||||
int attr uiTiltGestures 0x7f01000c
|
||||
int attr uiZoomControls 0x7f01000d
|
||||
int attr uiZoomGestures 0x7f01000e
|
||||
int attr useViewLifecycle 0x7f01000f
|
||||
int attr zOrderOnTop 0x7f010010
|
||||
int color common_action_bar_splitter 0x7f040009
|
||||
int color common_signin_btn_dark_text_default 0x7f040000
|
||||
int color common_signin_btn_dark_text_disabled 0x7f040002
|
||||
int color common_signin_btn_dark_text_focused 0x7f040003
|
||||
int color common_signin_btn_dark_text_pressed 0x7f040001
|
||||
int color common_signin_btn_default_background 0x7f040008
|
||||
int color common_signin_btn_light_text_default 0x7f040004
|
||||
int color common_signin_btn_light_text_disabled 0x7f040006
|
||||
int color common_signin_btn_light_text_focused 0x7f040007
|
||||
int color common_signin_btn_light_text_pressed 0x7f040005
|
||||
int color common_signin_btn_text_dark 0x7f04000a
|
||||
int color common_signin_btn_text_light 0x7f04000b
|
||||
int dimen activity_horizontal_margin 0x7f080000
|
||||
int dimen activity_vertical_margin 0x7f080001
|
||||
int drawable common_signin_btn_icon_dark 0x7f020000
|
||||
int drawable common_signin_btn_icon_disabled_dark 0x7f020001
|
||||
int drawable common_signin_btn_icon_disabled_focus_dark 0x7f020002
|
||||
int drawable common_signin_btn_icon_disabled_focus_light 0x7f020003
|
||||
int drawable common_signin_btn_icon_disabled_light 0x7f020004
|
||||
int drawable common_signin_btn_icon_focus_dark 0x7f020005
|
||||
int drawable common_signin_btn_icon_focus_light 0x7f020006
|
||||
int drawable common_signin_btn_icon_light 0x7f020007
|
||||
int drawable common_signin_btn_icon_normal_dark 0x7f020008
|
||||
int drawable common_signin_btn_icon_normal_light 0x7f020009
|
||||
int drawable common_signin_btn_icon_pressed_dark 0x7f02000a
|
||||
int drawable common_signin_btn_icon_pressed_light 0x7f02000b
|
||||
int drawable common_signin_btn_text_dark 0x7f02000c
|
||||
int drawable common_signin_btn_text_disabled_dark 0x7f02000d
|
||||
int drawable common_signin_btn_text_disabled_focus_dark 0x7f02000e
|
||||
int drawable common_signin_btn_text_disabled_focus_light 0x7f02000f
|
||||
int drawable common_signin_btn_text_disabled_light 0x7f020010
|
||||
int drawable common_signin_btn_text_focus_dark 0x7f020011
|
||||
int drawable common_signin_btn_text_focus_light 0x7f020012
|
||||
int drawable common_signin_btn_text_light 0x7f020013
|
||||
int drawable common_signin_btn_text_normal_dark 0x7f020014
|
||||
int drawable common_signin_btn_text_normal_light 0x7f020015
|
||||
int drawable common_signin_btn_text_pressed_dark 0x7f020016
|
||||
int drawable common_signin_btn_text_pressed_light 0x7f020017
|
||||
int drawable f0 0x7f020018
|
||||
int drawable f1 0x7f020019
|
||||
int drawable f2 0x7f02001a
|
||||
int drawable f3 0x7f02001b
|
||||
int drawable f4 0x7f02001c
|
||||
int drawable f5 0x7f02001d
|
||||
int drawable f6 0x7f02001e
|
||||
int drawable f7 0x7f02001f
|
||||
int drawable f8 0x7f020020
|
||||
int drawable f9 0x7f020021
|
||||
int drawable ic_launcher 0x7f020022
|
||||
int drawable ic_plusone_medium_off_client 0x7f020023
|
||||
int drawable ic_plusone_small_off_client 0x7f020024
|
||||
int drawable ic_plusone_standard_off_client 0x7f020025
|
||||
int drawable ic_plusone_tall_off_client 0x7f020026
|
||||
int drawable sprite_b 0x7f020027
|
||||
int drawable sprite_blockline 0x7f020028
|
||||
int drawable sprite_controler 0x7f020029
|
||||
int drawable sprite_freeversion 0x7f02002a
|
||||
int drawable sprite_gameover 0x7f02002b
|
||||
int drawable sprite_i1 0x7f02002c
|
||||
int drawable sprite_i1r 0x7f02002d
|
||||
int drawable sprite_i2 0x7f02002e
|
||||
int drawable sprite_i2r 0x7f02002f
|
||||
int drawable sprite_i3 0x7f020030
|
||||
int drawable sprite_i3r 0x7f020031
|
||||
int drawable sprite_i4 0x7f020032
|
||||
int drawable sprite_i4r 0x7f020033
|
||||
int drawable sprite_l1 0x7f020034
|
||||
int drawable sprite_l2 0x7f020035
|
||||
int drawable sprite_s 0x7f020036
|
||||
int drawable sprite_score 0x7f020037
|
||||
int drawable sprite_t 0x7f020038
|
||||
int drawable sprite_z 0x7f020039
|
||||
int id action_settings 0x7f050005
|
||||
int id hybrid 0x7f050004
|
||||
int id none 0x7f050000
|
||||
int id normal 0x7f050001
|
||||
int id satellite 0x7f050002
|
||||
int id terrain 0x7f050003
|
||||
int integer google_play_services_version 0x7f070000
|
||||
int menu main 0x7f0a0000
|
||||
int raw tetris_a 0x7f030000
|
||||
int string action_settings 0x7f06001b
|
||||
int string app_name 0x7f06001a
|
||||
int string auth_client_needs_enabling_title 0x7f060015
|
||||
int string auth_client_needs_installation_title 0x7f060016
|
||||
int string auth_client_needs_update_title 0x7f060017
|
||||
int string auth_client_play_services_err_notification_msg 0x7f060018
|
||||
int string auth_client_requested_by_msg 0x7f060019
|
||||
int string auth_client_using_bad_version_title 0x7f060014
|
||||
int string common_google_play_services_enable_button 0x7f060006
|
||||
int string common_google_play_services_enable_text 0x7f060005
|
||||
int string common_google_play_services_enable_title 0x7f060004
|
||||
int string common_google_play_services_install_button 0x7f060003
|
||||
int string common_google_play_services_install_text_phone 0x7f060001
|
||||
int string common_google_play_services_install_text_tablet 0x7f060002
|
||||
int string common_google_play_services_install_title 0x7f060000
|
||||
int string common_google_play_services_invalid_account_text 0x7f06000c
|
||||
int string common_google_play_services_invalid_account_title 0x7f06000b
|
||||
int string common_google_play_services_network_error_text 0x7f06000a
|
||||
int string common_google_play_services_network_error_title 0x7f060009
|
||||
int string common_google_play_services_unknown_issue 0x7f06000d
|
||||
int string common_google_play_services_unsupported_date_text 0x7f060010
|
||||
int string common_google_play_services_unsupported_text 0x7f06000f
|
||||
int string common_google_play_services_unsupported_title 0x7f06000e
|
||||
int string common_google_play_services_update_button 0x7f060011
|
||||
int string common_google_play_services_update_text 0x7f060008
|
||||
int string common_google_play_services_update_title 0x7f060007
|
||||
int string common_signin_button_text 0x7f060012
|
||||
int string common_signin_button_text_long 0x7f060013
|
||||
int string hello_world 0x7f06001c
|
||||
int style AppBaseTheme 0x7f090000
|
||||
int style AppTheme 0x7f090001
|
||||
int[] styleable AdsAttrs { 0x7f010000, 0x7f010001, 0x7f010002 }
|
||||
int styleable AdsAttrs_adSize 0
|
||||
int styleable AdsAttrs_adSizes 1
|
||||
int styleable AdsAttrs_adUnitId 2
|
||||
int[] styleable MapAttrs { 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f, 0x7f010010 }
|
||||
int styleable MapAttrs_cameraBearing 1
|
||||
int styleable MapAttrs_cameraTargetLat 2
|
||||
int styleable MapAttrs_cameraTargetLng 3
|
||||
int styleable MapAttrs_cameraTilt 4
|
||||
int styleable MapAttrs_cameraZoom 5
|
||||
int styleable MapAttrs_mapType 0
|
||||
int styleable MapAttrs_uiCompass 6
|
||||
int styleable MapAttrs_uiRotateGestures 7
|
||||
int styleable MapAttrs_uiScrollGestures 8
|
||||
int styleable MapAttrs_uiTiltGestures 9
|
||||
int styleable MapAttrs_uiZoomControls 10
|
||||
int styleable MapAttrs_uiZoomGestures 11
|
||||
int styleable MapAttrs_useViewLifecycle 12
|
||||
int styleable MapAttrs_zOrderOnTop 13
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,3 +0,0 @@
|
||||
# cache for current jar dependency. DO NOT EDIT.
|
||||
# format is <lastModified> <length> <SHA-1> <path>
|
||||
# Encoding is UTF-8
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.7 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 8.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB |
Binary file not shown.
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