CPGameInfo

final case class CPGameInfo(id: String, name: String, semVer: String, initDim: Option[CPDim], termBg: CPColor, minDim: Option[CPDim])

Descriptor of the game.

Value parameters:
id

Unique ID of the game. If not provided, the default value will be a randomly generated globally unique ID.

initDim

Optional initial game dimension. It is used only by emuterm built-in terminal emulator to set the initial terminal emulator dimension. It is ignored by the native terminal. If not provided, terminal emulator will use its default dimension.

minDim

Optional minimal native terminal window size. This is only checked for the native terminal. If the native terminal size is smaller - an exception is thrown before game is started. For terminal emulator it is ignored.

name

Public, display name of the game. This parameter is required and does not have default value.

semVer

Semantic version of the game. See https://semver.org/ for details. Default value is 1.0.0

termBg

Optional background color for the terminal. The default value is 0x111111 RGB color.

Source:
CPGameInfo.scala
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product