Commit Graph

727 Commits

Author SHA1 Message Date
Nicola Mettifogo
2f92ebde2b oops. Changed stricmp to scumm_stricmp from last commit.
svn-id: r32531
2008-06-04 09:39:38 +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
52fbdd51eb Script instructions referencing unexisting animations are now skipped, instead of crashing the engine.
svn-id: r32524
2008-06-04 01:27:55 +00:00
Nicola Mettifogo
fe6ab4227e Return to menu after introduction has played (with glitches).
svn-id: r32523
2008-06-04 01:04:26 +00:00
Nicola Mettifogo
b87c11a4a1 Fixed initialization of parsers, necessary after the latest removal of static arrays.
svn-id: r32509
2008-06-03 00:49:27 +00:00
Nicola Mettifogo
9630298df6 Sorted static mouse arrow bitmap, so it doesn't have to be 'decoded' on the fly. This saves a headache on re-entry.
svn-id: r32495
2008-06-02 13:12:07 +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
765f976008 * Cleanup of input code.
* Removed old timer routines.

svn-id: r32135
2008-05-15 01:18:26 +00:00
Sven Hesse
78b599bc26 Fix compilation
svn-id: r32118
2008-05-14 15:27:28 +00:00
Nicola Mettifogo
e2d58f4885 Oops. Forgot to update module.mk.
svn-id: r32116
2008-05-14 14:34:42 +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
Max Horn
6e3c92e239 Renamed some parallaction member vars to have a leading underscore (besides being part of our code formatting conventions, this fixes various name clash warnings)
svn-id: r32041
2008-05-11 22:08:32 +00:00
Nicola Mettifogo
1320ab610b Cleanup of parsing code.
svn-id: r31999
2008-05-11 08:55:16 +00:00
Nicola Mettifogo
6979458e26 Extracted script parsing code to its own class.
svn-id: r31972
2008-05-10 11:11:03 +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
1d025957ca Moved location parsing out of the engines, to LocationParser_ns and LocationParser_br.
svn-id: r31958
2008-05-09 01:35:43 +00:00
Nicola Mettifogo
e2e2af4ff5 Reverted commit 31928 by Buddha_, and defined kFlagsAll as 0xFFFFFFFFU in the enum, as suggested by Fingolfin.
svn-id: r31939
2008-05-08 02:46:12 +00:00
Kari Salminen
2d707af338 A (temporary?) fix for the signed/unsigned issues with enum CommandFlags usage.
svn-id: r31928
2008-05-07 14:49:42 +00:00
Nicola Mettifogo
3d3ad58e14 Reverting commit 31920, thus changing type of flags back to unsigned. If some compiler emits a warning about 0xFFFFFFFF not being an unsigned immediate, then we need to find out how to convince it without changing types of variables in the code.
svn-id: r31924
2008-05-07 12:44:22 +00:00
Sven Hesse
6e61b02cb9 Silencing a compiler warning
svn-id: r31923
2008-05-07 12:34:40 +00:00
Filippos Karapetis
a3dbf43629 Fixed signed/unsigned issues with kFlagsAll
svn-id: r31920
2008-05-07 08:29:11 +00:00
Jordi Vilalta Prat
38a8aa516e Allow static and dynamic plugins to be used at the same time
svn-id: r31888
2008-05-06 03:00:26 +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
4295392906 Added new Parser class, which will gradually grow to include all parsing code from the engine class.
svn-id: r31865
2008-05-04 15:09:23 +00:00
Nicola Mettifogo
a3794c5f37 Partly fixed loading of bitmaps in BRA Amiga. Bitmaps are still broken, but less than before.
svn-id: r31864
2008-05-04 15:06:47 +00:00
Eugene Sandulenko
3af2d8d0fd Fix compilation
svn-id: r31758
2008-04-28 16:10:40 +00:00
Nicola Mettifogo
6d3a7e4f6b Moved some static members into Parallaction class.
svn-id: r31755
2008-04-28 09:42:29 +00:00
Nicola Mettifogo
d4c8d4e18f Fixed usage of SharedPtr, so that reference counting is proper and there are no more objects that need constructors at global level (helps PalmOS).
svn-id: r31533
2008-04-17 09:32:57 +00:00
Nicola Mettifogo
984e42569e Replaced unpackBlt with a more general version that can also unpack animation in BRA.
svn-id: r31532
2008-04-17 09:31:22 +00:00
Nicola Mettifogo
ff2dfb6a4e Cleanup of background loading for BRA.
svn-id: r31531
2008-04-17 09:30:04 +00:00
Paul Gilbert
9f06984ba5 Bugfix for linking error in MSVC8 - it doesn't like multiple unnamed structures within a class
svn-id: r31442
2008-04-07 10:29:18 +00:00
Travis Howell
27816d8c8b Add very basic support for Amiga version of BRA.
svn-id: r31416
2008-04-06 07:05:56 +00:00
Nicola Mettifogo
3d1a2e2049 Replaced custom ManagedList with Common::SharedPtr.
svn-id: r31415
2008-04-06 05:40:02 +00:00
Max Horn
29f1e6de38 Advanced detector: replaced kADFlagAugmentPreferredTarget by its inverse, kADFlagDontAugmentPreferredTarget (since all AdvDetector engines except Kyra used kADFlagAugmentPreferredTarget, it seems reasonable to assume that as default)
svn-id: r31413
2008-04-05 22:29:08 +00:00
Max Horn
7f81de6794 cleanup
svn-id: r31289
2008-03-28 08:30:42 +00:00
Max Horn
6547ef6e12 Started to get rid of Common::EncapsulatedADGameDesc (using plain Common::ADGameDescription instead)
svn-id: r31121
2008-03-14 17:31:04 +00:00
Max Horn
8a9a14002e Advanced Detector: Changed fallback detector from a callback function pointer to an overrideable method of AdvancedMetaEngine
svn-id: r31119
2008-03-14 13:59:31 +00:00
Nicola Mettifogo
cb6fb6200d Cleanup ManagedList.
svn-id: r30843
2008-02-10 00:03:19 +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
Jordi Vilalta Prat
c103290e2b Initial support for plugin types
svn-id: r30825
2008-02-08 00:02:23 +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
4be7dac9c3 Fix system hang under linux.
svn-id: r30813
2008-02-06 19:50:45 +00:00
Filippos Karapetis
edab25743e Silence MSVC warning about uninitialized variables
svn-id: r30812
2008-02-06 18:13:22 +00:00
Nicola Mettifogo
509f2f6659 Enabled moving projector in Nippon Safes. This should fix long standing bug #1729309.
svn-id: r30811
2008-02-06 15:38:33 +00:00
Nicola Mettifogo
c03cb964c0 Fixed broken halfbrite implementation from some time ago (nobody complained!!!).
svn-id: r30810
2008-02-06 14:56:10 +00:00
Nicola Mettifogo
014511f380 Made font handling stateless.
svn-id: r30809
2008-02-06 14:12:59 +00:00
Nicola Mettifogo
246fbfd1e4 Added experimental debug feature: variables influencing the rendering that can be set via console using the 'set' command. The implementation is still partial. Leveraging on this, the engine can now selectively display the current background mask instead of the background itself.
svn-id: r30808
2008-02-06 14:05:08 +00:00
Nicola Mettifogo
715e33d63d Correctly implemented little-endian masks in BRA.
svn-id: r30807
2008-02-06 13:57:44 +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