javadocs: explain a little more about draw bridges

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@570 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
jason@long.name 2013-02-23 12:53:51 +00:00
parent 4158265409
commit 84fa05500b
2 changed files with 10 additions and 2 deletions

View file

@ -275,6 +275,14 @@ class MapScanner
/**
* Called when the current tile is a road bridge over water.
* Handles the draw bridge. For the draw bridge to appear,
* there must be a boat on the water, the boat must be
* within a certain distance of the bridge, it must be where
* the map generator placed 'channel' tiles (these are tiles
* that look just like regular river tiles but have a different
* numeric value), and you must be a little lucky.
*
* @return true if the draw bridge is open; false otherwise
*/
boolean doBridge()
{

View file

@ -135,7 +135,7 @@ public class TileConstants
public static final char NUCLEAR = 816;
public static final char LASTZONE = 826;
public static final char LIGHTNINGBOLT = 827;
public static final char HBRDG0 = 828;
public static final char HBRDG0 = 828; //draw bridge tiles (horz)
public static final char HBRDG1 = 829;
public static final char HBRDG2 = 830;
public static final char HBRDG3 = 831;
@ -152,7 +152,7 @@ public class TileConstants
public static final char COALSMOKE4 = 928;
public static final char FOOTBALLGAME1 = 932;
public static final char FOOTBALLGAME2 = 940;
public static final char VBRDG0 = 948;
public static final char VBRDG0 = 948; //draw bridge tiles (vert)
public static final char VBRDG1 = 949;
public static final char VBRDG2 = 950;
public static final char VBRDG3 = 951;