In real life, material production and consumption rarely occur in the same place at the same time. For some games, the player must transfer materials manually, by loading and unloading from units. However, this can be time-consuming and difficult, and is best reserved for scarce and/or valuable materials. For more common materials, Xconq provides supply lines.
Table: in-length
u1 m -> dist
Table: out-length
u2 m -> dist
These two tables together determine the length of supply lines
between units. The given type of material can only be transferred from
unit type u1 to unit type u2
if the distance is less than the minimum of
the in-length
of u1 and the out-length
of u2.
For instance, the in-length
for a fighter's fuel might be 3 cells,
while the out-length
of fuel from a city is 4 cells.
Then the fighter will be constantly supplied with fuel
when within 3 cells of a city.
If the fighter's out-length is -1, it will never
transfer any fuel to the city.
An in- or out-length of 0
means that the two units must be
in the same cell,
while a negative length disables the automatic transfer completely.
Long out-length
lines should be used sparingly,
since the algorithm uses the out-length
to
define a radius of search for units to be resupplied.
Both default to 0
.