Interface IStatStore

All Known Implementing Classes:
EVStore, IVStore

public interface IStatStore
Represents battle stats being stored Created by Jay113355 on 11/11/2020.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    addStat(BattleStatsType type, int value)
    Adds value amount to the specific battle stat type
    boolean
    canSet(BattleStatsType type, int value)
    Checks if the stat can be set to the value
    int
    Gets the pokemonLevel of the request battle stat type
    default int
     
    void
    Resets all the stats to 0
    void
    setStat(BattleStatsType type, int value)
    Sets the pokemonLevel of the specified battle stat type
    default void
    takeStat(BattleStatsType type, int value)
    Takes value amount from the specific battle stat type
  • Method Details

    • getStat

      int getStat(BattleStatsType type)
      Gets the pokemonLevel of the request battle stat type
      Parameters:
      type - The type of battle stat being obtained
      Returns:
      The pokemonLevel of the stat
    • setStat

      void setStat(BattleStatsType type, int value)
      Sets the pokemonLevel of the specified battle stat type
      Parameters:
      type - The type being set
      value - the new value
    • canSet

      boolean canSet(BattleStatsType type, int value)
      Checks if the stat can be set to the value
      Parameters:
      type - The type being set
      value - The value being set
      Returns:
      If the stat can be set to the value
    • addStat

      default void addStat(BattleStatsType type, int value)
      Adds value amount to the specific battle stat type
      Parameters:
      type - The type being added to
      value - The amount being added
    • takeStat

      default void takeStat(BattleStatsType type, int value)
      Takes value amount from the specific battle stat type
      Parameters:
      type - The type being taken from
      value - The amount being taken
    • reset

      void reset()
      Resets all the stats to 0
    • getTotal

      default int getTotal()