BattleAttackMessage

io.github.pidoveproject.showdown.protocol.server.BattleAttackMessage

Attributes

Source
BattleAttackMessage.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 Block(pokemon: ActiveId, effect: Effect, attacker: ActiveId)

An effect blocked a move.

An effect blocked a move.

Value parameters

attacker

the blocked pokemon

effect

the blocking effect

pokemon

the pokemon who blocked the move

Attributes

Source
BattleAttackMessage.scala
case case Combine extends BattleAttackMessage

The move has been combined with another (e.g Fire Pledge).

The move has been combined with another (e.g Fire Pledge).

Attributes

Source
BattleAttackMessage.scala
final case class CriticalHit(target: ActiveId)

A pokemon made a critical hit.

A pokemon made a critical hit.

Value parameters

target

the attacked pokemon

Attributes

Source
BattleAttackMessage.scala
final case class Fail(pokemon: ActiveId, move: MoveName)

A move failed.

A move failed.

Value parameters

move

the failed move

pokemon

the move user

Attributes

Source
BattleAttackMessage.scala
final case class HitCount(pokemon: ActiveId, count: Count)

A pokemon hit n times.

A pokemon hit n times.

Value parameters

count

the number of time the pokemon hit

pokemon

the attacker

Attributes

Source
BattleAttackMessage.scala
final case class Immune(pokemon: ActiveId)

A pokemon is immune to the used move.

A pokemon is immune to the used move.

Value parameters

pokemon

the defender

Attributes

Source
BattleAttackMessage.scala
final case class Miss(pokemon: ActiveId, target: ActiveId)

A pokemon avoided an attack

A pokemon avoided an attack

Value parameters

pokemon

the move user

target

the pokemon who avoided the attack

Attributes

Source
BattleAttackMessage.scala
final case class MustRecharge(pokemon: ActiveId)

A pokemon must recharge (e.g after using Hyper Beam).

A pokemon must recharge (e.g after using Hyper Beam).

Value parameters

pokemon

the pokemon needing to recharge

Attributes

Source
BattleAttackMessage.scala
final case class NoTarget(pokemon: ActiveId)

A pokemon does not have any target.

A pokemon does not have any target.

Value parameters

pokemon

the pokemon who tried to attack

Attributes

Source
BattleAttackMessage.scala

Deprecated message to indicate that nothing happened.

Deprecated message to indicate that nothing happened.

Attributes

Source
BattleAttackMessage.scala
final case class Prepare(pokemon: ActiveId, move: MoveName, defender: Option[ActiveId])

A pokemon is charging a move on a potentially unknown target.

A pokemon is charging a move on a potentially unknown target.

Value parameters

defender

the move target if known

move

the charging move

pokemon

the attacking pokemon

Attributes

Source
BattleAttackMessage.scala
final case class Resisted(pokemon: ActiveId)

A move was not very effective.

A move was not very effective.

Value parameters

pokemon

the defender

Attributes

Source
BattleAttackMessage.scala
final case class SuperEffective(pokemon: ActiveId)

A move was super effective.

A move was super effective.

Value parameters

pokemon

the defender

Attributes

Source
BattleAttackMessage.scala
final case class Waiting(pokemon: ActiveId, target: ActiveId)

A move user is waiting for the target.

A move user is waiting for the target.

Value parameters

pokemon

the move user

target

the waited-for pokemon

Attributes

Source
BattleAttackMessage.scala