BattleProgressMessage

io.github.pidoveproject.showdown.protocol.server.BattleProgressMessage

A message related to general battle progress.

Attributes

Source
BattleProgressMessage.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 ClearMessageBar()

Insert a message separator.

Insert a message separator.

Attributes

Source
BattleProgressMessage.scala
final case class Error(error: ChoiceError)

The selected choice cannot be performed.

The selected choice cannot be performed.

Value parameters

error

the detailed information about what went wrong

Attributes

Source
BattleProgressMessage.scala
final case class Request(request: Option[ChoiceRequest])

A choice request from the server.

A choice request from the server.

Value parameters

request

information on available actions

Attributes

Source
BattleProgressMessage.scala
final case class SentChoice(choice: BattleChoice)

The server confirmed the choice response has been received.

The server confirmed the choice response has been received.

Value parameters

choice

the received choice

Attributes

Source
BattleProgressMessage.scala
final case class Tie()

The battle resulted in a tie.

The battle resulted in a tie.

Attributes

Source
BattleProgressMessage.scala
final case class TimerDisabled(message: ChatContent)

The timer has been disabled.

The timer has been disabled.

Value parameters

message

the content of the disabling message

Attributes

Source
BattleProgressMessage.scala
final case class TimerMessage(message: ChatContent)

A timer-related message.

A timer-related message.

Value parameters

message

the message content

Attributes

Source
BattleProgressMessage.scala
final case class Timestamp(timestamp: Timestamp)

An update on the battle timestamp.

An update on the battle timestamp.

Value parameters

timestamp

the current timestamp of the battle

Attributes

Source
BattleProgressMessage.scala
final case class Turn(number: TurnNumber)

An update on the current turn.

An update on the current turn.

Value parameters

number

the current turn

Attributes

Source
BattleProgressMessage.scala
final case class Upkeep()

Keep-alive message.

Keep-alive message.

Attributes

Source
BattleProgressMessage.scala
final case class Win(user: Username)

The battle ended with a winner.

The battle ended with a winner.

Value parameters

user

the winner of the game

Attributes

Source
BattleProgressMessage.scala