0ad/source/simulation2
wraitii 2abd9cead2 Enable garrisoning on gates / fix movement of units with visible garrison points
This addresses two related issues:
- Units visibly garrisoned on gates keep the gate open.
- Units visibly garrisoned on entities keep their pathfinding blocker
flags.

Remove the block-movement flag from visibly garrisoned entities.
Keep a list of entities that cannot move and thus should not count
towards gate-opening logic.

Packing logic is kept separate: it is more related to entities having
'alternate forms' with different capabilities than being currently
incapable of moving.

Based on work by temple

Comments by: Freagarach
Tested by: Nescio
Fixes #2679
Fixes #5151

Differential Revision: https://code.wildfiregames.com/D1418
This was SVN commit r23710.
2020-05-30 09:18:33 +00:00
..
components Enable garrisoning on gates / fix movement of units with visible garrison points 2020-05-30 09:18:33 +00:00
docs Replace deprecated jsval with JS::Value. 2017-08-28 10:27:36 +00:00
helpers Adds const to PathfinderPassability where possible. 2020-01-10 20:37:59 +00:00
scripting Adds snapping to edges for buildings 2020-01-05 01:08:05 +00:00
serialization Replace boost::unordered_map, boost::unordered_set with std::unordered_map, std::unordered_set to establish consistency. 2019-11-25 14:30:25 +00:00
system Remove counterproductive lowercasing of GUI ScriptEvent names, refs #127. 2020-01-15 16:00:37 +00:00
tests Add missing cpp files in last commit refs D2503 2020-05-28 18:18:00 +00:00
MessageTypes.h UnitMotion - Send messages to UnitAI when obstructed, to allow stopping early when walking and avoiding pathfinding lag. 2019-07-22 18:07:24 +00:00
Simulation2.cpp Support testing rejoins on turn 0, refs #3460, #4242, #5185, #5162, 2bf1dbfd13 2019-09-26 12:09:19 +00:00
Simulation2.h Replace boost::unordered_map, boost::unordered_set with std::unordered_map, std::unordered_set to establish consistency. 2019-11-25 14:30:25 +00:00
TypeList.h Add a C++ interface for CCmpAttack. 2020-04-21 21:44:05 +00:00