BattleResult

io.github.pidoveproject.showdown.battle.BattleResult

The result of an ended battle.

Attributes

Source
BattleResult.scala
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

case case Tie extends BattleResult

The game ended in a tie.

The game ended in a tie.

Attributes

Source
BattleResult.scala
final case class Win(winner: Username)

A user won the game.

A user won the game.

Value parameters

winner

the user who won

Attributes

Source
BattleResult.scala