tiles.rc: move CONDBIT knowledge from source code to tiles.rc
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@746 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
b65e83ec79
commit
68717e3ea6
8 changed files with 56 additions and 53 deletions
|
@ -209,7 +209,7 @@ public class TileConstants
|
|||
// status bits
|
||||
//
|
||||
public static final char PWRBIT = 32768; // bit 15 ... currently powered
|
||||
public static final char CONDBIT = 16384; // bit 14 ... can conduct power
|
||||
// bit 14 ... unused
|
||||
// bit 13 ... unused
|
||||
public static final char BULLBIT = 4096; // bit 12 ... is bulldozable
|
||||
// bit 11 ... unused
|
||||
|
@ -304,6 +304,12 @@ public class TileConstants
|
|||
return spec != null && spec.canBurn;
|
||||
}
|
||||
|
||||
public static boolean isConductive(int tile)
|
||||
{
|
||||
TileSpec spec = Tiles.get(tile & LOMASK);
|
||||
return spec != null && spec.canConduct;
|
||||
}
|
||||
|
||||
public static boolean isFire(int tile)
|
||||
{
|
||||
int tmp = tile & LOMASK;
|
||||
|
|
Reference in a new issue