]> git.pond.sub.org Git - empserver/commit
march: Require all land units to start in the same sector
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 28 Dec 2014 21:24:17 +0000 (22:24 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 28 Feb 2015 15:13:14 +0000 (16:13 +0100)
commit69c99a0f298c59feae8cdc705b34749da56ae5b9
treed04d0c08e01a13012e2a81992cac68a65b7aef43
parent5d0faf7a886c6d32b22b9c56bd31077843b77298
march: Require all land units to start in the same sector

The capability to march land units spread over several sectors is
obscure and rarely useful.  Accidental use is probably more frequent
than intentional use.  Issues:

* Interactive prompts show only the leader's position, and give no
  clue that some land units are actually elsewhere.

* Path finding is supported only when all marching land units are in
  the same sector.

* In each step, the bmap is updated for the leader's radar.  The bmap
  is not updated around other marching land units.  Already odd when
  all units are in the leader's sector, and odder still when some are
  elsewhere.

* Interdiction becomes rather complex.  For each movement, every
  sector entered is interdicted independently.  This means the same
  ship, land unit or plane can interdict multiple times.  Interdiction
  order depends on the order the code examines land units. 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 march.

I feel we're better off without this feature.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
include/land.h
info/march.t
src/lib/commands/marc.c
src/lib/commands/navi.c
src/lib/subs/lndsub.c
tests/navi-march-test
tests/navi-march/02-march-1
tests/navi-march/final.xdump
tests/navi-march/journal.log