Nicola Mettifogo
eb5beef6a1
* Added secondary inventories for BRA.
...
* Added comments where code must be added/updated to support multiple inventories.
svn-id: r44476
2009-09-30 07:47:58 +00:00
Torbjörn Andersson
0999534749
The error() and warning() functions add ! and newline automatically. (I didn't
...
look at debug() and debugC(), since I'm really bored with this now. :-)
svn-id: r41061
2009-05-31 10:02:16 +00:00
Nicola Mettifogo
8151a1d878
Removed useless references to the global _vm.
...
svn-id: r39879
2009-04-06 17:31:22 +00:00
Nicola Mettifogo
666f0720ab
(Re)link bounding animations after location has been completely parsed. This avoids problems due to forward references.
...
svn-id: r39740
2009-03-29 13:56:16 +00:00
Nicola Mettifogo
28465d73bb
Merged CommandData into Command.
...
svn-id: r39732
2009-03-29 10:18:09 +00:00
Nicola Mettifogo
329c3321e8
Added workaround for script bug in ticket #2718449 .
...
svn-id: r39724
2009-03-28 14:38:19 +00:00
Nicola Mettifogo
2223627c75
Merged GetData, HearData, SpeakData, PathData, ExamineData, MergeData into TypeData struct. This simplifies life a bit especially in the parsers.
...
svn-id: r39645
2009-03-23 20:41:54 +00:00
Travis Howell
92e788dbb6
Fix pallete for label font in the Amiga version of BRA.
...
svn-id: r39632
2009-03-23 12:30:47 +00:00
Nicola Mettifogo
d18274d0ee
Implemented all variants of IF script instruction. Program class has been changed to store an Array of instruction instead of a List, so that references to instructions are integers.
...
svn-id: r39631
2009-03-23 11:38:09 +00:00
Nicola Mettifogo
4f2e22e87a
Partly implemented the STOP script instruction.
...
svn-id: r39624
2009-03-23 08:05:20 +00:00
Nicola Mettifogo
5c714cb46e
Implemented MOVE script instruction.
...
svn-id: r39623
2009-03-23 08:00:39 +00:00
Nicola Mettifogo
71f42a9549
Fully implemented scrolling.
...
svn-id: r39622
2009-03-23 00:56:05 +00:00
Nicola Mettifogo
040da3353f
Marked PUT, PRINT and WAIT commands as not used in the scripts of BRA (thus they won't be implemented).
...
svn-id: r39075
2009-03-02 15:31:07 +00:00
Nicola Mettifogo
11a49681e4
Implemented 'open', 'close' and 'leave' commands.
...
svn-id: r39073
2009-03-02 11:58:40 +00:00
Nicola Mettifogo
d5d006bb30
Cleanup of CommandExec and ProgramExec, and pushed down dependencies from exec.h.
...
svn-id: r38892
2009-02-26 06:16:35 +00:00
Nicola Mettifogo
301e9d73d1
* Rebased Parallaction_br to inherit from Parallaction instead of Parallaction_ns
...
* Same as above for CommandExec_br and ProgramExec_br
This should finally kill most issues with destruction, at the cost of some code duplication.
svn-id: r38877
2009-02-25 09:15:53 +00:00
Nicola Mettifogo
6334125d1c
Implemented follower support, except that:
...
* follower is forgotten when location changes (see freeLocation)
* the final walking frame is screwed
svn-id: r38838
2009-02-24 11:20:45 +00:00
Nicola Mettifogo
5dff53a2fa
Added preliminary code for following walker support in BRA.
...
svn-id: r38837
2009-02-24 09:18:20 +00:00
Nicola Mettifogo
659c9fb901
Changed interface to walk code, to better handle the differences between games. Moreover:
...
* merged PathBuilder_BR into PathWalker_BR
* implemented checkTrap routine for BRA
svn-id: r38836
2009-02-24 08:42:46 +00:00
Nicola Mettifogo
e088f680a6
Fix for bug #2619824 . Command list execution is now paused when showing credits. This fixes the Amiga demo of Nippon Safes, which would otherwise quit without displaying the credits.
...
svn-id: r38662
2009-02-21 04:44:20 +00:00
Nicola Mettifogo
f2b495ba2d
Implemented counters in BRA. Only valid answer options are shown, and counter calculations in scripts are performed.
...
svn-id: r35723
2009-01-04 14:23:20 +00:00
Nicola Mettifogo
7681461b16
Implemented horizontal scrolling for BRA, by using a back buffer. Dialogues in scrollable locations are a bit messed up for the moment.
...
svn-id: r35253
2008-12-06 04:51:04 +00:00
Nicola Mettifogo
47b1a06e3b
Removed unused code and structures, and a bit of cleanup.
...
svn-id: r34080
2008-08-21 12:11:24 +00:00
Nicola Mettifogo
2679f6ce7a
Disabled lip syncing code in BRA, since I couldn't find any scripts actually using it. Some warnings have been added as a sentinel.
...
svn-id: r33890
2008-08-15 03:36:01 +00:00
Nicola Mettifogo
ea2a2cbb7c
Simplified handling of script variables (especially locals).
...
svn-id: r33889
2008-08-15 02:52:42 +00:00
Nicola Mettifogo
15f4bc43cf
More cleanup.
...
svn-id: r33861
2008-08-14 10:24:39 +00:00
Nicola Mettifogo
4447be7102
Cleanup.
...
svn-id: r33860
2008-08-14 10:04:43 +00:00
Nicola Mettifogo
3dbeeaf8a1
* Unified implementation of flow control opcodes in NS and BRA
...
* Simplified script execution loop and context
svn-id: r33437
2008-07-30 07:58:25 +00:00
Nicola Mettifogo
f46ee2b70c
* Implemented pause/resume of command execution
...
* Implemented command opcode MOVE (not the script instruction).
svn-id: r33408
2008-07-29 12:59:55 +00:00
Nicola Mettifogo
fb388deb99
Implemented opcodes for picking up/dropping/opening/closing items.
...
svn-id: r33370
2008-07-28 11:48:04 +00:00
Nicola Mettifogo
8d59006bd7
Some instrumentation for script debugging.
...
svn-id: r33359
2008-07-28 08:25:06 +00:00
Nicola Mettifogo
d1a6b175f5
* Merged old input management flags into a single mouse status variable.
...
* Mouse is now displayed when it is needed, and hidden when it is not ;)
svn-id: r33270
2008-07-25 02:37:55 +00:00
Nicola Mettifogo
8ba56e98cf
Cleanup.
...
svn-id: r33006
2008-07-11 13:36:22 +00:00
Nicola Mettifogo
8ed023142a
Moved program and command execution code out of the engine, into their own brand new
...
classes.
svn-id: r33003
2008-07-11 13:06:28 +00:00
Nicola Mettifogo
d387d1af0e
- Moved dialogue balloon management code from Gfx to its own class
...
- Added a class to draw balloons in BRA (still without text and with wrong placement)
svn-id: r32902
2008-07-04 00:29:21 +00:00
Nicola Mettifogo
77a60673ef
- Changed labels to be GfxObj's, thus removing the Label object altogether.
...
- Changed Item's to be almost GfxObj's, since ownership and destruction of underlying resource is an issue here (got to think some more about it).
svn-id: r32873
2008-07-02 01:41:08 +00:00
Nicola Mettifogo
73832f2edd
* Implemented character change opcodes in BRA
...
* Fixed loading of dialogue characters in BRA
svn-id: r32529
2008-06-04 09:07:55 +00:00
Nicola Mettifogo
22d63345e3
Got rid of the static arrays for initialization of parsers and exec opcodes, to make returning to launcher easier. The code has been borrowed by Kyra, after suggestion by LordHoto.
...
svn-id: r32465
2008-06-01 14:05:39 +00:00
Nicola Mettifogo
40ff1537a9
- Moved input code to its own class.
...
- Slightly simplified inventory highlight code thanks to changes in input code.
svn-id: r32115
2008-05-14 14:34:01 +00:00
Nicola Mettifogo
c7c8bb99ee
Tiny cleanup to ease extraction of the program parser code.
...
svn-id: r31959
2008-05-09 01:42:25 +00:00
Nicola Mettifogo
1ddd54b50d
- Moved some members from the engine class to Location, since they belong there.
...
- Cleaned up usage of location flags by using accessor functions.
svn-id: r31872
2008-05-05 11:02:40 +00:00
Nicola Mettifogo
3d1a2e2049
Replaced custom ManagedList with Common::SharedPtr.
...
svn-id: r31415
2008-04-06 05:40:02 +00:00
Nicola Mettifogo
435c437f6d
More refactoring for command parsing/execution.
...
svn-id: r30841
2008-02-09 23:26:45 +00:00
Nicola Mettifogo
cf724e889c
Added new debug command to dump scripts execution status.
...
svn-id: r30840
2008-02-09 22:07:51 +00:00
Nicola Mettifogo
58d58d5100
Implemented scroll command and added a couple more debug variables.
...
svn-id: r30814
2008-02-07 12:49:46 +00:00
Nicola Mettifogo
782563f749
Implemented some more opcodes in BRA. Animations should now be visible in most locations.
...
svn-id: r30806
2008-02-06 13:44:31 +00:00
Nicola Mettifogo
dabefdce05
Changed main loop to allow BRA to return to menu after intro.
...
svn-id: r30798
2008-02-05 10:24:22 +00:00
Nicola Mettifogo
265621de58
Fixes to make BRA introduction run:
...
- fixed location command parser
- implemented stop command
- temporary disabled speak zones (audio is not yet supported)
svn-id: r30796
2008-02-05 09:30:58 +00:00
Nicola Mettifogo
a2101c0c6c
Added FIXME comment about wrong color for subtitles in BRA.
...
svn-id: r30790
2008-02-04 19:57:17 +00:00
Nicola Mettifogo
da98d10ebd
instOp_on and instOp_off are now implemented, so removed warnings.
...
svn-id: r30771
2008-02-03 16:56:25 +00:00