Micropolis
|
Implements connection utilities for roads, rails, and wires in Micropolis. More...
#include "micropolis.h"
Go to the source code of this file.
Functions | |
static MapTile | neutralizeRoad (MapTile tile) |
Variables | |
static const unsigned short | RoadTable [16] |
static const unsigned short | RailTable [16] |
static const unsigned short | WireTable [16] |
Implements connection utilities for roads, rails, and wires in Micropolis.
This file contains functions for laying down and updating roads, railways, and power lines in the Micropolis game. It handles the logic for determining the appropriate tile transformations when these elements are placed on the map, considering existing terrain and infrastructure. The file includes utilities for bulldozing, repairing, and modifying tiles to ensure correct connectivity and appearance on the game map.
Definition in file connect.cpp.
Remove road from the tile.
tile | Current tile value. |
Definition at line 116 of file connect.cpp.
Referenced by Micropolis::connectTile(), Micropolis::fixSingle(), Micropolis::layDoze(), Micropolis::layRail(), and Micropolis::layWire().
|
static |
Definition at line 94 of file connect.cpp.
|
static |
Definition at line 87 of file connect.cpp.
|
static |
Definition at line 101 of file connect.cpp.