Commit graph

77 commits

Author SHA1 Message Date
Nicola Mettifogo
5b3075bd65 Guarded the command execution suspension for NS demo (this was due in r38662 - see bug #2619824).
svn-id: r50038
2010-06-19 02:51:03 +00:00
Willem Jan Palenstijn
ee63bf51bd Fix Nippon Safes test result label memory leak
svn-id: r48837
2010-04-28 21:50:54 +00:00
Willem Jan Palenstijn
9793430e58 Fix a destruction order issue and note two remaining issues from the label fixes (r48811)
svn-id: r48827
2010-04-28 18:50:22 +00:00
Nicola Mettifogo
498d8000ca Fix bug 2969257 (labels) and hopefully plug all the leaks.
svn-id: r48811
2010-04-27 08:59:13 +00:00
Travis Howell
a55cb7fa10 Fix bug #2979193 - NIPPON: Crash at character introduction (regression). By restoring the kEngineBlockInput engine flag.
svn-id: r48464
2010-04-02 12:51:42 +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
8cebcaf017 Pushed down dependencies from parser.h
svn-id: r39636
2009-03-23 17:42:08 +00:00
Nicola Mettifogo
8723afd6f4 * Added a generic sound manager that hides engine-specific managers and allows accessing them through a simplified command/parameter interface.
* Updated client code to use the new manager.
* Moved Nippon Safes sound code from sound.cpp to sound_ns.cpp.

svn-id: r39394
2009-03-14 15:09:31 +00:00
Nicola Mettifogo
44906f574f The engine has now to build the drawing list for the graphic department, instead of setting visibility flags; the new field _prog has been added to GfxObj to help sorting the list.
The outcome is that cleaning up unused resources on location switches is now easier to manage, and less error prone.

svn-id: r38928
2009-02-27 08:56:19 +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
9bef5a0cfc Rewrote the sarcophagus puzzle in Nippon Safes, since I finally understood how it was implemented in the original!
svn-id: r38816
2009-02-23 11:55:25 +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
21fae9d029 * moved more mask management to BackgroundInfo
* simplified mask management for client code
* reduced the clutter into graphics.h by moving the implementations of BackgroundInfo, MaskBuffer and PathBuffer to graphics.cpp
* preparation for the full implementation of BRA's PathBuffer

svn-id: r35765
2009-01-07 07:35:11 +00:00
Nicola Mettifogo
6c1dc0c03b Simplified destructions of Balloon objects.
svn-id: r35521
2008-12-24 09:51:07 +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
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
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
1fd91e2bb0 Moved save/load code into SaveLoad class.
svn-id: r34220
2008-08-31 06:14:45 +00:00
Nicola Mettifogo
2e9bdfb3b1 Removed global g_system.
svn-id: r34209
2008-08-30 15:49:54 +00:00
Nicola Mettifogo
0606fef24e Made coordinates and frame number protected into Zone and Animation, and changed client code to use get/set. This will allow various simplifications (e.g. when calculating Z), and is a step towards correct handling of interactive zones of Zone/Animation in BRA.
svn-id: r33892
2008-08-15 04:30:45 +00:00
Nicola Mettifogo
d3440f2cc5 Some variable renamed to make more sense.
svn-id: r33864
2008-08-14 13:45:32 +00:00
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