Commit graph

10 commits

Author SHA1 Message Date
Paul Gilbert
32735d59e8 TITANIC: DE: Adding sound translations 2017-09-20 20:53:12 -04:00
David Fioramonti
c96b01b82e TITANIC: Reduce header includes for titanic.h
I reduced the header includes a lot in Titanic.h and forward
declared when I could. Titanic.h was including a lot and
a lot of functions that were including it were not using its
API. This will help make it more clear which implementation
files are using which class since they will just need to include
which ones they need.

I also moved the debug related items in Titanic.h into the debugger
header.

I also reordered several of the the header includes to be local to
global.
2017-08-24 04:06:54 -07:00
Paul Gilbert
6b80c13467 TITANIC: Fix the CBilgeDispensorEvent not firing
It seems in the original CGameManager::update, and thus frameMessage,
is called at an ultra high rate, allowing the dispensor's counter to
quickly reach a trigger level. Whereas in the ScummVM implementation,
the update method is only called at most a few times per frame.

Rather than needlessly increasing the rate the update method is called,
I've refactored CBilgeDispensorEvent to not need the counter. Though
it still derives from CAutoSoundEvent so savegame loading still works.
2017-07-25 22:04:28 -04:00
Paul Gilbert
440f092757 TITANIC: Implemented more game classes 2016-08-14 22:19:06 -04:00
Paul Gilbert
5ccc0a66da TITANIC: Removed const modifier from all saveable objects
Turns out that CGameObject::save regenerates the _movieRangeInfo list.
So the const suffix can no longer be used for the entire hierarchy
2016-07-15 19:25:58 -04:00
Paul Gilbert
9f1bab5597 TITANIC: Converting other message stubs to new format 2016-04-07 22:03:35 -04:00
Paul Gilbert
66e198d665 TITANIC: Cleanup and fixes for message hierarchy 2016-03-24 07:49:59 -04:00
Paul Gilbert
4f5202f958 TITANIC: Remove const prefix from passed messages
Turns out that some of the messages have properties that the objects
that handle them can set. For example, the CMouseDragStartMsg has a
_dragItem property that an item that allows dragging will explicitly
set, allowing the input handler to keep track of what was dragged.
2016-03-18 23:18:59 -04:00
Paul Gilbert
a8d94d448e TITANIC: Fixes to make message handling const, adding CEnterRoomMsg handlers 2016-03-17 19:58:59 -04:00
Paul Gilbert
3ae4e63c80 TITANIC: Implemented more saveable classes 2016-03-02 22:05:25 -05:00