io.github.pidoveproject.showdown.battle.RevealedAbility.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.AbilityName
/**
* A revealed ability.
*/
enum RevealedAbility:
/**
* The base ability of a pokemon.
*
* @param ability the ability of the pokemon
*/
case Base(ability: AbilityName)
/**
* A modified ability.
*
* @param ability the current ability of the pokemon
* @param cause the effect causing the ability change
*/
case Modified(ability: AbilityName, cause: Effect)
/**
* The pokemon's ability is currently disabled (e.g by Neutralising Gas)
*/
case Disabled