Commit Graph
87 Commits
Author SHA1 Message Date
Paul Gilbert 0094b4225c TITANIC: More properly handle parser clearing after sentence processing
The original actually freed the parser entirely from within findFrames,
and then recreated it each time a sentence is parsed. Since this is
nasty, and in ScummVM _parser isn't dynamically created, I settled on
adding a clear command to completely clear the parser instead.
2018-07-14 16:25:14 -07:00
Paul Gilbert d39d4b9d4b TITANIC: Remove any unfreed parser nodes at the end of sentence parsing
This fixes cases like bug #10621, which are somehow resulting from not
all parser nodes being properly freed after parsing the first sentence
finishes
2018-07-14 13:51:06 -07:00
Adrian Frühwirth c7f3416daa JANITORIAL: Remove trailing whitespace 2018-05-20 23:40:20 +02:00
Paul Gilbert db1c506ee5 TITANIC: Hopefully fix Release mode crash when selecting floors manually 2018-05-02 21:54:24 -04:00
Paul Gilbert 60eca29f3d TITANIC: DE: Fix saying 'ja' to Deskbot during checkin 2017-10-12 20:05:24 -04:00
Paul Gilbert 0fd4e80cb2 TITANIC: Fix buffer overflow in parser searchAndReplace 2017-10-10 19:50:35 -04:00
Paul Gilbert 223867b2f5 TITANIC: DE: Fixes for article handling 2017-10-06 07:16:36 -04:00
Paul Gilbert af99606db8 TITANIC: Fix identified redundant tests & assignments 2017-09-18 22:25:54 -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 76f82799df TITANIC: Fix converting double digit words into numbers 2017-08-12 14:17:42 -04:00
Paul Gilbert 99d50975cc TITANIC: Fix to processing textual numbers in sentences 2017-08-12 12:22:57 -04:00
Paul Gilbert 0bc4248e34 TITANIC: Fix crash saying 'No I dont' to Deskbot 2017-07-30 14:58:01 -04:00
Paul Gilbert 559e6dafe1 TITANIC: Fix access after free in filterConcepts loop 2017-07-18 22:44:55 -04:00
Paul Gilbert 4c15303971 TITANIC: Implement German parser preprocessing 2017-06-22 20:52:39 -04:00
Paul Gilbert 649f51a65e TITANIC: Fix saying goodbye to Bellbot 2017-06-12 20:12:32 -04:00
Paul Gilbert 12f53ca599 TITANIC: Add missing addNode to WC_ABSTRACT handling 2017-06-12 08:16:29 -04:00
Paul Gilbert 4b1762d649 TITANIC: Revert field renamings in CScriptHandler
I initially thought the four concept fields could be given a relevant name
for actor, object, and verb, but on further analysis, it looks like what
fields go in which concept slot depends on the kind of sentence. I haven't
been able to find any consistency, so I'm reverting them back to being
called _concept1P through _concept4P
2017-01-28 16:14:45 -05:00
Paul Gilbert 3087136bab TITANIC: Renamed sentence concept fields in CScriptHandler 2017-01-28 15:08:15 -05:00
Paul Gilbert 0a5e36d689 TITANIC: Properly handle sentences with multiple objects 2017-01-28 10:59:15 -05:00
Paul Gilbert 927f53368b TITANIC: Properly handle uppercase and 's when normalizing conv text 2017-01-28 09:22:26 -05:00
Paul Gilbert e9e8d68cc9 TITANIC: Use ParserAction enum in calls to addNode 2017-01-27 22:02:00 -05:00
Paul Gilbert 8c48fd6bc7 TITANIC: Don't untimely remove unrecognised COMPLEX_VERB parser nodes 2017-01-27 21:50:37 -05:00
Paul Gilbert 66eb358ded TITANIC: Fix incorrect local assignment in CHECK_COMMAND_FORM case 2016-11-13 15:59:59 -05:00
Paul Gilbert 5474a9b7c1 TITANIC: Field renamings, and fix for incorrect switch cases 2016-11-11 10:23:18 -05:00
Paul Gilbert e6c15b8f4d TITANIC: Fix crash in TTparser::processModifiers 2016-11-06 14:36:45 -05:00
Paul Gilbert 4e927128da TITANIC: Parser fix for saying 'no' to having reservation 2016-11-05 09:03:22 -04:00
Paul Gilbert 3fb2beb57e TITANIC: Fix removing parser nodes after processing 2016-11-04 19:39:57 -04:00
Paul Gilbert e58dad8bb6 TITANIC: Parser fixes for using unrecognised words 2016-11-03 23:04:58 -04:00
Paul Gilbert c3e026564a TITANIC: Fix choosing correct vocab matches for words 2016-11-03 20:45:08 -04:00
Paul Gilbert 8abe97dfda TITANIC: Parser fixes 2016-11-02 21:31:14 -04:00
Eugene Sandulenko dead4aa014 JANITORIAL: Remove trailing spaces 2016-10-09 14:59:58 +02:00
Paul Gilbert 33737ea2dc TITANIC: Convert many static_casts to dynamic_cast 2016-09-01 19:10:36 -04:00
Paul Gilbert 66efdc239c TITANIC: gcc compilation fixes 2016-07-15 19:19:28 -04:00
Paul Gilbert 15843eb4c2 TITANIC: Remainder of TTparser considerRequests 2016-07-15 19:16:26 -04:00
Paul Gilbert fb6e94e8bb TITANIC: Remaining tag switch cases in TTparser considerRequests 2016-07-15 19:16:22 -04:00
Paul Gilbert a261041be7 TITANIC: Adding tag switches to TTparser considerRequests 2016-07-15 19:16:19 -04:00
Paul Gilbert ef186e1a2e TITANIC: Convert outer tag comparisons to switch cases in TTparser considerRequests 2016-07-15 19:16:16 -04:00
Paul Gilbert eaab1605e0 TITANIC: Finished inner switch of TTparser considerRequests 2016-07-15 19:16:12 -04:00
Paul Gilbert 079a734831 TITANIC: Fleshing out TTparser considerRequests 2016-07-15 19:16:09 -04:00
Paul Gilbert 23cd7fd299 TITANIC: Fleshing out TTparser considerRequests 2016-07-15 19:16:06 -04:00
Paul Gilbert 8a31189121 TITANIC: Adding more to TTparser considerRequests, and support methods 2016-07-15 19:16:02 -04:00
Paul Gilbert 5ffe93ad9b TITANIC: Finished TTparser processModifiers 2016-07-15 19:15:59 -04:00
Paul Gilbert de1bb1e95c TITANIC: In-progress TTparser processModifiers 2016-07-15 19:15:56 -04:00
Paul Gilbert 409271778e TITANIC: Added TTparser removeNode 2016-07-15 19:15:52 -04:00
Paul Gilbert 1fff06e97a TITANIC: Added TTparser processRequests 2016-07-15 19:15:49 -04:00
Paul Gilbert 63439a1c94 TITANIC: Finished TTparser checkForAction 2016-07-15 19:15:46 -04:00
Paul Gilbert 35f1839063 TITANIC: More work on TTparser considerRequests 2016-07-15 19:15:43 -04:00
Paul Gilbert f98ad33134 TITANIC: In-progress TTparser checkForAction 2016-07-15 19:15:40 -04:00
Paul Gilbert 1992afe4aa TITANIC: Added TTconceptNode createConcept 2016-07-15 19:15:36 -04:00
Paul Gilbert 986ab4b0d1 TITANIC: Added TTsentence fn2 method 2016-07-15 19:15:33 -04:00