GuildScore

A class representing the score of a guild.

The score is composed of two properties: wins and loses, which represent the number of wins and losses of the guild, respectively. The score can be updated by calling the addWin and addLoss methods, and reset to 0 by calling the reset method.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
fun addLoss()

Increases the number of losses of the guild by 1.

Link copied to clipboard
fun addWin()

Increases the number of wins of the guild by 1.

Link copied to clipboard
fun reset()

Resets the score of the guild by setting both the number of wins and losses to 0.

Properties

Link copied to clipboard
var loses: Int = 0

The number of losses of the guild.

Link copied to clipboard
var wins: Int = 0

The number of wins of the guild.