io.github.pidoveproject.showdown.battle.HeldItem.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala-showdown-api_3 Show documentation
Show all versions of scala-showdown-api_3 Show documentation
A Scala wrapper of Pokemon Showdown's API
The newest version!
package io.github.pidoveproject.showdown.battle
import io.github.pidoveproject.showdown.team.ItemName
/**
* The held item of a pokemon.
*/
enum HeldItem:
/**
* A revealed held item.
*
* @param item the revealed item
* @param cause the optional cause of the reveal (e.g Frisk)
*/
case Revealed(item: ItemName, cause: Option[Effect])
/**
* A no longer held item.
*
* @param item the originally held item
* @param cause the cause of the item destruction (e.g Knock Off)
*/
case Destroyed(item: ItemName, cause: Option[Effect])
/**
* The held item is not known.
*/
case Unknown