GameConfiguration.kt
package delta.codecharacter.server.config
import delta.codecharacter.server.params.GameParameters
import delta.codecharacter.server.params.game_entities.Attacker
import delta.codecharacter.server.params.game_entities.Defender
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
@Configuration
class GameConfiguration {
@Bean
fun gameParameters(): GameParameters {
return GameParameters(
attackers =
setOf(
Attacker(
id = 1,
hp = 10,
range = 2,
attackPower = 4,
speed = 4,
price = 2,
aerial = 0,
),
Attacker(
id = 2,
hp = 20,
range = 4,
attackPower = 2,
speed = 2,
price = 2,
aerial = 0,
),
Attacker(
id = 3,
hp = 15,
range = 4,
attackPower = 2,
speed = 4,
price = 4,
aerial = 1,
),
),
defenders =
setOf(
Defender(id = 1, hp = 400, range = 4, attackPower = 10, price = 25, aerial = 0),
Defender(id = 2, hp = 600, range = 6, attackPower = 20, price = 50, aerial = 0),
Defender(id = 3, hp = 400, range = 6, attackPower = 15, price = 100, aerial = 1),
),
numberOfTurns = 500,
numberOfCoins = 1800,
)
}
}