public class DamageTask extends HPTask
Constructor and Description |
---|
DamageTask(int healthDifference,
java.util.UUID uuid)
Initiates an damage task.
|
Modifier and Type | Method and Description |
---|---|
protected void |
boundsCheck()
Checks if the health difference is valid and adjusts it if it is not.
|
boolean |
isDone()
Checks if the animation is finished.
|
public DamageTask(int healthDifference, java.util.UUID uuid)
healthDifference
- The damage to deal (negative).uuid
- The UUID of the Pokémon.protected void boundsCheck()
HPTask
boundsCheck
in class HPTask