Interface IStatStore
public interface IStatStore
Represents battle stats being stored
Created by Jay113355 on 11/11/2020.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddStat(BattleStatsType type, int value) Adds value amount to the specific battle stat typebooleancanSet(BattleStatsType type, int value) Checks if the stat can be set to the valueintgetStat(BattleStatsType type) Gets the pokemonLevel of the request battle stat typedefault intgetTotal()voidreset()Resets all the stats to 0voidsetStat(BattleStatsType type, int value) Sets the pokemonLevel of the specified battle stat typedefault voidtakeStat(BattleStatsType type, int value) Takes value amount from the specific battle stat type
-
Method Details
-
getStat
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
Sets the pokemonLevel of the specified battle stat type- Parameters:
type- The type being setvalue- the new value
-
canSet
Checks if the stat can be set to the value- Parameters:
type- The type being setvalue- The value being set- Returns:
- If the stat can be set to the value
-
addStat
Adds value amount to the specific battle stat type- Parameters:
type- The type being added tovalue- The amount being added
-
takeStat
Takes value amount from the specific battle stat type- Parameters:
type- The type being taken fromvalue- The amount being taken
-
reset
void reset()Resets all the stats to 0 -
getTotal
default int getTotal()
-