Class AggressionChances
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.aggression.AggressionChances
Representing the chances of a
Species
being aggressive, timid
or passive.
By default passive = 100 - (timid + aggressive)-
Constructor Summary
ConstructorDescriptionAggressionChances
(int timid, int aggressive) Default constructor for calculating passiveAggressionChances
(int timid, int passive, int aggressive) Constructor taking all three values -
Method Summary
Modifier and TypeMethodDescriptionCalculates theAggression
for a pokemon using these chances assuming the owner is null (i.e.calculateAggression
(UUID owner) Calculates theAggression
for the pokemon using these chancesboolean
int
int
int
getTimid()
int
hashCode()
-
Constructor Details
-
AggressionChances
public AggressionChances(int timid, int passive, int aggressive) Constructor taking all three values- Parameters:
timid
- Chance of being timidpassive
- Chance of being passiveaggressive
- Chance of being aggressive
-
AggressionChances
public AggressionChances(int timid, int aggressive) Default constructor for calculating passive- Parameters:
timid
-aggressive
-
-
-
Method Details
-
calculateAggression
Calculates theAggression
for a pokemon using these chances assuming the owner is null (i.e. wild pokemon)- Returns:
- The new
Aggression
-
calculateAggression
Calculates theAggression
for the pokemon using these chances- Parameters:
owner
- The owner - if not null will always returnAggression.PASSIVE
- Returns:
- The new
Aggression
-
getTimid
public int getTimid() -
getPassive
public int getPassive() -
getAggressive
public int getAggressive() -
equals
-
hashCode
public int hashCode()
-