Condition

io.github.pidoveproject.showdown.battle.Condition
See theCondition companion object
case class Condition(health: Health, status: Option[StatusEffect])

The health and status of a pokemon.

Value parameters

health

the health of the pokemon

status

the status of the pokemon or None if healthy.

Attributes

Companion
object
Source
Condition.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Set the statut as fainted.

Set the statut as fainted.

Attributes

Source
Condition.scala
def fainted: Boolean

Whether this pokemon is fainted or not.

Whether this pokemon is fainted or not.

Attributes

Source
Condition.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product