1
0
forked from 0ad/0ad
0ad/source/simulation2
wraitii eac613b7bf Enforce tight coupling of CCmpUnitMotion/CCmpUnitMotionManager
bae258f9a1 implemented CCmpUnitMotionManager, which handles motion for
CCmpUnitMotion (as distinct from ICmpUnitMotion, the interface).
The tight coupling between these two components was awkward at the
interface level, leaking underlying implementation details.

This diff makes CmpUnitMotionManager explicitly manage CmpUnitMotion,
instead of any implementation of ICmpUnitMotion, and moves files around
as requir
ed.
This:
- Makes it impossible to accidentally try to have the wrong
IID_UnitMotion managed by the UnitMotionManager.
- Allows devirtualising the calls from the manager to UnitMotion itself
(and inlining, as they are compiled in the same TU).
- Cleans up the manager interface - MotionState is now part of
CCmpUnitMotionManager.
- Cleans up ICmpUnitMotion interface - no need to provide a private
interface for the manager.

Differential Revision: https://code.wildfiregames.com/D3732
This was SVN commit r25125.
2021-03-26 16:47:07 +00:00
..
components Enforce tight coupling of CCmpUnitMotion/CCmpUnitMotionManager 2021-03-26 16:47:07 +00:00
docs Replace deprecated jsval with JS::Value. 2017-08-28 10:27:36 +00:00
helpers Fixes revealed missed includes after e104b41be2. 2021-03-03 22:38:59 +00:00
scripting Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00
serialization Removes unused containers included in headers. 2021-03-03 23:01:08 +00:00
system Implement a Motion Manager around UnitMotion. 2021-03-17 17:04:51 +00:00
tests Make real directory paths on the VFS predictable (retry) 2021-03-23 12:46:59 +00:00
MessageTypes.h Improve behaviour of formations stuck within other units. 2021-01-05 10:12:47 +00:00
Simulation2.cpp Fixes revealed missed includes after e104b41be2. 2021-03-03 22:38:59 +00:00
Simulation2.h Fixes removed include after 2e4639e6dc. 2021-03-03 23:07:50 +00:00
TypeList.h Implement a Motion Manager around UnitMotion. 2021-03-17 17:04:51 +00:00