1package com.runehive.game;
3import java.util.Objects;
10public class Animation implements Comparable<Animation> {
114 if (other ==
null || other.
priority ==
null) {
123 return String.format(
"Animation[priority=%s, id=%s, delay=%s]",
priority,
id,
delay);
final UpdatePriority priority
The animation priority.
int compareTo(Animation other)
final int id
The animation id.
final int delay
The delay before playing the animation.
static final int RESET_ID
static final int NORMAL_TELE_ID
Animation(int id, int delay)
Creates a new instance of the animation with a specified delay.
Animation(int id, UpdatePriority priority)
Creates a new instance of the animation with a hidden delay of 0.
static final Animation LUNAR_TELE
static final Animation NORMAL_TELE
int getId()
Gets the animation id.
static final Animation RESET
Animation(int id)
Creates a new instance of the animation with a hidden delay of 0.
Animation(int id, int delay, UpdatePriority priority)
Creates a new instance of the animation with a specified delay.
static final int LUNAR_TELE_ID
int getDelay()
Gets the animation delay.
boolean equals(Object obj)
Represents different priorities for updating.
VERY_HIGH
A very high priority.
VERY_LOW
A very low priority.