All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.robocode.tankroyale.server.model.GameState.kt Maven / Gradle / Ivy

package dev.robocode.tankroyale.server.model

/** Game state */
data class GameState(
    /** Arena */
    val arenaSize: Arena,

    /** List of rounds */
    val rounds: MutableList = mutableListOf(),

    /** Flag specifying if game has ended yet */
    var isGameEnded: Boolean = false,
) {
    /** Last round */
    val lastRound: IRound? get() = if (rounds.isNotEmpty()) rounds[rounds.size - 1] else null
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy