The capability to navigate ships spread over several sectors is obscure and rarely useful. Accidental use is probably more frequent than intentional use. Issues: * Interactive prompts show only the flagship's position, and give no clue that some ships are actually elsewhere. * Path finding is supported only when all navigating ships are in the same sector. * Interdiction becomes rather complex. For each movement, every sector entered is interdicted independently. This means the same fort, ship, land unit or plane can interdict multiple times. Interdiction order depends on the order the code examines ships. which the player can control. This is all pretty much undocumented. * Complicates the code and its maintenance. Multiplies the number of test cases needed to cover navigate. I feel we're better off without this feature. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
25 lines
384 B
Bash
Executable file
25 lines
384 B
Bash
Executable file
#!/bin/sh -e
|
|
# navigate and march test for Empire
|
|
|
|
if [ $# -ne 1 ]
|
|
then echo "Usage: $0 SRCDIR" >&2; exit 1
|
|
fi
|
|
|
|
srcdir="$1"
|
|
|
|
. "$srcdir"/tests/test-common.sh
|
|
|
|
create_sandbox
|
|
cat >>$econfig <<EOF
|
|
WORLD_X 32
|
|
WORLD_Y 16
|
|
MARKET 1
|
|
EOF
|
|
customize big-city
|
|
# TODO cover RAILWAYS 0
|
|
|
|
begin_test "$srcdir"/tests/navi-march/setup-POGO
|
|
feed_dir "$srcdir"/tests/navi-march
|
|
end_test
|
|
|
|
cmp_logs_xdump
|