1package com.runehive.game;
3import java.util.Objects;
10public final class Graphic implements Comparable<Graphic> {
210 return String.format(
"Graphic[id=%s, delay=%s, height=%s, priority=%s]",
id,
delay,
height,
priority);
static final Graphic LUNAR_TELE
Graphic(int id, boolean high, UpdatePriority priority)
Constructs a new Graphic object with no delay.
final int height
The height of this graphic.
Graphic(int id, UpdatePriority priority)
Constructs a new Graphic object with no delay and a low height.
Graphic(int id, int delay, int height, UpdatePriority priority)
Graphic(int id)
Constructs a new Graphic object with no delay, a low height, and normal priotiry.
static final int HIGH_HEIGHT
static final Graphic RESET
final int delay
The delay of this graphic.
int getDelay()
Gets the delay of this graphic.
static final Graphic NORMAL_TELE
static final int RESET_ID
int getId()
Gets the id of this graphic.
int getHeight()
Gets the height of this graphic.
Graphic(int id, int delay, int height)
Graphic(int id, int delay)
Constructs a new Graphic object with a low height and normal priotiry.
static final int NORMAL_ID
Graphic(int id, boolean high)
Constructs a new Graphic object with no delay and normal priotiry.
boolean equals(Object obj)
Graphic(int id, int delay, UpdatePriority priority)
Constructs a new Graphic object with a low height.
int compareTo(Graphic other)
Graphic(int id, int delay, boolean high)
Constructs a new Graphic object with a normal priotiry.
Graphic(int id, int delay, boolean high, UpdatePriority priority)
Constructs a new Graphic object.
final UpdatePriority priority
The priority of the graphic.
final int id
The graphic id.
static final int LUNAR_ID
Represents different priorities for updating.
VERY_HIGH
A very high priority.
VERY_LOW
A very low priority.