BattleInitializationMessage

io.github.pidoveproject.showdown.protocol.server.BattleInitializationMessage

A message relative to the initialization of a battle.

Attributes

Source
BattleInitializationMessage.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 DeclarePokemon(player: PlayerNumber, details: PokemonDetails, item: Option[ItemName])

Declare a pokemon.

Declare a pokemon.

Value parameters

details

the details of the pokemon

item

the item held by the declared pokemon

player

the pokemon's trainer

Attributes

Source
BattleInitializationMessage.scala
final case class GameType(battleType: BattleType)

Set the type of the battle.

Set the type of the battle.

Value parameters

battleType

the type of the battle

Attributes

Source
BattleInitializationMessage.scala
final case class Gen(generation: Generation)

Set the generation of the battle.

Set the generation of the battle.

Value parameters

generation

the generation of the battle's format

Attributes

Source
BattleInitializationMessage.scala
final case class Player(number: PlayerNumber, name: Option[Username], avatar: Option[AvatarName], rating: Option[Rating])

Declare a battle player

Declare a battle player

Value parameters

avatar

the avatar of the user

name

the name of the user

number

the number attributed to the player

rating

the rating of the user in the battle's format

Attributes

Source
BattleInitializationMessage.scala
final case class Rated(message: Option[ChatContent])

Set the battle as rated.

Set the battle as rated.

Value parameters

message

None if the battle is rated or Some if the battle is rated in some other way.

Attributes

Source
BattleInitializationMessage.scala
final case class Rule(rule: BattleRule)

Declare a rule of the battle

Declare a rule of the battle

Value parameters

rule

the enabled battle rule

Attributes

Source
BattleInitializationMessage.scala
final case class Start()

Start the battle

Start the battle

Attributes

Source
BattleInitializationMessage.scala
final case class StartPreview()

Start the team preview.

Start the team preview.

Attributes

Source
BattleInitializationMessage.scala
final case class TeamSize(player: PlayerNumber, size: Count)

Declare the size of a player's team.

Declare the size of a player's team.

Value parameters

player

the team owner

size

the number of pokemon in the team

Attributes

Source
BattleInitializationMessage.scala
final case class Tier(format: FormatName)

Set the tier of the battle.

Set the tier of the battle.

Value parameters

format

the format of the battle

Attributes

Source
BattleInitializationMessage.scala