TeamMember

io.github.pidoveproject.showdown.battle.TeamMember
case class TeamMember(details: PokemonDetails, condition: Condition, item: HeldItem, ability: Option[AbilityName])

An inactive pokemon.

Value parameters

ability

the ability of this pokemon

condition

the condition of this pokemon

details

the known details of this pokemon

item

the item currently held by this pokemon

Attributes

Source
TeamMember.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Remove status from this pokemon. A fainted pokemon will stay as is.

Remove status from this pokemon. A fainted pokemon will stay as is.

Attributes

Source
TeamMember.scala
def withDestroyedItem(item: ItemName, cause: Option[Effect]): TeamMember

Destroy (and reveal) the item of this pokemon.

Destroy (and reveal) the item of this pokemon.

Value parameters

cause

the cause of the destruction

item

the destroyed held item

Attributes

Returns

a copy of this pokemon with the destroyed item

Source
TeamMember.scala
def withHealth(health: Health): TeamMember

Set the health of this pokemon.

Set the health of this pokemon.

Value parameters

health

the new health value

Attributes

Returns

a copy of this pokemon with the given health

Source
TeamMember.scala

Reveal the ability of this pokemon.

Reveal the ability of this pokemon.

Value parameters

ability

the revealed ability

Attributes

Returns

a copy of this pokemon with the revealed ability

Source
TeamMember.scala
def withRevealedItem(item: ItemName, cause: Option[Effect]): TeamMember

Reveal the item of this pokemon.

Reveal the item of this pokemon.

Value parameters

cause

the cause of the reveal

item

the revealed held item

Attributes

Returns

a copy of this pokemon with the revealed item

Source
TeamMember.scala

Set the status of this pokemon.

Set the status of this pokemon.

Value parameters

status

the new status

Attributes

Returns

a copy of this pokemon with the given status

Source
TeamMember.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product