BattleMinorActionMessage

io.github.pidoveproject.showdown.protocol.server.BattleMinorActionMessage
See theBattleMinorActionMessage companion object

A major action on an active battle.

Attributes

Companion
object
Source
BattleMinorActionMessage.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 Ability(pokemon: ActiveId, ability: AbilityName, effect: Option[Effect])

An ability was revealed.

An ability was revealed.

Value parameters

ability

the revealed ability

effect

the optional cause of the reveal

pokemon

the ability holder

Attributes

Source
BattleMinorActionMessage.scala
final case class Activate(effect: Effect)

An effect was triggered.

An effect was triggered.

Value parameters

effect

the triggered effect

Attributes

Source
BattleMinorActionMessage.scala
case case Center extends BattleMinorActionMessage

Center pokemon automatically in Triple Battle when only one pokemon is remaining on each side.

Center pokemon automatically in Triple Battle when only one pokemon is remaining on each side.

Attributes

Source
BattleMinorActionMessage.scala
final case class EndAbility(pokemon: ActiveId)

An ability was destroyed.

An ability was destroyed.

Value parameters

pokemon

the ability holder

Attributes

Source
BattleMinorActionMessage.scala
final case class EndItem(pokemon: ActiveId, item: ItemName, effect: Option[Effect])

An item was destroyed.

An item was destroyed.

Value parameters

effect

the optional cause of the destruction

item

the revealed item

pokemon

the item holder

Attributes

Source
BattleMinorActionMessage.scala
final case class FieldEnd(field: FieldEffect)

End a field effect.

End a field effect.

Value parameters

field

the ended field effect

Attributes

Source
BattleMinorActionMessage.scala
final case class FieldStart(field: FieldEffect)

Start a field effect.

Start a field effect.

Value parameters

field

the started field effect

Attributes

Source
BattleMinorActionMessage.scala
final case class Hint(message: ChatContent)

A hint on why an event happened (usually not displayed in Pokemon games).

A hint on why an event happened (usually not displayed in Pokemon games).

Value parameters

message

the hint content

Attributes

Source
BattleMinorActionMessage.scala
final case class Item(pokemon: ActiveId, item: ItemName, effect: Option[Effect])

An item was revealed.

An item was revealed.

Value parameters

effect

the optional cause of the reveal

item

the revealed item

pokemon

the item holder

Attributes

Source
BattleMinorActionMessage.scala
final case class Mega(pokemon: ActiveId, megaStone: ItemName)

A pokemon mega-evolved.

A pokemon mega-evolved.

Value parameters

megaStone

the mega stone held by the pokemon

pokemon

the mega-evolving pokemon

Attributes

Source
BattleMinorActionMessage.scala
final case class Message(message: ChatContent)

A miscellaneous message sent by the simulator.

A miscellaneous message sent by the simulator.

Attributes

Source
BattleMinorActionMessage.scala
final case class SideEnd(side: PlayerId, field: SideFieldEffect)

End a side-dependent field effect.

End a side-dependent field effect.

Value parameters

field

the field effect

side

the side of the effect

Attributes

Source
BattleMinorActionMessage.scala
final case class SideStart(side: PlayerId, field: SideFieldEffect)

Start a side-dependent field effect.

Start a side-dependent field effect.

Value parameters

field

the field effect

side

the side of the effect

Attributes

Source
BattleMinorActionMessage.scala

Flip side of field effects (aka Court Change).

Flip side of field effects (aka Court Change).

Attributes

Source
BattleMinorActionMessage.scala
final case class Terastallize(pokemon: ActiveId, tpe: Type)

A pokemon terastallized.

A pokemon terastallized.

Value parameters

pokemon

the pokemon who terastallized

tpe

the type the pokemon terastallized into

Attributes

Source
BattleMinorActionMessage.scala
final case class Transform(pokemon: ActiveId, target: ActiveId, effect: Option[Effect])

A pokemon transformed into another species.

A pokemon transformed into another species.

Value parameters

effect

the optional cause of the transformation

pokemon

the transformed pokemon

target

the pokemon to copy

Attributes

Source
BattleMinorActionMessage.scala
final case class UltraBurst(pokemon: ActiveId, species: SpeciesName, item: ItemName)

A pokemon ultra-bursted.

A pokemon ultra-bursted.

Value parameters

item

the item causing the ultra burst

pokemon

the ultra-bursting pokemon

species

the new species of the pokemon (e.g Ultra-Necrozma)

Attributes

Source
BattleMinorActionMessage.scala
final case class Weather(weather: Option[Weather], cause: Option[Effect])

Set or clear the active weather.

Set or clear the active weather.

Value parameters

cause

the cause of the weather change

weather

the active weather or clear if absent

Attributes

Source
BattleMinorActionMessage.scala
final case class ZBroken(pokemon: ActiveId)

A Z move was countered by a protection move.

A Z move was countered by a protection move.

Value parameters

pokemon

the pokemon who used its Z power

Attributes

Source
BattleMinorActionMessage.scala
final case class ZPower(pokemon: ActiveId)

A pokemon used its Z power.

A pokemon used its Z power.

Value parameters

pokemon

the pokemon using its Z power

Attributes

Source
BattleMinorActionMessage.scala