Effect

io.github.pidoveproject.showdown.battle.Effect
See theEffect companion object
enum Effect

An instant effect, usually a cause of change in the battle state.

Attributes

Companion
object
Source
Effect.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(ability: AbilityName)

An effect caused by an ability.

An effect caused by an ability.

Value parameters

ability

the causing ability

Attributes

Source
Effect.scala
case case HeldItem extends Effect

An effect caused by the pokemon's currently held item

An effect caused by the pokemon's currently held item

Attributes

Source
Effect.scala
final case class Item(item: ItemName)

An effect caused by an item.

An effect caused by an item.

Value parameters

item

the causing item

Attributes

Source
Effect.scala
final case class Miscellaneous(effect: String)

A unknown/miscellaneous move.

A unknown/miscellaneous move.

Value parameters

effect

the raw effect as text

Attributes

Source
Effect.scala
final case class Move(move: MoveName)

An effect caused of a move.

An effect caused of a move.

Value parameters

move

the causing move

Attributes

Source
Effect.scala
final case class Of(effect: Effect, owner: ActiveId)

An effect caused by a pokemon.

An effect caused by a pokemon.

Value parameters

effect

the triggered effect

owner

the active pokemon causing the effect

Attributes

Source
Effect.scala
case case Silent extends Effect

Silence caused by a ability or a move (like Throat Chop).

Silence caused by a ability or a move (like Throat Chop).

Attributes

Source
Effect.scala
final case class ZEffect(move: MoveName)

A Z-move animation/effect.

A Z-move animation/effect.

Value parameters

move

the boosted move

Attributes

Source
Effect.scala