GlobalCommand

io.github.pidoveproject.showdown.protocol.client.GlobalCommand

A command that can be sent in any room.

Attributes

Source
GlobalCommand.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

case case CancelSearch extends GlobalCommand

Cancel battle search.

Cancel battle search.

Attributes

Source
GlobalCommand.scala
final case class Challenge(user: Username, format: FormatName)

Challenge another user.

Challenge another user.

Value parameters

format

the format of the battle

user

the user to challenge

Attributes

Source
GlobalCommand.scala
final case class Join(room: RoomId)

Join a room.

Join a room.

Value parameters

room

the room to join

Attributes

Source
GlobalCommand.scala
final case class Leave(room: Option[RoomId])

Leave a room.

Leave a room.

Value parameters

room

the room to leave of the current one if None

Attributes

Source
GlobalCommand.scala
case case LogOut extends GlobalCommand

Log out from the current account.

Log out from the current account.

Attributes

Source
GlobalCommand.scala
final case class Msg(user: Username, message: ChatContent)

Send a private message to another player.

Send a private message to another player.

Value parameters

message

the message to send

user

the recipient of the message

Attributes

Source
GlobalCommand.scala
final case class Query(request: QueryRequest)

Query miscellaneous informations to the server.

Query miscellaneous informations to the server.

Value parameters

request

the request to make to the server

Attributes

Source
GlobalCommand.scala
final case class Rating(user: Option[Username])

Get the rating of a user in the current battle.

Get the rating of a user in the current battle.

Value parameters

user

the user to check or the current one if None

Attributes

Source
GlobalCommand.scala
final case class Reply(message: ChatContent)

Reply to the last private discussion.

Reply to the last private discussion.

Value parameters

message

the message to send

Attributes

Source
GlobalCommand.scala
final case class Report(user: Username, reason: String)

Report a user.

Report a user.

Value parameters

reason

the reason of the report

user

the name of the user to report

Attributes

Source
GlobalCommand.scala
final case class RoomAuth(room: RoomId)

Get the list of staff and authority of a room.

Get the list of staff and authority of a room.

Value parameters

room

the room to leave of the current one if None

Attributes

Source
GlobalCommand.scala
final case class Search(format: FormatName)

Search for a battle.

Search for a battle.

Value parameters

format

the format to search for

Attributes

Source
GlobalCommand.scala
final case class User(user: Option[Username])

Search for a user.

Search for a user.

Value parameters

user

the user to search for or the current one if None

Attributes

Source
GlobalCommand.scala
final case class UserAuth(user: Username)

Get all authority visible to the user.

Get all authority visible to the user.

Value parameters

user

the user to check or the current one if None

Attributes

Source
GlobalCommand.scala
final case class WhoIs(user: Option[Username])

Get details about a user.

Get details about a user.

Value parameters

user

the user to check or the current one if None

Attributes

Source
GlobalCommand.scala