From ee9c7561f73f9204ddd1af744168a12ea1fb10b8 Mon Sep 17 00:00:00 2001 From: js Date: Thu, 11 May 2023 13:12:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=AD=96=E7=95=A5=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/net/imshit/aircraftwar/logic/game/EasyGame.kt | 2 ++ .../main/java/net/imshit/aircraftwar/logic/game/HardGame.kt | 2 ++ .../main/java/net/imshit/aircraftwar/logic/game/MediumGame.kt | 3 +++ 3 files changed, 7 insertions(+) diff --git a/app/src/main/java/net/imshit/aircraftwar/logic/game/EasyGame.kt b/app/src/main/java/net/imshit/aircraftwar/logic/game/EasyGame.kt index fa90e67..d2c9a45 100644 --- a/app/src/main/java/net/imshit/aircraftwar/logic/game/EasyGame.kt +++ b/app/src/main/java/net/imshit/aircraftwar/logic/game/EasyGame.kt @@ -2,6 +2,7 @@ package net.imshit.aircraftwar.logic.game import android.content.Context import android.util.AttributeSet +import net.imshit.aircraftwar.logic.generate.enemy.EasyEnemyGenerateStrategy class EasyGame(context: Context, attrs: AttributeSet?, soundMode: Boolean) : Games( context = context, attrs = attrs, soundMode = soundMode @@ -16,5 +17,6 @@ class EasyGame(context: Context, attrs: AttributeSet?, soundMode: Boolean) : Gam ) override val background = images.backgroundEasy + override val generateStrategy = EasyEnemyGenerateStrategy(this) // TODO } \ No newline at end of file diff --git a/app/src/main/java/net/imshit/aircraftwar/logic/game/HardGame.kt b/app/src/main/java/net/imshit/aircraftwar/logic/game/HardGame.kt index 46852d1..a066bae 100644 --- a/app/src/main/java/net/imshit/aircraftwar/logic/game/HardGame.kt +++ b/app/src/main/java/net/imshit/aircraftwar/logic/game/HardGame.kt @@ -2,6 +2,7 @@ package net.imshit.aircraftwar.logic.game import android.content.Context import android.util.AttributeSet +import net.imshit.aircraftwar.logic.generate.enemy.EasyEnemyGenerateStrategy class HardGame(context: Context, attrs: AttributeSet?, soundMode: Boolean) : Games( context = context, attrs = attrs, soundMode = soundMode @@ -16,5 +17,6 @@ class HardGame(context: Context, attrs: AttributeSet?, soundMode: Boolean) : Gam ) override val background = images.backgroundHard + override val generateStrategy = EasyEnemyGenerateStrategy(this) // TODO } \ No newline at end of file diff --git a/app/src/main/java/net/imshit/aircraftwar/logic/game/MediumGame.kt b/app/src/main/java/net/imshit/aircraftwar/logic/game/MediumGame.kt index d0b1343..5e0cdec 100644 --- a/app/src/main/java/net/imshit/aircraftwar/logic/game/MediumGame.kt +++ b/app/src/main/java/net/imshit/aircraftwar/logic/game/MediumGame.kt @@ -2,6 +2,7 @@ package net.imshit.aircraftwar.logic.game import android.content.Context import android.util.AttributeSet +import net.imshit.aircraftwar.logic.generate.enemy.EasyEnemyGenerateStrategy class MediumGame(context: Context, attrs: AttributeSet?, soundMode: Boolean) : Games( context = context, attrs = attrs, soundMode = soundMode @@ -16,5 +17,7 @@ class MediumGame(context: Context, attrs: AttributeSet?, soundMode: Boolean) : G ) override val background = images.backgroundMedium + override val generateStrategy = EasyEnemyGenerateStrategy(this) + //TODO } \ No newline at end of file