Skip to content

Commit

Permalink
fix: 接口更新
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim-shop committed May 10, 2023
1 parent eeb1853 commit a9df0bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ abstract class AbstractFlyingObject(
val game: Games,
initialX: Float,
initialY: Float,
protected val speedX: Float,
protected var speedX: Float,
protected val speedY: Float
) {
var x: Float = initialX
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ sealed class Enemies(
shootStrategyFactory = EnemyShootStrategyFactory(game),
shootNum = shootNum
), EnemyListener {
val credits: Int = 0
open val credits: Int = 0

fun prop(): List<Props> {
open fun prop(): List<Props> {
return listOf()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package net.imshit.aircraftwar.element.prop.factory
import net.imshit.aircraftwar.element.prop.Props
import net.imshit.aircraftwar.logic.Games

sealed class PropFactories(val game: Games) {
abstract class PropFactories(val game: Games) {
val speedX = 0f
val speedY = 0.1f

abstract fun createProp(x: Float, y: Float): Props
abstract fun createProp(x: Float, y: Float): Props?
}

0 comments on commit a9df0bf

Please sign in to comment.