io.github.pidoveproject.showdown.protocol.server.choice

Members list

Type members

Classlikes

case class ActiveChoice(moves: List[MoveChoice])

Choice information on the active side.

Choice information on the active side.

Value parameters

moves

the available moves

Attributes

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

An error message about a wrong choice.

An error message about a wrong choice.

Attributes

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

Attributes

Companion
enum
Source
ChoiceError.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ChoiceRequest(active: List[ActiveChoice], team: TeamChoice, requestId: Option[Int])

A choice request sent by the server.

A choice request sent by the server.

Value parameters

active

the choices related to the active pokemon

requestId

the id of the request, used to ensure the sent decision is not confused with another one

team

the choice related to the team (e.g switching)

Attributes

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

Attributes

Companion
class
Source
ChoiceRequest.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class MoveChoice(name: MoveName, id: String, pp: PP, maxPP: PP, range: MoveRange, disabled: Boolean)

Represent a selectable move.

Represent a selectable move.

Value parameters

disabled

whether this move is disabled or usable

id

the internal id of the move (lower-cased and without spaces)

maxPP

the max PP of the move

name

the name of the move

pp

the remaining PP of the move

range

the targeting range of the move

Attributes

Source
MoveChoice.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
enum MoveRange

The range of a move.

The range of a move.

Attributes

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

Attributes

Companion
enum
Source
MoveRange.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
MoveRange.type
case class PokemonChoice(id: TeamId, details: PokemonDetails, condition: Condition, active: Boolean, stats: Map[StatType, Stat], moves: MoveNames, item: Option[ItemName], pokeball: String, baseAbility: AbilityName, ability: AbilityName, teraType: Option[Type], terastallized: Option[Type])

Information about a selectable pokemon.

Information about a selectable pokemon.

Value parameters

ability

the current ability of the pokemon in case of ability change (e.g Mummy, Wandering Spirit, Neutralising Gaz...)

active

true if this pokemon is on the terrain, false otherwise

baseAbility

the base ability of the pokemon

condition

the health and status of the pokemon

details

the details of the pokemon

id

the team id of the pokemon

item

the item held by the pokemon

moves

the moves of the pokemon

pokeball

the pokeball of the pokemon, not used

stats

the stats of the pokemon

teraType

the tera type of the pokemon

terastallized

the type thep pokemon terastallized into

Attributes

Source
PokemonChoice.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class TeamChoice(name: Username, player: PlayerNumber, pokemon: List[PokemonChoice])

Team-related choices.

Team-related choices.

Value parameters

name

the name of the team (usually the owner's name)

player

the number of the team owner

pokemon

the pokemon choices

Attributes

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