109 Commits

Author SHA1 Message Date
Paul Gilbert
bd381ae8d0 STARTREK: Refactor to use Engine debugger 2020-02-16 13:07:19 +02:00
Filippos Karapetis
0ae3cbc2e8 STARTREK: Reduce usage of SharedPtr, and simplify bitmap related calls 2019-12-28 13:22:18 +02:00
Filippos Karapetis
da9bd9a102 STARTREK: Simplify setBackgroundImage() 2019-12-27 16:54:58 +02:00
Filippos Karapetis
9ebb737a06 STARTREK: Simplify the BAN (misc animations) code 2019-12-27 16:54:57 +02:00
D G Turner
bffb4418bd STARTREK: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-12-01 00:59:20 +00:00
Filippos Karapetis
0c1a04a23c STARTREK: Remove sound function wrappers out of StarTrekEngine 2019-11-03 13:21:41 +02:00
Filippos Karapetis
b2d1cfa126 STARTREK: Refactored mouse cursor and bitmap handling
- Reduced usage of SharedPtr
- Simplified the mouse cursor code (normal, locked, stack handling)
- Simplified the background handling code
- Initialize the mouse cursor after the graphics are initialized
2019-10-29 02:58:36 +02:00
Cameron Cawley
537280c35a
STARTREK: Simplify call to initGraphics() 2019-09-01 17:14:18 +01:00
Filippos Karapetis
8e69e9e462 STARTREK: Fix failed action texts 2019-08-19 00:18:02 +03:00
Filippos Karapetis
878675cbd0 STARTREK: Simplify screen name code and add the "actions" debug command
- The screen name and map name code have been merged and simplified
- Some usage of SharedPtr has been adapted
- Duplicate code for loading the room map has been merged
- The "actions" command has been imported from the tools code
- Cleanup
2019-08-16 14:16:43 +03:00
Filippos Karapetis
384715da84 STARTREK: Add a console
This also fixes an uninitialized pointer crash (_mapFile)
2019-08-15 11:58:15 +03:00
Filippos Karapetis
709d606e01 STARTREK: Adapt many usages of Common::SharedPtr() to regular pointers 2019-06-11 00:48:16 +03:00
Filippos Karapetis
3f7f1a2410 STARTREK: Remove the FileStream wrapper class 2019-06-11 00:48:15 +03:00
Thierry Crozat
66a335eb18 Revert "STARTREK: Start adding a console"
This reverts commit 33fb9809c3a1353d927a3c7dfa41e673d79a089e.
The engine/startrek/console.h and engine/startrek/console.cpp
files were missing from that commit, which break compilation.
2019-05-28 23:55:35 +01:00
Filippos Karapetis
33fb9809c3 STARTREK: Start adding a console
We need to properly inject it to all inner screen update loops
2019-05-28 21:44:07 +03:00
Matthew Stewart
944370c349 STARTREK: Fixes to drawR3Shape; red planet renders 2019-05-28 08:08:52 +03:00
Filippos Karapetis
4ade45cb11 STARTREK: Improve game responsiveness
- Add a delay after screen updates
- Do not update the screen when drawing the background - this is unnecessary
- Fix memory leak when drawing the background
2019-05-27 21:14:08 +03:00
Filippos Karapetis
daf2f07e6b STARTREK: Use Common::String for animation strings 2019-05-27 19:39:29 +03:00
Filippos Karapetis
b0699f703e STARTREK: Fix memory leak 2019-05-27 18:25:57 +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
a6e8744159 STARTREK: remove dead code, simplify if statement by moving out code identical in both branches 2018-08-31 00:24:00 +02:00
David Fioramonti
0805ac2be3 STARTREK: Update cos/sin table constructor change
They now take in the size rather than the power of 2 exponent.
2018-08-18 16:30:57 +02:00
Matthew Stewart
ad6a2bb0bb STARTREK: Make FileStream extend MemoryReadStream 2018-08-09 08:37:30 +02:00
Matthew Stewart
e5e54b8a1f STARTREK: Split up startrek.cpp into more files 2018-08-09 08:37:30 +02:00
Matthew Stewart
c6834a997c STARTREK: Put CD ROM detection into features field 2018-08-09 08:37:30 +02:00
Matthew Stewart
06d7656d42 STARTREK: Play midi sounds on floppy version 2018-08-09 08:37:30 +02:00
Matthew Stewart
ae6c86bc7a STARTREK: Implement save loading from launcher 2018-08-09 08:37:30 +02:00
Matthew Stewart
23b3782b52 STARTREK: SINS0 2018-08-09 08:37:30 +02:00
Matthew Stewart
5660ce8134 STARTREK: Fix .BAN file rendering behind textboxes 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
aa68655742 STARTREK: Formatting corrections 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
eff87179da STARTREK: Half-done implementation of drawR3Shape
Handles drawing, scaling, probably rotating objects in space.
2018-08-09 08:37:30 +02:00
Matthew Stewart
565bf0e967 STARTREK: atan2 function 2018-08-09 08:37:30 +02:00
Matthew Stewart
2b09f698ed STARTREK: sine & cosine 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
a024a3fd45 STARTREK: Move space functions into separate file 2018-08-09 08:37:30 +02:00
Matthew Stewart
639c02b76f STARTREK: Fix sound, support MT32.
Also jump to the first mission after the intro.
2018-08-09 08:37:30 +02:00
Matthew Stewart
52cfe60271 STARTREK: Get starfields working for the intro 2018-08-09 08:37:30 +02:00
Matthew Stewart
0f3efc0e55 STARTREK: TRIAL0 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
51e2c85a25 STARTREK: FEATHER0 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
b3c3174102 STARTREK: MUDD5 2018-08-09 08:37:30 +02:00
Matthew Stewart
296bad07b8 STARTREK: Missing null-terminator with animations 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