Commit Graph
62 Commits
Author SHA1 Message Date
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
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
Filippos Karapetis 42ac19e804 STARTREK: Start reading text from RDF files, instead of hardcoding it
Rooms DEMON0 and DEMON5 have been partially adapted to the new logic.

This isn't yet fully functional, for the following reasons:
- We only read the main text block. There are also some others which
are not handled yet. The unhandled blocks have been kept in text.cpp
- We load text in dictionaries, splitting the strings in look and talk.
However, there's a third category (look with a talker), which isn't
handled yet
- Text is loaded per-room, but there are enhancements where text and
samples are loaded from other rooms. These need to be refactored
2019-05-28 21:41:58 +03:00
Filippos Karapetis daf2f07e6b STARTREK: Use Common::String for animation strings 2019-05-27 19:39:29 +03:00
D G Turner 42a1b579cb STARTREK: Even More Compilation Fixes. 2018-08-09 14:17:39 +01:00
Matthew Stewart bd1b9f66cb STARTREK: Implement republic map screen 2018-08-09 08:37:30 +02:00
Matthew Stewart 08ef636a98 STARTREK: VENG0 2018-08-09 08:37:30 +02:00
Matthew Stewart ba05b5539b STARTREK: Various code cleanup 2018-08-09 08:37:30 +02:00
Matthew Stewart ce42cd940a STARTREK: Use ARRAYSIZE macro 2018-08-09 08:37:30 +02:00
Strangerke be4174dc3d STARTREK: Janitorial: Add end of namespace comments 2018-08-09 08:37:30 +02: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 f412328181 STARTREK: Implement text input boxes
Needed for SINS mission with the keypads
2018-08-09 08:37:30 +02:00
Matthew Stewart b2213cac9b STARTREK: SINS1 2018-08-09 08:37:30 +02:00
Matthew Stewart 23b3782b52 STARTREK: SINS0 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 ac9cd1f00a STARTREK: Implement fixed-point decimal class 2018-08-09 08:37:30 +02:00
Matthew Stewart 793a5b6020 STARTREK: TRIAL5 2018-08-09 08:37:30 +02:00
Matthew Stewart 3cccf65179 STARTREK: TRIAL1 2018-08-09 08:37:30 +02:00
Matthew Stewart 0f3efc0e55 STARTREK: TRIAL0 2018-08-09 08:37:30 +02:00
Matthew Stewart 6fa0efa4ed STARTREK: Make a macro to simplify room detection 2018-08-09 08:37:30 +02:00
Matthew Stewart 092cf422ca STARTREK: FEATHER7 2018-08-09 08:37:30 +02:00
Matthew Stewart b02124b5ee STARTREK: FEATHER6 2018-08-09 08:37:30 +02:00
Matthew Stewart 5863f515f7 STARTREK: FEATHER5 2018-08-09 08:37:30 +02:00
Matthew Stewart 8aef8c4539 STARTREK: FEATHER4 2018-08-09 08:37:30 +02:00
Matthew Stewart 1e60b6f96b STARTREK: FEATHER3 2018-08-09 08:37:30 +02:00
Matthew Stewart ae3be7b407 STARTREK: FEATHER2 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 51e2c85a25 STARTREK: FEATHER0 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 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 cfb5daa8f0 STARTREK: Fixes to textboxes
Center the speaker name, and show the choice number when there are
multiple choices.
2018-08-09 08:37:30 +02:00
Matthew Stewart aca1987056 STARTREK: Implement common code for LOVE mission 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 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 dc1e44efb9 STARTREK: Most of LOVE2 done 2018-08-09 08:37:30 +02:00
Matthew Stewart 933d21429f STARTREK: LOVE1 2018-08-09 08:37:30 +02:00
Matthew Stewart efda57c114 STARTREK: LOVE0 (start of 3rd mission) 2018-08-09 08:37:30 +02:00
Matthew Stewart 6e322ebfc5 STARTREK: TUG3 (mission 2 finished) 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 0c28fd964e STARTREK: TUG1 2018-08-09 08:37:30 +02:00
Matthew Stewart ad76c744af STARTREK: TUG0 (first room of mission 2) 2018-08-09 08:37:30 +02:00
Matthew Stewart 84a30e4dce STARTREK: Preliminary saving/loading 2018-08-09 08:37:30 +02:00