BattleChoice

io.github.pidoveproject.showdown.protocol.client.BattleChoice
See theBattleChoice companion object

A battle choice

Attributes

Companion
object
Source
BattleChoice.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 Default extends BattleChoice

Do the first legal action.

Do the first legal action.

Attributes

Source
BattleChoice.scala
final case class Move(move: MoveName | MoveSlot, target: Option[RelativePosition], modifier: Option[MoveModifier])

Use a move.

Use a move.

Value parameters

modifier

an optional modifier to the move, like mega evolving or z-move

move

the move to use

target

the target, if several

Attributes

Source
BattleChoice.scala
case case Pass extends BattleChoice

Do nothing.

Do nothing.

Attributes

Source
BattleChoice.scala
final case class Switch(pokemon: SpeciesName | TeamSlot)

Switch in a pokemon.

Switch in a pokemon.

Value parameters

pokemon

the pokemon to switch in

Attributes

Source
BattleChoice.scala
case case Undo extends BattleChoice

Cancel selected action

Cancel selected action

Attributes

Source
BattleChoice.scala