add field for checking if labels are joined with neighbours

This commit is contained in:
Hannes Janetzek 2013-01-30 04:07:50 +01:00
parent be748138ac
commit 8bcc3b6b3f

View File

@ -57,16 +57,24 @@ public final class MapTile extends JobTile {
int lastDraw = 0;
// keep track which tiles are locked as proxy for this tile
final static int PROXY_CHILD1 = 1 << 0;
final static int PROXY_CHILD2 = 1 << 1;
final static int PROXY_CHILD3 = 1 << 2;
final static int PROXY_CHILD4 = 1 << 3;
final static int PROXY_PARENT = 1 << 4;
final static int PROXY_GRAMPA = 1 << 5;
final static int PROXY_HOLDER = 1 << 6;
public final static int PROXY_CHILD1 = 1 << 0;
public final static int PROXY_CHILD2 = 1 << 1;
public final static int PROXY_CHILD3 = 1 << 2;
public final static int PROXY_CHILD4 = 1 << 3;
public final static int PROXY_PARENT = 1 << 4;
public final static int PROXY_GRAMPA = 1 << 5;
public final static int PROXY_HOLDER = 1 << 6;
public byte proxies;
// check which labels were joined
public final static int JOIN_T = 1 << 0;
public final static int JOIN_B = 1 << 1;
public final static int JOIN_L = 1 << 2;
public final static int JOIN_R = 1 << 3;
public final static int JOINED = 15;
public byte joined;
// counting the tiles that use this tile as proxy
byte refs;
byte locked;