Loading .idea/modules/app/AriTetrisburg.app.iml +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ <facet type="android-gradle" name="Android-Gradle"> <configuration> <option name="GRADLE_PROJECT_PATH" value=":app" /> <option name="LAST_SUCCESSFUL_SYNC_AGP_VERSION" value="7.4.2" /> <option name="LAST_SUCCESSFUL_SYNC_AGP_VERSION" /> <option name="LAST_KNOWN_AGP_VERSION" value="7.4.2" /> </configuration> </facet> Loading .idea/modules/app/AriTetrisburg.app.main.iml +0 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,6 @@ <content url="file://$MODULE_DIR$/../../../app/build/generated/aidl_source_output_dir/debug/out" /> <content url="file://$MODULE_DIR$/../../../app/build/generated/ap_generated_sources/debug/out"> <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/ap_generated_sources/debug/out" isTestSource="false" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/ap_generated_sources/debug/out" isTestSource="false" generated="true" /> </content> <content url="file://$MODULE_DIR$/../../../app/build/generated/renderscript_source_output_dir/debug/out" /> <content url="file://$MODULE_DIR$/../../../app/build/generated/res/resValues/debug"> Loading @@ -29,7 +28,6 @@ <content url="file://$MODULE_DIR$/../../../app/build/generated/res/rs/debug" /> <content url="file://$MODULE_DIR$/../../../app/build/generated/source/buildConfig/debug"> <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" /> </content> <content url="file://$MODULE_DIR$/../../../app/src/debug" /> <content url="file://$MODULE_DIR$/../../../app/src/main"> Loading .idea/workspace.xml +23 −17 Original line number Diff line number Diff line Loading @@ -10,14 +10,14 @@ </component> <component name="ChangeListManager"> <list default="true" id="8333e8ef-d99f-4734-9d8f-4661acd87ba6" name="Changes" comment="initial setup of all screens (activities)"> <change beforePath="$PROJECT_DIR$/.gradle/7.5/executionHistory/executionHistory.lock" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/7.5/executionHistory/executionHistory.lock" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.gradle/7.5/fileHashes/fileHashes.bin" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/7.5/fileHashes/fileHashes.bin" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.gradle/7.5/fileHashes/fileHashes.lock" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/7.5/fileHashes/fileHashes.lock" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.gradle/buildOutputCleanup/buildOutputCleanup.lock" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/buildOutputCleanup/buildOutputCleanup.lock" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/modules/app/AriTetrisburg.app.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/modules/app/AriTetrisburg.app.iml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/modules/app/AriTetrisburg.app.main.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/modules/app/AriTetrisburg.app.main.iml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/app/src/main/AndroidManifest.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/AndroidManifest.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/app/src/main/java/com/example/aritetrisburg/EnterNameScreen.java" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/com/example/aritetrisburg/EnterNameScreen.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/app/src/main/res/layout/home_screen.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/layout/home_screen.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/app/src/main/res/values/strings.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/values/strings.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/app/src/main/res/values/themes.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/values/themes.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/local.properties" beforeDir="false" afterPath="$PROJECT_DIR$/local.properties" afterDir="false" /> </list> <option name="SHOW_DIALOG" value="false" /> <option name="HIGHLIGHT_CONFLICTS" value="true" /> Loading Loading @@ -96,25 +96,28 @@ <option name="hideEmptyMiddlePackages" value="true" /> <option name="showLibraryContents" value="true" /> </component> <component name="PropertiesComponent">{ "keyToString": { "RunOnceActivity.OpenProjectViewOnStart": "true", "RunOnceActivity.ShowReadmeOnStart": "true", "RunOnceActivity.cidr.known.project.marker": "true", "android-custom-viewC:/Users/peng_/AppData/Local/Android/Sdk/sources/android-33/android/widget/Button.java_SELECTED": "Button", "cidr.known.project.marker": "true", "last_directory_selection": "C:/Users/Jilin/Desktop/group3project/app/src/main/res/drawable", "last_opened_file_path": "C:/Users/peng_/AndroidStudioProjects/PlayboyBunny", "settings.editor.selected.configurable": "vcs.Git" <component name="PropertiesComponent"><![CDATA[{ "keyToString": { "RunOnceActivity.OpenProjectViewOnStart": "true", "RunOnceActivity.ShowReadmeOnStart": "true", "RunOnceActivity.cidr.known.project.marker": "true", "android-custom-viewC:/Users/peng_/AppData/Local/Android/Sdk/sources/android-33/android/widget/Button.java_SELECTED": "Button", "cidr.known.project.marker": "true", "last_directory_selection": "C:/Users/Jilin/Desktop/group3project/app/src/main/res/drawable", "last_opened_file_path": "C:/Users/Jilin/Desktop/group3project/app/src/main/res/layout", "settings.editor.selected.configurable": "vcs.Git" } }</component> }]]></component> <component name="RecentsManager"> <key name="CreateClassDialog.RecentsKey"> <recent name="com.example.aritetrisburg" /> </key> <key name="CopyFile.RECENT_KEYS"> <recent name="C:\Users\Jilin\Desktop\group3project\app\src\main\res\layout" /> <recent name="C:\Users\Jilin\Desktop\group3project\app\src\main\res\values" /> <recent name="C:\Users\Jilin\Desktop\group3project\app\src\main\res" /> <recent name="C:\Users\Jilin\Desktop\group3project\app\src\main\res\drawable" /> <recent name="C:\Users\Jilin\Desktop\group3project\app\src\main\res\font" /> <recent name="C:\Users\Jilin\Desktop\group3project\app\src\main\java\com\example\aritetrisburg" /> </key> <key name="android.template.-851266308"> <recent name="com.example.aritetrisburg" /> Loading @@ -122,6 +125,9 @@ <key name="android.template.1438731553"> <recent name="com.example.aritetrisburg" /> </key> <key name="CopyClassDialog.RECENTS_KEY"> <recent name="com.example.aritetrisburg" /> </key> </component> <component name="RunManager"> <configuration name="app" type="AndroidRunConfigurationType" factoryName="Android App"> Loading app/src/main/AndroidManifest.xml +19 −1 Original line number Diff line number Diff line Loading @@ -11,9 +11,26 @@ android:supportsRtl="true" android:theme="@style/Theme.AriTetrisburg" tools:targetApi="31"> <activity android:name=".BasicBlock" android:exported="false" /> <activity android:name=".Coordinate" android:exported="false" /> <activity android:name=".DrawView" android:exported="false" /> <activity android:name=".GameOverScreen" android:name=".GameState" android:exported="false" /> <activity android:name=".MainActivity" android:exported="false" /> <activity android:name=".Tetramino" android:exported="false" /> <activity android:name=".ScoreLeaderboardScreen" android:exported="false" /> Loading @@ -39,6 +56,7 @@ <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest> No newline at end of file app/src/main/java/com/example/aritetrisburg/BasicBlock.java 0 → 100644 +52 −0 Original line number Diff line number Diff line package com.example.aritetrisburg; enum BasicBlockState { ON_EMPTY, ON_TETRAMINO } class BasicBlock { int colour; int tetraId; Coordinate coordinate; BasicBlockState state; BasicBlock(int row, int column) { this.colour = -1; this.tetraId = -1; this.coordinate = new Coordinate(row, column); this.state = BasicBlockState.ON_EMPTY; } BasicBlock(int colour, int tetraId, Coordinate coordinate, BasicBlockState state) { this.colour = colour; this.tetraId = tetraId; this.coordinate = coordinate; this.state = state; } BasicBlock copy() { return new BasicBlock(colour, tetraId, coordinate, state); } void set(BasicBlock B) { this.colour = B.colour; this.tetraId = B.tetraId; this.coordinate.y = B.coordinate.y; this.coordinate.x = B.coordinate.x; this.state = B.state; } void setEmptyBlock(Coordinate coordinate) { this.colour = -1; this.tetraId = -1; this.coordinate.x = coordinate.x; this.coordinate.y = coordinate.y; this.state = BasicBlockState.ON_EMPTY; } } Loading
.idea/modules/app/AriTetrisburg.app.iml +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ <facet type="android-gradle" name="Android-Gradle"> <configuration> <option name="GRADLE_PROJECT_PATH" value=":app" /> <option name="LAST_SUCCESSFUL_SYNC_AGP_VERSION" value="7.4.2" /> <option name="LAST_SUCCESSFUL_SYNC_AGP_VERSION" /> <option name="LAST_KNOWN_AGP_VERSION" value="7.4.2" /> </configuration> </facet> Loading
.idea/modules/app/AriTetrisburg.app.main.iml +0 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,6 @@ <content url="file://$MODULE_DIR$/../../../app/build/generated/aidl_source_output_dir/debug/out" /> <content url="file://$MODULE_DIR$/../../../app/build/generated/ap_generated_sources/debug/out"> <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/ap_generated_sources/debug/out" isTestSource="false" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/ap_generated_sources/debug/out" isTestSource="false" generated="true" /> </content> <content url="file://$MODULE_DIR$/../../../app/build/generated/renderscript_source_output_dir/debug/out" /> <content url="file://$MODULE_DIR$/../../../app/build/generated/res/resValues/debug"> Loading @@ -29,7 +28,6 @@ <content url="file://$MODULE_DIR$/../../../app/build/generated/res/rs/debug" /> <content url="file://$MODULE_DIR$/../../../app/build/generated/source/buildConfig/debug"> <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" /> </content> <content url="file://$MODULE_DIR$/../../../app/src/debug" /> <content url="file://$MODULE_DIR$/../../../app/src/main"> Loading
.idea/workspace.xml +23 −17 Original line number Diff line number Diff line Loading @@ -10,14 +10,14 @@ </component> <component name="ChangeListManager"> <list default="true" id="8333e8ef-d99f-4734-9d8f-4661acd87ba6" name="Changes" comment="initial setup of all screens (activities)"> <change beforePath="$PROJECT_DIR$/.gradle/7.5/executionHistory/executionHistory.lock" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/7.5/executionHistory/executionHistory.lock" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.gradle/7.5/fileHashes/fileHashes.bin" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/7.5/fileHashes/fileHashes.bin" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.gradle/7.5/fileHashes/fileHashes.lock" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/7.5/fileHashes/fileHashes.lock" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.gradle/buildOutputCleanup/buildOutputCleanup.lock" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/buildOutputCleanup/buildOutputCleanup.lock" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/modules/app/AriTetrisburg.app.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/modules/app/AriTetrisburg.app.iml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/modules/app/AriTetrisburg.app.main.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/modules/app/AriTetrisburg.app.main.iml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/app/src/main/AndroidManifest.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/AndroidManifest.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/app/src/main/java/com/example/aritetrisburg/EnterNameScreen.java" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/com/example/aritetrisburg/EnterNameScreen.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/app/src/main/res/layout/home_screen.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/layout/home_screen.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/app/src/main/res/values/strings.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/values/strings.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/app/src/main/res/values/themes.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/values/themes.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/local.properties" beforeDir="false" afterPath="$PROJECT_DIR$/local.properties" afterDir="false" /> </list> <option name="SHOW_DIALOG" value="false" /> <option name="HIGHLIGHT_CONFLICTS" value="true" /> Loading Loading @@ -96,25 +96,28 @@ <option name="hideEmptyMiddlePackages" value="true" /> <option name="showLibraryContents" value="true" /> </component> <component name="PropertiesComponent">{ "keyToString": { "RunOnceActivity.OpenProjectViewOnStart": "true", "RunOnceActivity.ShowReadmeOnStart": "true", "RunOnceActivity.cidr.known.project.marker": "true", "android-custom-viewC:/Users/peng_/AppData/Local/Android/Sdk/sources/android-33/android/widget/Button.java_SELECTED": "Button", "cidr.known.project.marker": "true", "last_directory_selection": "C:/Users/Jilin/Desktop/group3project/app/src/main/res/drawable", "last_opened_file_path": "C:/Users/peng_/AndroidStudioProjects/PlayboyBunny", "settings.editor.selected.configurable": "vcs.Git" <component name="PropertiesComponent"><![CDATA[{ "keyToString": { "RunOnceActivity.OpenProjectViewOnStart": "true", "RunOnceActivity.ShowReadmeOnStart": "true", "RunOnceActivity.cidr.known.project.marker": "true", "android-custom-viewC:/Users/peng_/AppData/Local/Android/Sdk/sources/android-33/android/widget/Button.java_SELECTED": "Button", "cidr.known.project.marker": "true", "last_directory_selection": "C:/Users/Jilin/Desktop/group3project/app/src/main/res/drawable", "last_opened_file_path": "C:/Users/Jilin/Desktop/group3project/app/src/main/res/layout", "settings.editor.selected.configurable": "vcs.Git" } }</component> }]]></component> <component name="RecentsManager"> <key name="CreateClassDialog.RecentsKey"> <recent name="com.example.aritetrisburg" /> </key> <key name="CopyFile.RECENT_KEYS"> <recent name="C:\Users\Jilin\Desktop\group3project\app\src\main\res\layout" /> <recent name="C:\Users\Jilin\Desktop\group3project\app\src\main\res\values" /> <recent name="C:\Users\Jilin\Desktop\group3project\app\src\main\res" /> <recent name="C:\Users\Jilin\Desktop\group3project\app\src\main\res\drawable" /> <recent name="C:\Users\Jilin\Desktop\group3project\app\src\main\res\font" /> <recent name="C:\Users\Jilin\Desktop\group3project\app\src\main\java\com\example\aritetrisburg" /> </key> <key name="android.template.-851266308"> <recent name="com.example.aritetrisburg" /> Loading @@ -122,6 +125,9 @@ <key name="android.template.1438731553"> <recent name="com.example.aritetrisburg" /> </key> <key name="CopyClassDialog.RECENTS_KEY"> <recent name="com.example.aritetrisburg" /> </key> </component> <component name="RunManager"> <configuration name="app" type="AndroidRunConfigurationType" factoryName="Android App"> Loading
app/src/main/AndroidManifest.xml +19 −1 Original line number Diff line number Diff line Loading @@ -11,9 +11,26 @@ android:supportsRtl="true" android:theme="@style/Theme.AriTetrisburg" tools:targetApi="31"> <activity android:name=".BasicBlock" android:exported="false" /> <activity android:name=".Coordinate" android:exported="false" /> <activity android:name=".DrawView" android:exported="false" /> <activity android:name=".GameOverScreen" android:name=".GameState" android:exported="false" /> <activity android:name=".MainActivity" android:exported="false" /> <activity android:name=".Tetramino" android:exported="false" /> <activity android:name=".ScoreLeaderboardScreen" android:exported="false" /> Loading @@ -39,6 +56,7 @@ <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest> No newline at end of file
app/src/main/java/com/example/aritetrisburg/BasicBlock.java 0 → 100644 +52 −0 Original line number Diff line number Diff line package com.example.aritetrisburg; enum BasicBlockState { ON_EMPTY, ON_TETRAMINO } class BasicBlock { int colour; int tetraId; Coordinate coordinate; BasicBlockState state; BasicBlock(int row, int column) { this.colour = -1; this.tetraId = -1; this.coordinate = new Coordinate(row, column); this.state = BasicBlockState.ON_EMPTY; } BasicBlock(int colour, int tetraId, Coordinate coordinate, BasicBlockState state) { this.colour = colour; this.tetraId = tetraId; this.coordinate = coordinate; this.state = state; } BasicBlock copy() { return new BasicBlock(colour, tetraId, coordinate, state); } void set(BasicBlock B) { this.colour = B.colour; this.tetraId = B.tetraId; this.coordinate.y = B.coordinate.y; this.coordinate.x = B.coordinate.x; this.state = B.state; } void setEmptyBlock(Coordinate coordinate) { this.colour = -1; this.tetraId = -1; this.coordinate.x = coordinate.x; this.coordinate.y = coordinate.y; this.state = BasicBlockState.ON_EMPTY; } }