Commit Graph
49 Commits
Author SHA1 Message Date
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 660f7bf114 TITANIC: Further improvements to arrow key movement
The movement code, when deciding on an item or link that matches the
desired direction, will check five points on the object/links area..
center, left edge, right edge, top edge, and bottom edge. For each
of these, it makes sure that at that point, clicking will actually
get passed to it. Otherwise, it moves onto one of the other edges.
This helps avoid issues where links weren't working because standard
scene objects were partially obscuring them.
2017-08-08 22:24:22 -04:00
Paul Gilbert c55e83e776 TITANIC: Remove development link left in computer screen view 2017-08-06 17:45:27 -04:00
Paul Gilbert 89457af33e TITANIC: Don't allow movement link to be used in Starfield Puzlze
The scene has an unused right turn link that wasn't used, and is
covered by the starview. Since movement now uses simulated mouse
clicks, the worst result of clicking right arrow is simply that
a star may be accidentally selected. But for cleanliness, it was
best to fix it. It also allowed the creation of code that other
objects in the view can use to override default movement logic,
just in case it's needed.
2017-08-06 15:25:28 -04:00
Paul Gilbert 380a9da4c9 TITANIC: Changing arrow movement to be done via simulated mouse clicks 2017-08-06 12:30:27 -04:00
Paul Gilbert 07e70d9896 TITANIC: Create new CMovementMsg for new movement functionality
This also moves logic for detecting which movement is associated
with given keycodes and cursors to CMovementMsg and CLinkItem,
which are better suited to contain the logic
2017-08-06 11:58:06 -04:00
Paul Gilbert 1e3a6be863 TITANIC: Fix arrow keys allow getting to bridge before Titania is fixed 2017-08-05 11:26:41 -04:00
Paul Gilbert 3a798b09be TITANIC: Fix arrow movements ignoring restricted moves 2017-08-04 22:20:25 -04:00
Paul Gilbert e44c5bdcc6 TITANIC: Introduce movement via arrow keys
This also fixes a bug with Page Up, Down, Home, & End not working for
the Conversation tab. Additionally, code for scrolling individual
lines in the conversation and glyphs via the arrow keys has been
removed in favor of this centrallised movement, since they were
somewhat redundant, and the mouse wheel can be used for scrolling.
2017-08-04 22:00:49 -04:00
Paul Gilbert 06566151f9 TITANIC: Update cursor after transitioning to new views 2017-07-30 15:58:22 -04:00
Bastien Bouclet bc952807ec TITANIC: Adjust the switch/case fall-through comments
This way, GCC 7 does not generate a warning for those cases when
-Wimplicit-fallthrough=3 is enabled, which is now the default.
2017-07-23 11:12:12 +02:00
Paul Gilbert 3be659b5c1 TITANIC: CGameManager viewChange better named as roomChange 2017-06-11 16:19:54 -04:00
Paul Gilbert 27c80f012a TITANIC: Fix PET not showing on savegame load in front of nav helmet 2017-02-27 19:45:00 -05:00
Paul Gilbert d56e4e4584 TITANIC: Further renamings for CGameObject 2017-02-16 21:34:59 -05:00
Paul Gilbert 8c68a66ca6 TITANIC: Fix activating Bilge SuccUBus 2016-12-28 04:03:52 -05:00
Paul Gilbert a02adba842 TITANIC: Renamings of transitioning counter methods 2016-11-12 19:49:09 -05:00
Paul Gilbert 156d1f7221 TITANIC: Fix crashing entering lifts 2016-11-09 22:07:10 -05:00
Eugene Sandulenko dead4aa014 JANITORIAL: Remove trailing spaces 2016-10-09 14:59:58 +02:00
Paul Gilbert 972e7d65f4 TITANIC: Fix message targets when changing views 2016-09-03 18:23:02 -04:00
Paul Gilbert c6dd30c68e TITANIC: Fix infinite loop in CViewItem findLink 2016-09-01 21:16:32 -04:00
Paul Gilbert 33737ea2dc TITANIC: Convert many static_casts to dynamic_cast 2016-09-01 19:10:36 -04:00
Paul Gilbert ceb49fc839 TITANIC: Further work on view and node positioning 2016-08-02 17:49:41 -04:00
Paul Gilbert 8cf1688535 TITANIC: Fleshing out cViewItem class 2016-08-02 13:25:00 -04:00
Paul Gilbert 3325d42487 TITANIC: Fix Coverity warnings 2016-08-01 20:05:16 -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 66efdc239c TITANIC: gcc compilation fixes 2016-07-15 19:19:28 -04:00
Paul Gilbert fa04a6fdf0 TITANIC: Added CTrueTalkManager playSpeech 2016-07-15 19:16:29 -04:00
Paul Gilbert e7f2cb1ecb TITANIC: Add CComputer messages, more view change logic 2016-04-07 23:39:26 -04:00
Paul Gilbert 6fd32e6dc1 TITANIC: Minor change to Cursor enum 2016-04-07 19:50:16 -04:00
Paul Gilbert bc7a7deb77 TITANIC: Fix showing custom cursors when highlighting objects 2016-04-07 00:06:18 -04:00
Paul Gilbert 51dc36a9a5 TITANIC: Furhter in-progress message handling conversion 2016-04-06 23:28:42 -04:00
Paul Gilbert 51df4d98d3 TITANIC: In-progress converting message handling to be more like original
I currently was using multiple inheritance to define the message classes
that a class supports, but this caused problems when, for example, a
class tested to see if an object supported CMouseMsg. The class in
question supported several mouse messages, but a standard dynamic_cast
returned nullptr for the class, since it didn't directly support it
2016-04-06 22:17:26 -04:00
Paul Gilbert e728e901d0 TITANIC: Fix for showing link cursors in some screens 2016-04-06 20:32:18 -04:00
Paul Gilbert 19e4bca41c TITANIC: Set up cursors enum with better names 2016-04-05 21:14:34 -04:00
Paul Gilbert 4e3ae0cf56 TITANIC: Fix setting cursor when highlighting object 2016-04-05 20:44:20 -04:00
Paul Gilbert 1efbed5409 TITANIC: Move most of the root classes into new support/ folder 2016-04-03 16:16:35 -04:00
Paul Gilbert bbc810e909 TITANIC: Fix crash when looking at television 2016-03-24 13:19:29 -04:00
Paul Gilbert 83c6ebb466 TITANIC: Fix view message handling 2016-03-24 12:58:00 -04:00
Paul Gilbert 66e198d665 TITANIC: Cleanup and fixes for message hierarchy 2016-03-24 07:49:59 -04:00
Paul Gilbert 7d2d624908 TITANIC: More view event handling, beginnings of mouse cursor loading 2016-03-23 20:51:42 -04:00
Paul Gilbert 8b5ad45f4a TITANIC: Minor fixes executing game manager update 2016-03-19 23:02:41 -04:00
Paul Gilbert dbd8ab0f1c TITANIC: Implement view change logic 2016-03-19 20:56:29 -04:00
Paul Gilbert 46d5af527d TITANIC: Finished CViewItem::mouseChange 2016-03-19 18:31:56 -04:00
Paul Gilbert 4704d72d6a TITANIC: Implementing view item message handling 2016-03-19 18:19:45 -04:00
Paul Gilbert d86941f8c6 TITANIC: Implement preEnterView and enterView 2016-03-19 11:03:03 -04:00
Paul Gilbert f1d674c745 TITANIC: Implemented CViewItem::viewChange 2016-03-19 09:50:47 -04:00
Paul Gilbert 6a26539abb TITANIC: Fleshing out resource key and view loading 2016-03-15 23:49:18 -04:00
Paul Gilbert bad72e2ae4 TITANIC: Implement various post-load methods 2016-03-12 19:23:00 -05:00
Paul Gilbert 63db0980e5 TITANIC: Rename of sub-folders for better clarity 2016-02-25 08:48:21 -05:00