io.github.pidoveproject.showdown.protocol.server.tournament

Members list

Type members

Classlikes

The result of a pokemon battle

The result of a pokemon battle

Attributes

Source
BattleResult.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class BattleScore(user1: Score, user2: Score)

The scores of a battle. A point = a pokemon alive

The scores of a battle. A point = a pokemon alive

Value parameters

user1

the score of the first participant

user2

the score of the second participant

Attributes

Companion
object
Source
BattleScore.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object BattleScore

Attributes

Companion
class
Source
BattleScore.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

The state of a tournament battle

The state of a tournament battle

Attributes

Companion
object
Source
BattleState.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object BattleState

Attributes

Companion
enum
Source
BattleState.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
case class BracketData(bracketType: BracketType, rootNode: Option[BracketNode], users: Option[List[Username]])

The bracket data of a tournament

The bracket data of a tournament

Value parameters

bracketType

the type of the bracket

rootNode

the root of the bracket

users

the participants of the tournament

Attributes

Source
BracketData.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

A node in the bracket

A node in the bracket

Attributes

Companion
object
Source
BracketNode.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object BracketNode

Attributes

Companion
enum
Source
BracketNode.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

The type of a bracket

The type of a bracket

Attributes

Companion
object
Source
BracketType.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object BracketType

Attributes

Companion
enum
Source
BracketType.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
object Encounter extends RefinedTypeOps[Int, Closed[1, 2], Encounter]

Attributes

Source
package.scala
Supertypes
trait RefinedTypeOps[Int, Closed[1, 2], Encounter]
class Object
trait Matchable
class Any
Self type
Encounter.type
object Loss extends RefinedTypeOps[Int, Positive, Loss]

Attributes

Source
package.scala
Supertypes
trait RefinedTypeOps[Int, Positive, Loss]
class Object
trait Matchable
class Any
Self type
Loss.type
object Score extends RefinedTypeOps[Int, GreaterEqual[0], Score]

Attributes

Source
package.scala
Supertypes
trait RefinedTypeOps[Int, GreaterEqual[0], Score]
class Object
trait Matchable
class Any
Self type
Score.type

The auto-disqualification policy for tournaments.

The auto-disqualification policy for tournaments.

Attributes

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

The auto-start policy for tournaments

The auto-start policy for tournaments

Attributes

Source
TournamentAutoStart.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class TournamentEnd(results: List[List[Username]], format: FormatName, generator: TournamentGenerator, bracketData: BracketData)

A tournament ending.

A tournament ending.

Value parameters

bracketData

the final bracket of the tournament

format

the format of the tournament

generator

the bracket generator of the tournament

results

the winner of the tournament

Attributes

Companion
object
Source
TournamentEnd.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object TournamentEnd

Attributes

Companion
class
Source
TournamentEnd.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

The generator for a tournament bracket.

The generator for a tournament bracket.

Attributes

Companion
object
Source
TournamentGenerator.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
enum
Source
TournamentGenerator.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

The result of a tournament record.

The result of a tournament record.

Attributes

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

A tournament setting.

A tournament setting.

Attributes

Source
TournamentSetting.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class TournamentUpdate(format: Option[FormatName], teambuilderFormat: Option[FormatName], isStarted: Option[Boolean], isJoined: Option[Boolean], generator: Option[TournamentGenerator], playerCap: Option[Count], bracketData: Option[BracketData], challenges: Option[List[Username]], challengesBys: Option[List[Username]], challenged: Option[List[Username]], challenging: Option[List[Username]])

A tournament update. Each parameter is optional (only present if the state changed).

A tournament update. Each parameter is optional (only present if the state changed).

Value parameters

bracketData

the current state of the bracket

challenged

the list of opponents currently challenging the user

challenges

the list of opponents the current user can challenge

challengesBys

the list of opponents who can challenge the current user

challenging

the list of opponents the user is challenging

format

the format of the battles of the tournament

generator

the bracket generator of the tournament

isJoined

whether the current (logged in) user joined the tournament or not

isStarted

whether the tournament started or not

playerCap

the maximum count of the player

teambuilderFormat

the format of the tournament used for teambuilding

Attributes

Companion
object
Source
TournamentUpdate.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
TournamentUpdate.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Types

opaque type Encounter

Attributes

Source
package.scala
opaque type Loss

Attributes

Source
package.scala
opaque type Score

Attributes

Source
package.scala