Commit Graph

45 Commits

Author SHA1 Message Date
Lioncash bfd17e4513 CActor: Make Render() a non-const function
A few implementations of Render() contain const-casts nested within its
their call hierarchy to get around the fact that this function is marked
const. We can just make the member function non-const to allow removal
of these casts in follow up changes.
2020-04-09 14:32:20 -04:00
Lioncash 67f6666ea1 Runtime: Add more usages of explicit
Prevents error-prone implicit conversions where applicable.

This targets the regular RuntimeCommon target this time around.
2020-03-31 03:53:49 -04:00
Lioncash 7bced5308b CCameraManager: Add names to parameters in prototypes
More self documenting and allows IDE inspections to be better.
2020-03-25 02:33:34 -04:00
Lioncash b3fcbf9a89 CCameraManager: Resolve signed/unsigned mismatch in RemoveCameraShaker
An unsigned value is passed into RemoveCameraShaker at its only usage
spot. This also resolves unsigned/signed comparisons within the function
itself.
2020-01-20 12:51:52 -05:00
Phillip Stephens 00cff89141
Merge pull request #86 from lioncash/header
General: Normalize RuntimeCommon include paths
2019-09-28 08:02:35 -07:00
Lioncash a633b8e8fd General: Normalize RuntimeCommon include paths
Performs the same normalizing done to the RuntimeCommonB target, now all
of the runtime headers have normalized include paths.
2019-09-28 04:14:29 -04:00
Lioncash 359f505787 CCameraManager: Collapse private static variables into functions
Four of the five variables aren't modified, so they can be specified
directly within the functions and just be reused in place of the
variable names. This allows the constants to be elided or put into
read-only memory if necessary. It also makes the mutable value explicit.
2019-09-27 22:46:59 -04:00
Lioncash d3d629d405 RuntimeCommon: Use const on member functions where applicable
Adds missing const qualifiers on class member functions that don't
modify instance state.
2019-08-14 09:25:39 -04:00
Jack Andersen 636c82a568 New code style refactor 2018-12-07 19:30:43 -10:00
Phillip Stephens 96f20512bb More CScriptSpecialFunction imps, fix intermittent crash in CAnimTreeTweenBase 2018-11-18 21:01:39 -08:00
Jack Andersen c91e5df986 Convert to pragma once 2018-10-06 17:42:33 -10:00
Jack Andersen 680cb7b353 Finish CInterpolationCamera 2018-06-27 15:17:01 -10:00
Phillip Stephens 8df333b29a Initial CInterpolationCamera Imps 2018-06-25 23:58:43 -07:00
Jack Andersen 97835607d9 More windows build fixes 2018-02-03 20:46:47 -10:00
Jack Andersen 6854cb9df7 Various bug fixes 2017-11-23 22:23:28 -10:00
Jack Andersen 4af2d975f4 Finish CBallCamera 2017-10-15 19:26:50 -10:00
Jack Andersen 651d0a27c2 More work on CBallCamera 2017-10-09 17:50:48 -10:00
Jack Andersen 75094ca39a Finish CFirstPersonCamera 2017-10-06 19:32:11 -10:00
Jack Andersen 0f68e2ba3f Work on CScriptCameraHint and CCameraManager 2017-10-05 21:29:56 -10:00
Jack Andersen c46010256c Implement CScriptCameraHint scripting interface 2017-10-04 19:40:44 -10:00
Phillip Stephens 9b5ec8f86d Fix visigen/hecl dependencies; Cleanup ViewManager; Various implementations 2017-08-29 06:17:52 -07:00
Jack Andersen 98b2fb6855 Work on CPlayer 2017-08-17 15:30:15 -10:00
Jack Andersen 8e8ce66799 Additional CPlayer implementations 2017-08-15 19:34:02 -10:00
Jack Andersen 884a18b80b Additional CPlayer imps 2017-08-01 21:13:11 -10:00
Jack Andersen 925aa3fe1a More CPlayer imps 2017-07-30 19:19:05 -10:00
Jack Andersen f016a251db Additional CStateManager imps 2017-03-26 09:36:07 -10:00
Jack Andersen c069666307 Player reflection and other imps 2017-03-25 19:53:04 -10:00
Jack Andersen db12dd2ea2 Implement CStateManager::Update 2017-03-23 19:30:16 -10:00
Jack Andersen 6c9462e099 Camera shakers and controller action scripting 2017-03-17 19:12:27 -10:00
Phillip Stephens 71499f3250 Merge branch 'master' of https://github.com/AxioDL/urde 2017-03-05 09:54:43 -08:00
Phillip Stephens fe72458f48 Restore CCameraManager::GetCurrentCamera's proper behavior (AKA, I'm an idiot) 2017-03-05 09:54:00 -08:00
Jack Andersen cac0e328f7 Tons of DrawWorld-related implementations 2017-03-03 18:31:08 -10:00
Jack Andersen 56328c3e4d Lots of CMFGame integration 2017-02-17 16:19:50 -10:00
Phillip Stephens e062de1429 Finish CScriptActor 2017-02-12 16:00:07 -08:00
Phillip Stephens d733dce1cf CCameraManager imps 2016-10-31 15:56:44 -07:00
Phillip Stephens 8f91b453f3 Update submodules 2016-10-15 12:18:50 -07:00
Phillip Stephens b27821c5eb Implement CPlayerCameraBob 2016-09-15 17:56:46 -07:00
Jack Andersen 9ca7f9c9e4 HLSL shader sync, Windows build fixes 2016-08-17 10:05:23 -10:00
Jack Andersen fb1ce432aa CStateManager::InitializeResources() dependencies all in 2016-08-14 15:19:04 -10:00
Jack Andersen 2a425b5a73 Work on CStateManager::InitializeState flow 2016-08-13 17:00:58 -10:00
Phillip Stephens 62ce5286fe CMapWorld stubs, and compile fixes 2016-07-28 00:33:55 -07:00
Jack Andersen 484ef1988b Add camera loader 2016-04-21 17:40:26 -10:00
Jack Andersen 1817227465 CCameraManager imps 2016-04-16 16:50:45 -10:00
Jack Andersen 7afdc556fd Adjust runtime directory layout 2016-04-16 13:48:29 -10:00
Jack Andersen 042030934b Various CStateManager additions and camera stubs 2016-04-16 11:49:47 -10:00