public class DirtyItemList.DirtyItem extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
lx
The leftmost tile coordinates.
|
int |
ly
The leftmost tile coordinates.
|
Object |
obj
The dirtied object; one of either a sprite or an object tile.
|
int |
ox
The origin tile coordinates.
|
int |
oy
The origin tile coordinates.
|
int |
rx
The rightmost tile coordinates.
|
int |
ry
The rightmost tile coordinates.
|
| Constructor and Description |
|---|
DirtyItem() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Releases all references held by this dirty item so that it doesn't inadvertently hold
on to any objects while waiting to be reused.
|
boolean |
equals(Object other) |
int |
getRearDepth()
Returns the "depth" of our rear-most tile.
|
int |
getRenderPriority()
Returns the render priority for this dirty item.
|
int |
hashCode() |
void |
init(Object obj,
int x,
int y)
Initializes a dirty item.
|
void |
paint(Graphics2D gfx)
Paints the dirty item to the given graphics context.
|
String |
toString() |
public Object obj
public int ox
public int oy
public int lx
public int ly
public int rx
public int ry
public void init(Object obj, int x, int y)
public void paint(Graphics2D gfx)
public int getRearDepth()
public int getRenderPriority()
public void clear()
Copyright © 2015. All rights reserved.