tile animation: cleanup, remove obsolete ANIMBIT constant

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@737 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
jason@long.name 2013-07-17 20:59:06 +00:00
parent a4f8846ca7
commit 000036c303
9 changed files with 34 additions and 31 deletions

View file

@ -212,7 +212,7 @@ public class TileConstants
public static final char CONDBIT = 16384; // bit 14 ... can conduct power
public static final char BURNBIT = 8192; // bit 13 ... is combustible
public static final char BULLBIT = 4096; // bit 12 ... is bulldozable
public static final char ANIMBIT = 2048; // bit 11 ... animates
// bit 11 ... unused
public static final char ZONEBIT = 1024; // bit 10 ... is the special tile for a zone
public static final char ALLBITS = 64512; // mask for upper 6 bits
@ -280,6 +280,12 @@ public class TileConstants
}
}
public static boolean isAnimated(int tile)
{
TileSpec spec = Tiles.get(tile & LOMASK);
return spec.animNext != null;
}
//used by setFire()
public static boolean isArsonable(int tile)
{