Commit Graph

175 Commits

Author SHA1 Message Date
Paul Gilbert
f53b4d3de4 Implemented the 'Start Again' menu option to properly restart the game
svn-id: r39981
2009-04-18 12:03:21 +00:00
Paul Gilbert
9efb96ce69 Changed the 'Exit' game menu option to exit gracefully, rather than using exit()
svn-id: r39980
2009-04-18 11:20:05 +00:00
Paul Gilbert
15252ad83c Added support for the global menu save/loading, and changed the savegame format to store the savegame name and thumbnail
svn-id: r39979
2009-04-18 10:16:08 +00:00
Torbjörn Andersson
f5fb20680f Apart from a "const", the volume() and getVolume() function were identical.
Removed the volume() function.

svn-id: r39868
2009-04-05 15:58:27 +00:00
Paul Gilbert
5f1c08505f Implemented many of the remaining library functions
svn-id: r39857
2009-04-05 07:52:21 +00:00
Paul Gilbert
d90a343790 Created stub manager class for sound effects
svn-id: r39856
2009-04-05 07:51:31 +00:00
Paul Gilbert
07fb7735b5 Replaced all occurrences of the constant '257' with the existing constant 'NUM_FILE_ENTRIES'
svn-id: r39824
2009-04-04 01:21:25 +00:00
Paul Gilbert
121f174d61 Fixed incorrect palette range usage so room fade-ins happen correctly
svn-id: r39822
2009-04-03 23:27:38 +00:00
Johannes Schickel
44025f03d5 Fix compilation via manually implementing strToUpper, instead of relying on strupr.
svn-id: r39791
2009-04-01 14:02:55 +00:00
Johannes Schickel
bf94fc6e4e Fix warnings.
svn-id: r39790
2009-04-01 14:00:17 +00:00
Paul Gilbert
f0456d67a8 Laid the basics for music handling
svn-id: r39788
2009-04-01 11:03:06 +00:00
Paul Gilbert
d42d6122d9 Laid the basics for music handling
svn-id: r39786
2009-04-01 10:43:24 +00:00
Paul Gilbert
d093adbb55 Replaced resource type numbers with existing constants
svn-id: r39785
2009-04-01 10:38:14 +00:00
Paul Gilbert
ab31f46676 Corrected the positions of two library functions in the library function list
svn-id: r39699
2009-03-26 11:16:34 +00:00
Max Horn
48d73ff6bf CRUISE: Fixed bug when loading backgroundIncrustStruct::saveWidth (don't divide by 2, rather *multiply* by 2); also some cleanup
svn-id: r39657
2009-03-24 11:30:37 +00:00
Paul Gilbert
117d72e497 Bug fixes for handling 5-bit layered sprites correctly - this fixes the black boxes appearing in the first room during the fade-in
svn-id: r39604
2009-03-22 09:37:49 +00:00
Paul Gilbert
34d3d7c74d Code formatting, added further constant references, and corrected method signatures
svn-id: r39445
2009-03-16 09:45:37 +00:00
Paul Gilbert
57b0038e5e Converted the Cruise engine to use the new Common::Serializer class
svn-id: r39443
2009-03-16 09:17:49 +00:00
Paul Gilbert
979c1e0f6a Fixed some method parameters, changed the main loop to a method of the engine class, and moved the frame delay code to the main loop to make the game more responsive to events
svn-id: r39180
2009-03-07 07:12:10 +00:00
Jordi Vilalta Prat
047f116515 Renamed MetaEngine::getCopyright() to getOriginalCopyright() to better match the meaning of the returned string, as discussed some time ago in scummvm-devel
svn-id: r39132
2009-03-05 12:04:58 +00:00
Torbjörn Andersson
ea4f25fd30 Renamed parameter to silence warning.
svn-id: r39094
2009-03-03 19:49:50 +00:00
Paul Gilbert
eb610d66bd Corrected click handling when a text message is displaying to properly dismiss the text, rather than trying to immediately perform another action
svn-id: r39088
2009-03-03 11:08:03 +00:00
Paul Gilbert
f3a9274a45 Changed the int16[5] array used in pathfinding to a structure with explicitly named fields
svn-id: r39087
2009-03-03 10:10:35 +00:00
Paul Gilbert
236b42bcff Formatting fixes
svn-id: r39086
2009-03-03 09:00:49 +00:00
Paul Gilbert
2d9705311e Bugfix for frequent freezes when doing actions - the main movement state switch statement was actually relying on falling through case statements to work properly
svn-id: r39066
2009-03-02 09:14:36 +00:00
Paul Gilbert
da6315bb4c Formatting fixes, and added extra constants and function name corrections
svn-id: r39063
2009-03-02 08:32:38 +00:00
Paul Gilbert
ecb6b7bf54 Added an explicit clearing of all animation fields for new animations - this fixes a problem where the player could disappear if he had to rotate to face a selected object
svn-id: r39019
2009-03-01 08:28:10 +00:00
Max Horn
dd98126423 Engines: Fused several init&go methods into a single run method
svn-id: r39003
2009-03-01 04:42:46 +00:00
Max Horn
3fcbda829a Merged Engine::go() and ::init() into a new run() method (currently implemented by calling the existing init&go methods; to be cleaned up by engine authors
svn-id: r39002
2009-03-01 04:30:55 +00:00
Paul Gilbert
3fb5e15072 Formatting fixes
svn-id: r38996
2009-03-01 02:25:46 +00:00
Paul Gilbert
57c7593325 Implemented proper support for the Pause 'p' key
svn-id: r38995
2009-03-01 02:20:22 +00:00
Paul Gilbert
aa34628713 Cleaned up parts of the font display system. Note: Cruise used two almost identical routines for text display - one which creates a draw structure, and the other draws directly to the screen. Since there don't seem to be any other differences, the immediate draw version has been changed to use the rendering version and then draw the results
svn-id: r38994
2009-03-01 02:19:06 +00:00
Paul Gilbert
c51d5835a0 Moved mouse cursor definition data into staticres.cpp
svn-id: r38993
2009-03-01 02:16:44 +00:00
Paul Gilbert
59db1e85f3 Merged the contents of fontCharacterTable into staticres
svn-id: r38542
2009-02-19 11:08:11 +00:00
Paul Gilbert
b2c0f61817 Initial work on correct engine pausing
svn-id: r38541
2009-02-19 09:58:33 +00:00
Paul Gilbert
935e748e62 In progress work on cleaning up the font system - giving proper variable names, types, and converted memory accesses to endian safe structures
svn-id: r38540
2009-02-19 09:57:39 +00:00
Paul Gilbert
fc6221e781 Moved a set of static arrays into the staticres.cpp file
svn-id: r38539
2009-02-19 09:55:40 +00:00
Paul Gilbert
aa82c6fa7b Changed the list of language dependant strings from being hard-coded to dynamically being loaded from the 'delphine.lng' file
svn-id: r36317
2009-02-14 00:10:51 +00:00
Paul Gilbert
c2afb25ec5 Added debugger console
svn-id: r36259
2009-02-11 10:03:01 +00:00
Paul Gilbert
41eaf2c575 Removed deprecated method
svn-id: r36258
2009-02-11 09:02:30 +00:00
Paul Gilbert
0ff8d32675 Cleaned up the input loop, using ScummVM keycode constants and some newly defined constants
svn-id: r36255
2009-02-10 10:16:49 +00:00
Paul Gilbert
7238358e6e Changed the save/load process to use a common serialiser
svn-id: r36253
2009-02-09 11:30:18 +00:00
Max Horn
7cb437b56f Renamed SpecialDebugLevel to DebugChannel
svn-id: r36142
2009-01-30 05:10:24 +00:00
Max Horn
28cf213605 Moved AdvancedDetector from common/ to engines/
svn-id: r36132
2009-01-29 22:13:01 +00:00
Max Horn
ac59693be2 A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines
svn-id: r36127
2009-01-29 05:26:12 +00:00
Paul Gilbert
d3319ad6a8 Introduced a static string list for language dependant strings, and changed the options and inventory menus to use it
svn-id: r36051
2009-01-25 05:49:18 +00:00
Paul Gilbert
a27f4203e0 Minor cleanup and changed g_cruise to _vm for consistency
svn-id: r36050
2009-01-25 05:44:18 +00:00
Max Horn
e9f0fc21e8 Fixed class indention
svn-id: r35871
2009-01-16 05:04:49 +00:00
Max Horn
4c5efaecf4 Code formatting fixes, automatically performed by astyle
svn-id: r35870
2009-01-16 02:43:41 +00:00
Max Horn
42c46aa5a1 Mark cruise save/load code as not endian safe
svn-id: r35869
2009-01-16 01:48:55 +00:00