scanTile: use annotations in tiles.rc to determine behavior of tiles

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@832 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
jason@long.name 2013-09-01 21:34:06 +00:00
parent 070cd90727
commit bef75adc90
3 changed files with 194 additions and 193 deletions

View file

@ -242,6 +242,14 @@ public class TileConstants
}
}
//used by scanTile
public static String getTileBehavior(int tile)
{
tile &= LOMASK;
TileSpec ts = Tiles.get(tile);
return ts != null ? ts.getAttribute("behavior") : null;
}
//used by queryZoneStatus
public static int getDescriptionNumber(int tile)
{