Commit graph

22 commits

Author SHA1 Message Date
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
Filippos Karapetis
748aec5783 STARTREK: Refactor room text handling to use offsets (first part)
This is a major change, which allows us to read room texts directly
from RDF files in a deterministic way. The previous attempt to read
texts on the fly failed with some texts at runtime, which made it
unreliable. Additionally, the scope of all room text IDs has been
reduced to each room.

With this change, it's now possible to support text in CD and floppy
versions and support multiple game languages, without hardcoding all
of the game texts in the engine source.

This is 50% done (29 out of 55 rooms), with the following left to be
done:
- MUDD mission rooms (need to improve the text reader for these)
- TRIAL mission rooms (need to improve the text reader for these)
- SINS mission rooms (need to improve the text reader for these)
- The rest of VENG mission rooms

The DEMON, TUG, LOVE, FEATHER and part of the VENG mission rooms have
been converted.
2021-02-08 03:11:46 +02:00
Filippos Karapetis
5e7b556310 STARTREK: Move room action arrays to their respective room
All action arrays now end with a terminator entry. The array count has been removed.
Also, fixed a regression when changing missions in endMission().
2020-12-19 01:50:38 +02:00
Filippos Karapetis
61bf089cb6 STARTREK: Remove the remaining goto's 2020-11-17 23:55:58 +02:00
Filippos Karapetis
ed24377900 STARTREK: Move resource-related functions into a separate class 2020-09-09 22:36:11 +03:00
Filippos Karapetis
df536ad6f8 STARTREK: Reduce usage of SharedPtr in sprites 2020-09-09 22:36:10 +03: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
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
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
e8f0e9e998 STARTREK: Rename the different showText() functions for disambiguation
Hopefully, this will fix the AmigaOS and DS builds
2019-06-11 01:28:12 +03:00
Filippos Karapetis
05301c240b STARTREK: Load more messages from RDF files
The whole Demon chapter has been converted to the new logic.
The offsets for the extra room messages have been hardcoded, for now,
inside loadOtherRoomMessages(), until we figure out how they are
referenced.
2019-06-11 00:48:16 +03:00
D G Turner
42a1b579cb STARTREK: Even More Compilation Fixes. 2018-08-09 14:17:39 +01:00
D G Turner
cc9f820115 STARTREK: Further Compilation Fixes.
Further cases of int vs. int32 / TextRef usage.
2018-08-09 13:59:29 +01:00
Matthew Stewart
8970909318 STARTREK: Reorganize includes in room.h
This should avoid the costly rebuild of everything in the 'rooms/'
folder, at least sometimes...
2018-08-09 08:37:30 +02:00
Matthew Stewart
b8c244da87 STARTREK: Clean up room-specific vars in mission 1 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
ed7d22cd0f STARTREK: Make "missionScore" mission-specific 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
5b28ece2b5 STARTREK: Begin with Demon4 2018-08-09 08:37:30 +02:00