public class ImmutableBattleStats
extends java.lang.Object
Constructor and Description |
---|
ImmutableBattleStats(int hp,
int attack,
int defense,
int specialAttack,
int specialDefense,
int speed) |
ImmutableBattleStats(java.util.Map<BattleStatsType,java.lang.Integer> stats)
The default constructor taking the default battle stats that are unchangeable during runtime
|
Modifier and Type | Method and Description |
---|---|
int |
getStat(BattleStatsType stat)
Gets a base stat for the Pokémon.
|
public ImmutableBattleStats(java.util.Map<BattleStatsType,java.lang.Integer> stats)
stats
- The map of battle stats for the pokemonpublic ImmutableBattleStats(int hp, int attack, int defense, int specialAttack, int specialDefense, int speed)
public int getStat(BattleStatsType stat)
stat
- The base stat to get.