Commit Graph

963 Commits

Author SHA1 Message Date
Nicola Mettifogo
cae7c2346f Questions in dialogues can have up to 10 answers in BRA.
svn-id: r35524
2008-12-24 10:35:34 +00:00
Nicola Mettifogo
41ebd732f5 Fixed display of location background when changing from a scrollable to a non-scrollable one.
svn-id: r35522
2008-12-24 09:53:00 +00:00
Nicola Mettifogo
6c1dc0c03b Simplified destructions of Balloon objects.
svn-id: r35521
2008-12-24 09:51:07 +00:00
Nicola Mettifogo
e11c17a005 Moved more GfxObj management to Gfx object.
svn-id: r35466
2008-12-21 15:42:47 +00:00
Nicola Mettifogo
74b251d45d Added a stub to dialogue parser, so that dialogue lines controlled by counters are displayed.
svn-id: r35465
2008-12-21 15:41:41 +00:00
Nicola Mettifogo
025b2a93e9 Moved mask creation/handling to Gfx.
svn-id: r35447
2008-12-20 08:15:09 +00:00
Nicola Mettifogo
774773b7cd Reduced code duplication when manipulating Animations, and cleanup.
svn-id: r35408
2008-12-17 11:15:47 +00:00
Nicola Mettifogo
c76f0bdb10 Weeded out some more unused code, and some restructuring.
svn-id: r35377
2008-12-15 07:15:29 +00:00
Nicola Mettifogo
dc3e9027f4 Removed references to _vm from the engine itself.
svn-id: r35358
2008-12-14 10:32:26 +00:00
Nicola Mettifogo
e98bc7e402 Removed some unused code.
svn-id: r35357
2008-12-14 10:08:31 +00:00
Nicola Mettifogo
5b39775184 Some more restructuring of rendering code.
svn-id: r35343
2008-12-13 17:52:37 +00:00
Nicola Mettifogo
800db6f142 Restructuring of rendering code.
svn-id: r35342
2008-12-13 17:31:48 +00:00
Nicola Mettifogo
b3475d8178 * Replaced char* with Common::String in the parser.
* Enforced const-correctness on related routines.

svn-id: r35326
2008-12-13 03:37:43 +00:00
Nicola Mettifogo
6724097f67 Fixed positioning of inventory.
svn-id: r35325
2008-12-13 03:36:28 +00:00
Nicola Mettifogo
7e7d5c68ed Initialised variables to silence lots of valgrind's warnings.
svn-id: r35312
2008-12-12 04:52:37 +00:00
Nicola Mettifogo
6ecc17010d Fixed some more leaks and mismatched allocations/deallocations.
svn-id: r35277
2008-12-07 14:33:30 +00:00
Nicola Mettifogo
b557c58d3b Missing break statement caused many broken warning messages.
svn-id: r35271
2008-12-07 12:47:14 +00:00
Nicola Mettifogo
db88c544b7 Fixed assorted leaks in Parallaction.
svn-id: r35270
2008-12-07 12:41:50 +00:00
Eugene Sandulenko
00de4b2b3c Fix bug #2401150: "Compiler: No matching function (Parallaction / Amiga)"
svn-id: r35269
2008-12-07 09:21:01 +00:00
Nicola Mettifogo
4c377e0339 Fixed positioning of overlayed graphics (dialogues, inventory, labels) in all locations. These items are now all handled in screen coordinates which are translated automatically by the renderer.
svn-id: r35255
2008-12-06 06:17:10 +00:00
Nicola Mettifogo
3fc72c63d9 Simplified scrolling calculations.
svn-id: r35254
2008-12-06 06:13:48 +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
664d696e55 Made readLineIntern() return a zero-length string when no printable text is read out of a script. This makes life easier for the parser, and also makes the introduction fully viewable.
svn-id: r35233
2008-12-04 09:33:37 +00:00
Nicola Mettifogo
1e4f2b5a90 Replaced remaining usages of readLine_OLD with readLine.
svn-id: r35218
2008-12-03 12:23:50 +00:00
Torbjörn Andersson
8dcb3cbac0 It's unnecessary to use strlen() just to find out if a string is empty or not.
svn-id: r35185
2008-11-30 10:11:38 +00:00
Nicola Mettifogo
13297a7857 Added missing initialization (which caused random crashes).
svn-id: r35092
2008-11-16 13:06:40 +00:00
Johannes Schickel
5a0556f09c Committed my patch #2123680 "SDL: Backend transaction / rollback support".
svn-id: r35062
2008-11-14 22:08:10 +00:00
Nicola Mettifogo
de0fe01c04 Removed unused parameter.
svn-id: r35053
2008-11-14 12:13:59 +00:00
Nicola Mettifogo
618644ba0c Update to the low level parser:
* made it detect buffer overflows 
* removed unused code paths
* general simplification

svn-id: r35047
2008-11-13 15:15:54 +00:00
Max Horn
c0f82d3518 Renamed Graphics::TextAlignment -> Graphics::TextAlign and merged it with GUI::ThemeEngine::TextAlignVertical
svn-id: r35023
2008-11-12 14:30:16 +00:00
Nicola Mettifogo
181a44fc21 Fixed default zone flags, so that labels in BRA are only shown on zones which have one.
svn-id: r35012
2008-11-12 07:08:43 +00:00
Vicent Marti
b98f89c7f0 Merged GUI::Theme and Gui::ThemeEngine into the same class, GUI::ThemeEngine.
Massive cleanup.

svn-id: r34983
2008-11-10 11:24:55 +00:00
Filippos Karapetis
f5729a4a8b - The GMM save dialog is now working for all engines which support the appropriate features
- Added a new method to the MetaEngine class, getMaximumSaveSlot(), and implemented it in all engines for which the listSavefiles() method is implemented (it goes together with the listSavefiles method). It is used to fill the unused save slots in the save/load dialogs of each engine, so that the user can create new save games in empty slots
- Unified the save/load dialog list numbering in the GMM load/save screens and in the load screen of the main menu (before a game is started)

svn-id: r34963
2008-11-09 16:13:34 +00:00
Nicola Mettifogo
93499c8032 Update ReadStringStream and parser to work with the new eos() logic.
svn-id: r34945
2008-11-09 09:39:36 +00:00
Nicola Mettifogo
63ccac8f9d Enabled flags parsing for all commands in location script. Most of them don't need it, but some commands have been enhanced in BRA.
svn-id: r34944
2008-11-09 05:24:08 +00:00
Nicola Mettifogo
2be5afee68 Fixed crash when closing BRA.
svn-id: r34943
2008-11-09 05:22:25 +00:00
Nicola Mettifogo
27a5d8bd5b Better cleanup and handling of mouse when changing location in NS.
svn-id: r34942
2008-11-09 03:53:06 +00:00
Nicola Mettifogo
f076b5e034 Fixed bug in introduction of NS.
svn-id: r34941
2008-11-09 02:39:28 +00:00
Nicola Mettifogo
3eeece6a25 * cleanup
* moved find routines from Parallaction to Location

svn-id: r34940
2008-11-08 15:02:19 +00:00
Nicola Mettifogo
5581030972 * removed the obsolete _quit flag
* refactored most cleanup code for locations and game

svn-id: r34939
2008-11-08 14:56:45 +00:00
Nicola Mettifogo
767485840f Got rid of the SurfaceToMultiFrames adapter class.
svn-id: r34938
2008-11-08 02:32:40 +00:00
Nicola Mettifogo
e6337d11aa * completed transition to Common::Archive for Nippon Safes.
* removed lots of old Archive swap magic

svn-id: r34931
2008-11-07 15:35:18 +00:00
Nicola Mettifogo
8baedea4d4 Implemented a Common::Archive subclass to handle the content of archives in Nippon Safes. Common::File is now used only to load archives.
svn-id: r34921
2008-11-07 08:47:59 +00:00
Max Horn
40136f2590 Switched various Engine APIs to use Common::Error
svn-id: r34916
2008-11-06 17:05:54 +00:00
Max Horn
fe2935ad4b Got rid of the unused 'filename' attribute in SaveStateDescriptor
svn-id: r34905
2008-11-05 15:41:12 +00:00
Max Horn
61aadb378d Fixed the EngineFeature vs. MetaEngineFeature mess, clarified some EngineFeature comments
svn-id: r34896
2008-11-04 16:11:40 +00:00
Nicola Mettifogo
70679e6895 Fixed leak (unreleased stream of music data).
svn-id: r34895
2008-11-04 13:57:29 +00:00
Nicola Mettifogo
9fe3150348 Refactoring of NS disk code, preliminary to change towards Common::Archive.
svn-id: r34894
2008-11-04 13:57:04 +00:00
Nicola Mettifogo
cd3011e408 Fixed assorted leaks in NS Amiga.
svn-id: r34870
2008-11-01 12:39:01 +00:00
Nicola Mettifogo
73cf59b518 Removed reference to Common::File in music code, and small cleanup.
svn-id: r34861
2008-10-29 08:16:13 +00:00