BracketNode

io.github.pidoveproject.showdown.protocol.server.tournament.BracketNode
See theBracketNode companion object

A node in the bracket

Attributes

Companion
object
Source
BracketNode.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

final case class Leaf(team: String)

A leaf of the tree.

A leaf of the tree.

Value parameters

team

the team present in the tournament leaf

Attributes

Source
BracketNode.scala
final case class Node(children: List[BracketNode], state: BattleState, team: Option[String], result: Option[BattleResult], score: Option[List[Int]], room: Option[RoomId])

A battle node of the tree.

A battle node of the tree.

Value parameters

children

the children of this node

result

the result of the battle represented by this node

room

the battle room if the battle is in progress

score

the scores of the battle if it ended

state

the current state of the battle represented by this node

team

the looser of the node if the battle ended

Attributes

Source
BracketNode.scala