diff options
Diffstat (limited to 'src/bridge.h')
-rw-r--r-- | src/bridge.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/bridge.h b/src/bridge.h index 648d54dde..b037316d8 100644 --- a/src/bridge.h +++ b/src/bridge.h @@ -9,6 +9,23 @@ #include "direction_type.h" #include "tile_cmd.h" +/** This enum is related to the definition of bridge pieces, + * which is used to determine the proper sprite table to use + * while drawing a given bridge part. + */ +enum BridgePieces { + BRIDGE_PIECE_NORTH = 0, + BRIDGE_PIECE_SOUTH, + BRIDGE_PIECE_INNER_NORTH, + BRIDGE_PIECE_INNER_SOUTH, + BRIDGE_PIECE_MIDDLE_ODD, + BRIDGE_PIECE_MIDDLE_EVEN, + BRIDGE_PIECE_HEAD, + BRIDGE_PIECE_INVALID, +}; + +DECLARE_POSTFIX_INCREMENT(BridgePieces); + enum { MAX_BRIDGES = 13 }; |