-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
25 additions
and
29 deletions.
There are no files selected for viewing
5 changes: 0 additions & 5 deletions
5
app/src/main/java/net/imshit/aircraftwar/element/shoot/AbstractShootStrategyFactory.kt
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
app/src/main/java/net/imshit/aircraftwar/element/shoot/ShootStrategyFactories.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package net.imshit.aircraftwar.element.shoot | ||
|
||
import net.imshit.aircraftwar.logic.Games | ||
|
||
abstract class ShootStrategyFactories(val game: Games) { | ||
abstract fun getStrategy(shootNum: Int): ShootStrategies | ||
} |
9 changes: 9 additions & 0 deletions
9
app/src/main/java/net/imshit/aircraftwar/element/shoot/enemy/EnemyShootStrategies.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package net.imshit.aircraftwar.element.shoot.enemy | ||
|
||
import net.imshit.aircraftwar.element.bullet.EnemyBullet | ||
import net.imshit.aircraftwar.element.shoot.ShootStrategies | ||
import net.imshit.aircraftwar.logic.Games | ||
|
||
sealed class EnemyShootStrategies(game: Games) : ShootStrategies(game = game) { | ||
abstract override fun shoot(x: Float, y: Float, speedY: Float, power: Int): List<EnemyBullet> | ||
} |
15 changes: 0 additions & 15 deletions
15
app/src/main/java/net/imshit/aircraftwar/element/shoot/enemy/EnemyShootStrategy.kt
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
app/src/main/java/net/imshit/aircraftwar/element/shoot/hero/HeroShootStrategies.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package net.imshit.aircraftwar.element.shoot.hero | ||
|
||
import net.imshit.aircraftwar.element.bullet.HeroBullet | ||
import net.imshit.aircraftwar.element.shoot.ShootStrategies | ||
import net.imshit.aircraftwar.logic.Games | ||
|
||
sealed class HeroShootStrategies(game: Games) : ShootStrategies(game = game) { | ||
abstract override fun shoot(x: Float, y: Float, speedY: Float, power: Int): List<HeroBullet> | ||
} |
9 changes: 0 additions & 9 deletions
9
app/src/main/java/net/imshit/aircraftwar/element/shoot/hero/HeroShootStrategy.kt
This file was deleted.
Oops, something went wrong.