BattleRoomCommand

io.github.pidoveproject.showdown.protocol.client.BattleRoomCommand

A command bound to a battle room.

Attributes

Source
BattleRoomCommand.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 Choose(choice: ChoiceResponse)

Select a choice.

Select a choice.

Attributes

Source
BattleRoomCommand.scala
case case Forfeit extends BattleRoomCommand

Forfeit the current battle.

Forfeit the current battle.

Attributes

Source
BattleRoomCommand.scala
final case class HideRoom(isOn: Boolean)

Set the visibility of the room.

Set the visibility of the room.

Value parameters

isOn

true for hidden, false otherwise.

Attributes

Source
BattleRoomCommand.scala
final case class Invite(user: Option[Username], roomName: Option[RoomId])

Invite the given user to the given room.

Invite the given user to the given room.

Value parameters

room

the room to invite to, or the current room of the current user if absent

user

the user to invite or all PMed player if absent

Attributes

Source
BattleRoomCommand.scala
final case class InviteOnly(isOn: Boolean)

Make the room invite-only.

Make the room invite-only.

Value parameters

isOn

true make the room invite-only, false otherwise.

Attributes

Source
BattleRoomCommand.scala
final case class InviteOnlyNext(isOn: Boolean)

Make the next battle invite-only.

Make the next battle invite-only.

Value parameters

isOn

true make the next battle invite-only, false otherwise.

Attributes

Source
BattleRoomCommand.scala
case case PublicRoom extends BattleRoomCommand

Make the room public.

Make the room public.

Attributes

See also

BattleRoomCommand.SecretRoom

Source
BattleRoomCommand.scala
case case SaveReplay extends BattleRoomCommand

Save the replay of the match.

Save the replay of the match.

Attributes

Source
BattleRoomCommand.scala
case case SecretRoom extends BattleRoomCommand

Make the room secret.

Make the room secret.

Attributes

See also

BattleRoomCommand.PublicRoom

Source
BattleRoomCommand.scala
final case class Timer(isOn: Boolean)

Enable the timer

Enable the timer

Value parameters

isOn

true to enable the timer, false to disable.

Attributes

Source
BattleRoomCommand.scala