0ad/source/simulation2
Itms 9da482ead4 Based on previous experimental changes, major update to the unit motion.
With this change, units will not check their movement against all
obstructions when moving: terrain and static obstructions are assumed to
be handled by the long-range pathfinder.
However, when static obstructions are changed, the paths have to be
invalidated. In order to minimize the performance impact, units will
check for obstructions when they move after a passability change. If
they collide with something, they will recompute a path that will take
into account the new passability map.

Also includes some code cleanup. This patch should not change
performance a lot: the lower number of checks should give a small
performance improvement while using the message broadcasting system
should hurt it a bit.

Fixes #3376, #3337, #1914.

This was SVN commit r16998.
2015-09-10 18:12:13 +00:00
..
components Based on previous experimental changes, major update to the unit motion. 2015-09-10 18:12:13 +00:00
docs Happy New Year! :D 2015-01-02 14:22:23 +00:00
helpers Replace some functor structs with lambdas, closures or range-based fors. 2015-08-19 03:33:04 +00:00
scripting Based on previous experimental changes, major update to the unit motion. 2015-09-10 18:12:13 +00:00
serialization Handle backrefs properly for maps and sets. Fixes #3374. 2015-08-30 04:51:16 +00:00
system Revert emplace for associative containers. Fixes #3366. 2015-08-19 03:32:47 +00:00
tests Handle backrefs properly for maps and sets. Fixes #3374. 2015-08-30 04:51:16 +00:00
MessageTypes.h Based on previous experimental changes, major update to the unit motion. 2015-09-10 18:12:13 +00:00
Simulation2.cpp Some range-based for loops. 2015-08-20 12:58:41 +00:00
Simulation2.h SpiderMonkey 31 upgrade 2015-01-24 14:46:52 +00:00
TypeList.h Based on previous experimental changes, major update to the unit motion. 2015-09-10 18:12:13 +00:00