BattleStatusMessage

io.github.pidoveproject.showdown.protocol.server.BattleStatusMessage
See theBattleStatusMessage companion object

Attributes

Companion
object
Source
BattleStatusMessage.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 Boost(pokemon: ActiveId, stat: StatType, amount: StatBoost)

Boost a pokemon.

Boost a pokemon.

Value parameters

amount

the number of stage the stat was raised by

pokemon

the boosted pokemon

stat

the raised stat

Attributes

Source
BattleStatusMessage.scala

Clear the boosts of all pokemon.

Clear the boosts of all pokemon.

Attributes

Source
BattleStatusMessage.scala
final case class ClearBoost(pokemon: ActiveId)

Clear the boosts of a pokemon.

Clear the boosts of a pokemon.

Value parameters

pokemon

the affected pokemon

Attributes

Source
BattleStatusMessage.scala
final case class ClearNegativeBoost(pokemon: ActiveId, effect: Effect)

Clear the negative boosts of a pokemon.

Clear the negative boosts of a pokemon.

Value parameters

effect

the effect causing the boost clear

pokemon

the affected pokemon

Attributes

Source
BattleStatusMessage.scala
final case class ClearPositiveBoost(target: ActiveId, pokemon: ActiveId, effect: Effect)

Clear the positive boosts of a pokemon.

Clear the positive boosts of a pokemon.

Value parameters

effect

the effect causing the boost clear

pokemon

the pokemon triggering the boost clear

target

the affected pokemon

Attributes

Source
BattleStatusMessage.scala
final case class CopyBoost(pokemon: ActiveId, target: ActiveId)

Copy the boosts of a pokemon.

Copy the boosts of a pokemon.

Value parameters

pokemon

the copying pokemon

target

the copied pokemon

Attributes

Source
BattleStatusMessage.scala
final case class CureStatus(pokemon: ActiveId, status: StatusEffect)

Clear the status of a pokemon.

Clear the status of a pokemon.

Value parameters

pokemon

the cured pokemon

status

the removed status

Attributes

Source
BattleStatusMessage.scala
final case class Damage(pokemon: ActiveId, condition: Condition)

A pokemon took damage.

A pokemon took damage.

Value parameters

condition

the health and current status of the pokemon

pokemon

the damaged pokemon

Attributes

Source
BattleStatusMessage.scala
final case class Heal(pokemon: ActiveId, condition: Condition)

A pokemon was healed.

A pokemon was healed.

Value parameters

condition

the health and current status of the pokemon

pokemon

the healed pokemon

Attributes

Source
BattleStatusMessage.scala
final case class InvertBoost(pokemon: ActiveId)

Invert the boost stages of a pokemon.

Invert the boost stages of a pokemon.

Value parameters

pokemon

the affected pokemon

Attributes

Source
BattleStatusMessage.scala
final case class SetBoost(pokemon: ActiveId, stat: StatType, amount: StatBoost)

Set the boost of a pokemon.

Set the boost of a pokemon.

Value parameters

amount

the new boost stage of the stat

pokemon

the (un)boosted pokemon

stat

the modified stat

Attributes

Source
BattleStatusMessage.scala
final case class SetHealth(pokemon: ActiveId, health: Health)

Set the health of a pokemon.

Set the health of a pokemon.

Value parameters

health

the new health of the pokemon

pokemon

the modified pokemon

Attributes

Source
BattleStatusMessage.scala
final case class SetStatus(pokemon: ActiveId, status: StatusEffect)

Set the status of a pokemon.

Set the status of a pokemon.

Value parameters

pokemon

the modified pokemon

status

the new status of the pokemon

Attributes

Source
BattleStatusMessage.scala
final case class SingleMove(pokemon: ActiveId, move: MoveName)

Declare a move effect lasting until another move is used.

Declare a move effect lasting until another move is used.

Value parameters

move

the used move

pokemon

the affected pokemon

Attributes

Source
BattleStatusMessage.scala
final case class SingleTurn(pokemon: ActiveId, move: MoveName)

Declare a move effect lasting until the next turn.

Declare a move effect lasting until the next turn.

Value parameters

move

the used move

pokemon

the affected pokemon

Attributes

Source
BattleStatusMessage.scala
final case class SwapBoost(pokemon: ActiveId, target: ActiveId, stats: List[StatType])

Swap boost of two pokemon.

Swap boost of two pokemon.

Value parameters

pokemon

the pokemon triggering the boost swap

stats

the swapped stats

target

the pokemon affected by the boost swap

Attributes

Source
BattleStatusMessage.scala
final case class Unboost(pokemon: ActiveId, stat: StatType, amount: StatBoost)

Unboost a pokemon.

Unboost a pokemon.

Value parameters

amount

the number of stage the stat was dropped by

pokemon

the unboosted pokemon

stat

the dropped stat

Attributes

Source
BattleStatusMessage.scala
final case class VolatileStatusEnd(pokemon: ActiveId, status: VolatileStatus)

End a volatile status.

End a volatile status.

Value parameters

pokemon

the no longer affected pokemon

status

the ended volatile status

Attributes

Source
BattleStatusMessage.scala
final case class VolatileStatusStart(pokemon: ActiveId, status: VolatileStatus)

Start a volatile status.

Start a volatile status.

Value parameters

pokemon

the affected pokemon

status

the started volatile status

Attributes

Source
BattleStatusMessage.scala