public class AggressionChances
extends java.lang.Object
Species
being aggressive, timid
or passive.
By default passive = 100 - (timid + aggressive)Constructor and Description |
---|
AggressionChances(int timid,
int aggressive)
Default constructor for calculating passive
|
AggressionChances(int timid,
int passive,
int aggressive)
Constructor taking all three values
|
Modifier and Type | Method and Description |
---|---|
Aggression |
calculateAggression()
Calculates the
Aggression for a pokemon using these chances assuming the owner is null (i.e. |
Aggression |
calculateAggression(java.util.UUID owner)
Calculates the
Aggression for the pokemon using these chances |
boolean |
equals(java.lang.Object o) |
int |
getAggressive() |
int |
getPassive() |
int |
getTimid() |
int |
hashCode() |
public AggressionChances(int timid, int passive, int aggressive)
timid
- Chance of being timidpassive
- Chance of being passiveaggressive
- Chance of being aggressivepublic AggressionChances(int timid, int aggressive)
timid
- aggressive
- public Aggression calculateAggression()
Aggression
for a pokemon using these chances assuming the owner is null (i.e. wild pokemon)Aggression
public Aggression calculateAggression(java.util.UUID owner)
Aggression
for the pokemon using these chancesowner
- The owner - if not null will always return Aggression.PASSIVE
Aggression
public int getTimid()
public int getPassive()
public int getAggressive()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object