CoreConfig

class CoreConfig(val map: Map<String, String>) : Config

Configuration holder for core game parameters loaded from properties files. Manages character representations and storage configuration.

Constructors

Link copied to clipboard
constructor(map: Map<String, String>)

Properties

Link copied to clipboard

Name of the MongoDB database for storing game states.

Link copied to clipboard

Password for MongoDB authentication.

Link copied to clipboard
val dbPort: Int

Name of the MongoDB collection for storing game states.

Link copied to clipboard

URI for connecting to the MongoDB server.

Link copied to clipboard

Username for MongoDB authentication.

Link copied to clipboard

Character representing empty spaces on the board.

Link copied to clipboard

Configured storage type for game state persistence.

Link copied to clipboard
open override val map: Map<String, String>

The underlying configuration map with string keys and values.

Link copied to clipboard

Directory path where game saves are stored.

Link copied to clipboard

Character representing the target pieces on the board.

Functions

Link copied to clipboard
fun copy(targetChar: Char = this.targetChar, emptyChar: Char = this.emptyChar, gameStorageType: GameStorageType = this.gameStorageType, savesPath: String = this.savesPath, dbName: String = this.dbName, dbURI: String = this.dbURI, dbPort: Int = this.dbPort, dbUser: String = this.dbUser, dbPassword: String = this.dbPassword): CoreConfig

Creates a copy of this CoreConfig with optionally modified values.

Link copied to clipboard

Returns the default configuration entries for core game settings.