GameInfoPreview

class GameInfoPreview

Reduced variant of GameInfo used for load preview and multiplayer saves. Contains additional data for multiplayer settings.

Constructors

GameInfoPreview
Link copied to clipboard
fun GameInfoPreview(gameInfo: GameInfo)

Converts a GameInfo object (can be uninitialized) into a GameInfoPreview object. Sets all multiplayer settings to default.

GameInfoPreview
Link copied to clipboard
fun GameInfoPreview()

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getCivilization
Link copied to clipboard
fun getCivilization(civName: String): CivilizationInfoPreview
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String
updateCurrentTurn
Link copied to clipboard
fun updateCurrentTurn(gameInfo: GameInfo): GameInfoPreview

Updates the current player and turn information in the GameInfoPreview object with the help of a GameInfo object (can be uninitialized).

fun updateCurrentTurn(gameInfo: GameInfoPreview): GameInfoPreview

Updates the current player and turn information in the GameInfoPreview object with the help of another GameInfoPreview object.

Properties

civilizations
Link copied to clipboard
var civilizations: MutableList<CivilizationInfoPreview>
currentPlayer
Link copied to clipboard
var currentPlayer: String
currentTurnStartTime
Link copied to clipboard
var currentTurnStartTime: Long = 0L
difficulty
Link copied to clipboard
var difficulty: String
gameId
Link copied to clipboard
var gameId: String
gameParameters
Link copied to clipboard
var gameParameters: GameParameters
turnNotification
Link copied to clipboard
var turnNotification: Boolean = true
turns
Link copied to clipboard
var turns: Int = 0

Sources

jvm source
Link copied to clipboard