Commit Graph
55 Commits
Author SHA1 Message Date
Filippos Karapetis 709d606e01 STARTREK: Adapt many usages of Common::SharedPtr() to regular pointers 2019-06-11 00:48:16 +03:00
Filippos Karapetis f6af273fca STARTREK: Fix MSVC warnings
- Disable duplicate if block
- Fix potentially uninitialized variables
- Change _activeMenu to be a regular pointer, instead of a SharedPtr - it was not
initialized correctly
- Fix struct packing in structs with pointers to complex objects
- Fix sound initialization
- Fix memory leaks (handles to files which were never deleted)
2019-05-27 14:53:44 +03:00
Strangerke 0355ebdacf STARTREK: Reduce a couple of variable scope, add a CHECKME 2018-08-10 07:31:07 +02:00
Eugene Sandulenko 85cd347503 STARTREK: Fix compilation on macOS
nullptr is an object on macOS.
2018-08-09 09:20:51 +02:00
Strangerke be4174dc3d STARTREK: Janitorial: Add end of namespace comments 2018-08-09 08:37:30 +02:00
Matthew Stewart 42b228144a STARTREK: Allow engine to run without voc files 2018-08-09 08:37:30 +02:00
Matthew Stewart 919db23841 STARTREK: Implement "BAN" files.
These are background animations in various rooms, purely visual.
2018-08-09 08:37:30 +02:00
Matthew Stewart b1fa6126cc STARTREK: Link away missions together, temporarily 2018-08-09 08:37:30 +02:00
Matthew Stewart fe98dbb69d STARTREK: Reformat with artistic style 2018-08-09 08:37:30 +02:00
Matthew Stewart 0e85e19ee7 STARTREK: Move function descriptions to headers 2018-08-09 08:37:30 +02:00
Matthew Stewart c2dd39a6c2 STARTREK: Remove some gotos 2018-08-09 08:37:30 +02:00
Matthew Stewart 710b9db0fd STARTREK: Rename fixed-point types 2018-08-09 08:37:30 +02:00
Matthew Stewart ac9cd1f00a STARTREK: Implement fixed-point decimal class 2018-08-09 08:37:30 +02:00
Matthew Stewart 2771797eb0 STARTREK: "Use" action was bypassing "disableWalk"
When objects could be walked to by "using" them, this bypassed the
"disableWalk" variable.
2018-08-09 08:37:30 +02:00
Matthew Stewart 5863f515f7 STARTREK: FEATHER5 2018-08-09 08:37:30 +02:00
Matthew Stewart 8c71f2db84 STARTREK: Make Action struct POD again 2018-08-09 08:37:30 +02:00
Matthew Stewart 051ea8c238 STARTREK: FEATHER1 2018-08-09 08:37:30 +02:00
Matthew Stewart bfb312a319 STARTREK: Done with atmosphere loss event 2018-08-09 08:37:30 +02:00
Matthew Stewart 933ab32b0e STARTREK: Start on MUDD's life-support-loss code 2018-08-09 08:37:30 +02:00
Matthew Stewart b3c3174102 STARTREK: MUDD5 2018-08-09 08:37:30 +02:00
Matthew Stewart a636aacf51 STARTREK: MUDD4 2018-08-09 08:37:30 +02:00
Matthew Stewart 0879985ddd STARTREK: MUDD3 2018-08-09 08:37:30 +02:00
Matthew Stewart c471503581 STARTREK: MUDD2 2018-08-09 08:37:30 +02:00
Matthew Stewart 7cff724864 STARTREK: MUDD1 2018-08-09 08:37:30 +02:00
Matthew Stewart 4c0eb3aa67 STARTREK: MUDD0 2018-08-09 08:37:30 +02:00
Matthew Stewart aa41f89395 STARTREK: Fix memory leak in drawAllSprites 2018-08-09 08:37:30 +02:00
Matthew Stewart c3bd0347ad STARTREK: More minor fixes to LOVE mission 2018-08-09 08:37:30 +02:00
Matthew Stewart 62cd8e4730 STARTREK: Implement keybindings on away missions 2018-08-09 08:37:30 +02:00
Matthew Stewart e367f9d25e STARTREK: Fix swapped McCoy & Spock speaker names 2018-08-09 08:37:30 +02:00
Matthew Stewart a5c7d6ae11 STARTREK: Revamp of action callbacks.
Old system of putting a callback in an action wouldn't work since it
wasn't serializable. Now it seaches for an index corresponding to the
function pointer before constructing an action.
2018-08-09 08:37:30 +02:00
Matthew Stewart 958a9065aa STARTREK: LOVE5 2018-08-09 08:37:30 +02:00
Matthew Stewart 43a0a574ff STARTREK: LOVE4 2018-08-09 08:37:30 +02:00
Matthew Stewart 08ead492d8 STARTREK: LOVE3 finished.
Added "callback" variants of the "walkCrewman" and "loadActorAnim"
functions to simplify chains of calls in room-specific code.
2018-08-09 08:37:30 +02:00
Matthew Stewart 16042faa65 STARTREK: Start on LOVE3 2018-08-09 08:37:30 +02:00
Matthew Stewart dc1e44efb9 STARTREK: Most of LOVE2 done 2018-08-09 08:37:30 +02:00
Matthew Stewart a4b67dabf6 STARTREK: Change spawn room back to room 0 2018-08-09 08:37:30 +02:00
Matthew Stewart 487c3fda32 STARTREK: TUG2 2018-08-09 08:37:30 +02:00
Matthew Stewart 41997ebc20 STARTREK: Default text for undefined actions 2018-08-09 08:37:30 +02:00
Matthew Stewart fe5658ca17 STARTREK: Mission 1 finished 2018-08-09 08:37:30 +02:00
Matthew Stewart 1290b7ea02 STARTREK: Demon6, including the special case menu 2018-08-09 08:37:30 +02:00
Matthew Stewart e5a97d9137 STARTREK: Demon5 2018-08-09 08:37:30 +02:00
Matthew Stewart 2e80a35e08 STARTREK: Sort text alphabetically by ID 2018-08-09 08:37:30 +02:00
Matthew Stewart 5b28ece2b5 STARTREK: Begin with Demon4 2018-08-09 08:37:30 +02:00
Matthew Stewart 45ae72b763 STARTREK: DEMON1 done (klingon attack) 2018-08-09 08:37:30 +02:00
Matthew Stewart ca3a9dcc87 STARTREK: Finish implementing first room
Doors now work, and the system of "walking, then performing an action
afterward" is implemented.
2018-08-09 08:37:30 +02:00
Matthew Stewart bd79e4d653 STARTREK: Begin on room-specific code for room 1 2018-08-09 08:37:30 +02:00
Matthew Stewart 66b4ec36bd STARTREK: Cleanup some text code 2018-08-09 08:37:30 +02:00
Matthew Stewart a6bee58f62 STARTREK: Default behaviour for look action 2018-08-09 08:37:30 +02:00
Matthew Stewart f66b77d9fd STARTREK: Rename objects to actors 2018-08-09 08:37:30 +02:00
Matthew Stewart 6117a89194 STARTREK: Inventory menu and hotspots
Action buttons now react when hovering over hotspots.
2018-08-09 08:37:30 +02:00