Commit Graph

54 Commits

Author SHA1 Message Date
Nicola Mettifogo
591973c827 Changed Gfx::_backgroundInfo to be a pointer. This temporarily kills all z-buffering.
svn-id: r33468
2008-07-31 12:26:12 +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
4936e5f7df * Moved end intro and end game sequences code to gui.
* Rewrote all gui code to be run inside the main loop
* Added code to avoid crashes when a scene with no standard background is drawn

svn-id: r33260
2008-07-24 09:24:32 +00:00
Nicola Mettifogo
53615c9128 Removed the historical waitUntilLeftClick function and adapted code to use the more general readInput and waitForButtonEvent.
svn-id: r33226
2008-07-23 07:52:43 +00:00
Nicola Mettifogo
c48f3ca8d8 Removed all labels from the rendering list to avoid random crashes after introduction is over.
svn-id: r33058
2008-07-14 13:35:43 +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
e6e56feb1c Added comment for fix for bug #2001193.
svn-id: r32820
2008-06-28 13:31:58 +00:00
Nicola Mettifogo
28e32bb7cb Fix for bug #2001193. Character confirmation screen didn't appear and game crashed because too many strings were added to the draw list.
svn-id: r32762
2008-06-24 13:21:22 +00:00
Nicola Mettifogo
765f976008 * Cleanup of input code.
* Removed old timer routines.

svn-id: r32135
2008-05-15 01:18:26 +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
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
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
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
3d1a2e2049 Replaced custom ManagedList with Common::SharedPtr.
svn-id: r31415
2008-04-06 05:40:02 +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
015ad5e469 Some more integration of background code into BackgroundInfo.
svn-id: r30731
2008-02-02 09:48:07 +00:00
Nicola Mettifogo
249877fa82 Moved depth buffer and palette rotation data into BackgroundInfo.
svn-id: r30725
2008-02-02 00:41:31 +00:00
Nicola Mettifogo
0e02a9398a Cleanup (step 2). No code outside Gfx reference screen buffers anymore.
svn-id: r30695
2008-01-29 09:37:03 +00:00
Nicola Mettifogo
1a36ba488c Cleanup (step 1).
svn-id: r30689
2008-01-28 20:40:05 +00:00
Nicola Mettifogo
efdc6f646f Changed _c_moveSheet to work with only 1 buffer.
svn-id: r30684
2008-01-28 18:10:16 +00:00
Nicola Mettifogo
56eed45317 Move low level background management into Gfx.
svn-id: r30681
2008-01-28 17:28:16 +00:00
Nicola Mettifogo
bdf440fdae Replaced the remaining old string code with the new label code. All the text is now drawn in the framebuffer instead of being blitted onto the internal game screen buffer.
svn-id: r30360
2008-01-09 21:46:57 +00:00
Torbjörn Andersson
eeb212c7e0 Indent with tabs instead of spaces.
svn-id: r30312
2008-01-06 20:42:28 +00:00
Nicola Mettifogo
db51514dd3 Moved balloons management into Gfx, which is now responsible for positioning and drawing. All balloons are now drawn on a different layer than the game graphics, thus simplifying screen management. Dialogue code has undergone a major revision, and the superior implementation of answer selection in the Amiga version is now used in place of the poor PC one. Other bits (where some changes had already been introduced) have been updated, too.
svn-id: r30311
2008-01-06 19:29:41 +00:00
Nicola Mettifogo
3e04d8b215 Fix for bug# 1729307. Fonts are now displayed with shadows when needed on Amiga. The correct font for intro screen has also been selected.
svn-id: r30221
2008-01-04 21:24:51 +00:00
Nicola Mettifogo
da3d85c755 Removed debug printf.
svn-id: r30169
2008-01-02 21:29:23 +00:00
Nicola Mettifogo
d632206248 Added halfbrite effect to Nippon Safes Amiga. Implementation is not complete, since the spotlight during Donna's dance is not moving yet.
svn-id: r29863
2007-12-15 20:56:05 +00:00
Nicola Mettifogo
0b0ec8ee00 * Switched Nippon Safes to use new names for savefiles. User will be asked to perform conversion on engine start.
* Special files used for keeping track of completed parts of the game have been replaced by special  savefile 'nippon.999'.

svn-id: r29820
2007-12-10 20:29:51 +00:00
Nicola Mettifogo
a3abaaa709 Refactored main input code.
svn-id: r29532
2007-11-17 09:39:20 +00:00
Nicola Mettifogo
10caba3562 * centralized kEngineChangeLocation flag handling
* simplified runGame, moving flags testing into called routines

svn-id: r29504
2007-11-14 22:24:26 +00:00
Nicola Mettifogo
555336cebe Fix for bug #1822819. Donna now changes her look into Suzy after makeup.
svn-id: r29361
2007-11-01 17:39:58 +00:00
Nicola Mettifogo
06f38474a5 Consolidated game data cleanup in a single routine to location switches more reliable, especially on savegames and on game start.
svn-id: r29357
2007-11-01 15:58:33 +00:00
Nicola Mettifogo
7c8bf86a45 More refactoring for gui code.
svn-id: r29355
2007-11-01 14:47:33 +00:00
Nicola Mettifogo
288f47e034 * Merged object Menu into Parallaction_ns.
* Some preliminary refactoring of ex-menu code.

svn-id: r29354
2007-11-01 14:08:55 +00:00
Nicola Mettifogo
14160083e8 Now stopping music when loading a game in Amiga versions of Nippon Safes.
svn-id: r29242
2007-10-21 19:27:15 +00:00
Nicola Mettifogo
652866117a Fixed bug #1814061. Special effect routine was overflowing palette size.
svn-id: r29224
2007-10-15 18:59:32 +00:00
Nicola Mettifogo
d7ae40b65d Refactored a lot of Character-related code and put it into the Character class.
svn-id: r29025
2007-09-22 18:45:43 +00:00
Nicola Mettifogo
258901bab9 Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
svn-id: r28966
2007-09-19 08:40:12 +00:00
Nicola Mettifogo
c37de0131b Revised debug levels and added many debug strings for parsers.
svn-id: r28921
2007-09-16 08:43:34 +00:00
Nicola Mettifogo
429af74320 Oops oops. This fixes the bug fix.
svn-id: r28623
2007-08-14 19:57:20 +00:00
Nicola Mettifogo
dc35b37d93 Oops. Removed debug code.
svn-id: r28622
2007-08-14 19:55:10 +00:00
Nicola Mettifogo
70f69a18bb Fixed bug (array-overflow) in NS introduction. This randomly caused the intro to crash during sketching.
svn-id: r28621
2007-08-14 19:53:32 +00:00
Nicola Mettifogo
be994c88db Moved intro hack routines to Parallaction_ns callables, where they belonged from the beginning.
svn-id: r28541
2007-08-12 09:10:10 +00:00
Nicola Mettifogo
b07f787f7f Moved core font management from Gfx to engine. Gfx still retains features related to displaying text on screen.
svn-id: r28530
2007-08-11 17:25:57 +00:00
Nicola Mettifogo
aa1175ed13 Encapsulated palette stuff into a new Palette object and got rid of a lot of #defines. This should ease handling of palettes in different versions of the engine.
svn-id: r28509
2007-08-09 18:02:37 +00:00
Nicola Mettifogo
4d83622af7 Location comments are now displayed by a single Gfx function.
svn-id: r28481
2007-08-07 13:54:29 +00:00
Nicola Mettifogo
6c0288044b Changed graphics mask to a more generic BitBuffer object.
svn-id: r28471
2007-08-06 19:13:51 +00:00
Nicola Mettifogo
872a6edfc6 Made thickness of balloon borders consistent with original games.
svn-id: r28470
2007-08-06 15:40:12 +00:00
Nicola Mettifogo
4b008f9724 Changed code to use the new fadePalette function, thus removing fadeInPalette and some custom fade code in _c_endComment.
svn-id: r28368
2007-07-31 19:33:36 +00:00
Nicola Mettifogo
bd22db4502 Renamed palette functions.
svn-id: r28365
2007-07-31 19:12:44 +00:00