buildings: for component tiles, link back to the owner tile
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@811 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
3941b35fa4
commit
7069c8150c
3 changed files with 20 additions and 0 deletions
|
@ -1093,6 +1093,13 @@ public class MainWindow extends JFrame
|
|||
|
||||
ZoneStatus z = engine.queryZoneStatus(xpos, ypos);
|
||||
notificationPane.showZoneStatus(engine, xpos, ypos, z);
|
||||
|
||||
TileSpec ts = Tiles.get(engine.getTile(xpos, ypos) & TileConstants.LOMASK);
|
||||
if (ts != null) {
|
||||
System.out.println("owner: "+ts.owner);
|
||||
System.out.println(" x: "+ts.ownerOffsetX);
|
||||
System.out.println(" y: "+ts.ownerOffsetY);
|
||||
}
|
||||
}
|
||||
|
||||
private void doZoom(int dir, Point mousePt)
|
||||
|
|
Reference in a new issue