BattleMajorActionMessage

io.github.pidoveproject.showdown.protocol.server.BattleMajorActionMessage

A major action on an active battle.

Attributes

Source
BattleMajorActionMessage.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 DetailsChange(pokemon: ActiveId, details: PokemonDetails, condition: Option[Condition])

Details about a pokemon changed. Happens when the pokemon changes form.

Details about a pokemon changed. Happens when the pokemon changes form.

Value parameters

condition

the health and current status of the pokemon

details

the new details of the pokemon

pokemon

the modified pokemon

Attributes

Source
BattleMajorActionMessage.scala
final case class Faint(pokemon: ActiveId)

A pokemon fainted.

A pokemon fainted.

Value parameters

pokemon

the fainted pokemon

Attributes

Source
BattleMajorActionMessage.scala
final case class Move(pokemon: ActiveId, move: MoveName, target: ActiveId)

A pokemon used a move.

A pokemon used a move.

Value parameters

move

the move used by the attacker

pokemon

the attacker

target

the pokemon taking the move

Attributes

Source
BattleMajorActionMessage.scala
final case class Replace(pokemon: ActiveId, details: PokemonDetails, condition: Condition)

Replace pokemon information. Sent when Zoroark's illusion fades.

Replace pokemon information. Sent when Zoroark's illusion fades.

Value parameters

condition

the health and current status of the switched-in pokemon

details

further details about the new pokemon

pokemon

the new pokemon

Attributes

Source
BattleMajorActionMessage.scala
final case class Swap(pokemon: ActiveId, slot: PokemonSlot)

Change the position of a pokemon.

Change the position of a pokemon.

Value parameters

pokemon

the pokemon to swap

slot

the slot to put the pokemon in

Attributes

Source
BattleMajorActionMessage.scala
final case class Switch(pokemon: ActiveId, details: PokemonDetails, condition: Condition, cause: Option[Effect])

A pokemon switched-in.

A pokemon switched-in.

Value parameters

cause

the optional cause of the switch-in (e.g U-turn, Dragon Tail...)

condition

the health and current status of the switched-in pokemon

details

further details about the switched-in pokemon

pokemon

the switched-in pokemon

Attributes

Source
BattleMajorActionMessage.scala
final case class Unable(pokemon: ActiveId, reason: String, move: Option[MoveName])

A pokemon is unable to do an action.

A pokemon is unable to do an action.

Value parameters

move

the optional move causing the incapacity

pokemon

the pokemon unable to execute its action

reason

the reason of the incapacity

Attributes

Source
BattleMajorActionMessage.scala