Commit Graph

17 Commits

Author SHA1 Message Date
Lioncash 5f4aba60e1 CCollisionPrimitive: Simplify the InitAdd* member functions
We can extract the duplicated behavior out into its own member function
and then reuse it in order to deduplicate repeated behavior.

This allows simplifying the member functions in a manner that allows
declaring most of the variables const. The lack of mutable behavior
within these functions makes it much nicer to read.
2019-10-12 00:27:18 -04:00
Lioncash f9079f0215 Runtime: Make use of std::make_unique where applicable
Makes use of the C++14 make_unique allocation function to allocate class
instances where applicable instead of a reset with a new operator within
it.

This doesn't touch cases where buffers are allocated, given make_unique
would zero-initialize them.
2019-09-12 04:09:48 -04:00
Jack Andersen e218b8aeb5 CActorContraption fixes, better CMake dependency handling 2019-06-11 16:05:17 -10:00
Jack Andersen 636c82a568 New code style refactor 2018-12-07 19:30:43 -10:00
Jack Andersen 2c4967ca4d More work on CMorphBall 2017-09-16 17:13:03 -10:00
Jack Andersen 6f9e6712ce Implement final dynamic collision tests 2017-07-03 19:03:11 -10:00
Jack Andersen ec7ac212ef Finish AABB area colliders 2017-06-25 15:36:31 -10:00
Jack Andersen a2c462529f Add some moving collision implementations 2017-06-22 07:56:51 -10:00
Jack Andersen 71a361f54e Work on collision related implementations 2017-06-17 15:58:13 -10:00
Jack Andersen 2530163a8c Initial collision testing and CStateManager work 2017-03-30 12:36:18 -10:00
Phillip Stephens 4a7a3bea2f FRME Fixes 2017-01-21 07:46:51 -08:00
Phillip Stephens b765ce3eb7 Lots of ScriptObject and Collision work 2017-01-03 20:30:05 -08:00
Phillip Stephens f470b7de93 More collision stubs
Add *.autosave to gitignore
Update specter
2016-06-25 18:13:34 -07:00
Phillip Stephens d3563ea86d More Collision imps 2016-06-24 14:30:25 -07:00
Phillip Stephens c66dac6df2 Initial Collision stubs 2016-06-24 13:09:38 -07:00
Phillip Stephens 2af6117ef8 More collision imps and stubs 2016-04-26 17:26:02 -07:00
Jack Andersen 3ae77d3390 Remaining CStateManager fields, loaders, collision stubs 2016-04-17 12:38:05 -10:00