Commit Graph

84 Commits

Author SHA1 Message Date
Torbjörn Andersson
22ca0c1e92 Renamed line() to drawLine() to silence warning about function parameters in
dialogs.cpp shadowing it. Actually, the function doesn't seem to be used
anywhere at the moment, but perhaps someone has future plans for it?

svn-id: r46331
2009-12-11 17:14:55 +00:00
Paul Gilbert
724d698a05 Beginnings of a dialog display class
svn-id: r46330
2009-12-11 09:41:27 +00:00
Max Horn
c8873d8492 Changed MidiDriver::createMidi to take a MidiDriverType instead of an int
svn-id: r46316
2009-12-09 18:12:51 +00:00
Max Horn
d34cdae9ce M4: Move 'determine transparent color' hack into a new M4Sprite method
svn-id: r46281
2009-12-07 18:23:28 +00:00
Max Horn
f8126d9da6 M4: Make M4Surface member w, h, pixels protected; some cleanup
svn-id: r46280
2009-12-07 18:22:18 +00:00
Max Horn
6d1e4dd034 M4: Rename M4Surface::getData() to getBasePtr() for consistency
svn-id: r46279
2009-12-07 18:20:20 +00:00
Paul Gilbert
f21810242e Hooked up the actions list and object-specific actions to change the status text
svn-id: r46268
2009-12-05 11:32:19 +00:00
Paul Gilbert
0841063a32 Added a new variation to the 'object' command to add an object to the player's inventory
svn-id: r46267
2009-12-05 07:47:01 +00:00
Paul Gilbert
0e85be8405 Implemented support for the inventory list scrollbar and directly selecting an object
svn-id: r46266
2009-12-05 07:46:41 +00:00
Torbjörn Andersson
cb90685831 Silenced warning.
svn-id: r46265
2009-12-05 06:14:04 +00:00
Paul Gilbert
60fa351d32 Expanded the actions view into a full user interface view, and added support for highlighting of user interface elements
svn-id: r46262
2009-12-05 05:44:46 +00:00
Paul Gilbert
9bc2aa2afa Corrected the palette colours for the interface elements
svn-id: r46230
2009-12-01 10:47:39 +00:00
Max Horn
e98f789a02 Fix warning
svn-id: r46156
2009-11-26 16:10:59 +00:00
Paul Gilbert
f3b15df8e3 Changed the game list in the doxygen comment to list all the games the engine will hopefully eventually support
svn-id: r46154
2009-11-26 12:07:01 +00:00
Paul Gilbert
3f1093c162 Added some comments on the status of the engine
svn-id: r46153
2009-11-26 12:00:37 +00:00
Paul Gilbert
5afc0e5ed7 Added the basics of a action list display
svn-id: r46152
2009-11-26 11:48:43 +00:00
Max Horn
df651bf20f Added Doxygen comments for the various engine namespaces (currently mostly without details; help filling these out is welcome)
svn-id: r46128
2009-11-24 22:10:14 +00:00
Paul Gilbert
67442c230c Added display of the rotating inventory objects
svn-id: r45912
2009-11-15 08:22:57 +00:00
Paul Gilbert
6bb2b8aa9a Added support for needed MADS game configuration options
svn-id: r45911
2009-11-15 08:22:14 +00:00
Paul Gilbert
94f5c0a2f8 Added a staticres file with the MADS articles list, and added an article field to the MADSObject class
svn-id: r45856
2009-11-12 10:07:44 +00:00
Johannes Schickel
2c95e82e26 Comment out unused variable.
svn-id: r45833
2009-11-11 14:27:45 +00:00
Paul Gilbert
feab5f63ff Beginnings of support for AA file animations. The mads_anim.cpp commit is part of this, not the previous commit
svn-id: r45828
2009-11-11 09:56:29 +00:00
Paul Gilbert
faaec05e65 Removed all the '- 1' from calls to get vocabs, centralising it in the getVocab method. This is correct, as the first element in the game vocab list is '1', not '0'.
svn-id: r45827
2009-11-11 09:55:05 +00:00
Lars Persson
e4e9080187 Missing template argument for MIN (added <uint>)
svn-id: r45803
2009-11-10 09:31:47 +00:00
Paul Gilbert
a6f1280fcc Added support for loading the game's object list
svn-id: r45651
2009-11-04 08:38:32 +00:00
Max Horn
51933629d1 Changed foo(void) to foo() in almost all non-backend source files
svn-id: r45616
2009-11-02 21:54:57 +00:00
Max Horn
2bbf708dea Introduced new type Common::DisposeAfterUse::Flag
svn-id: r45233
2009-10-18 19:41:59 +00:00
Paul Gilbert
aba45bfd5f Reworked of code line in changeExtension that was giving a cppcheck warning
svn-id: r44517
2009-10-01 12:12:07 +00:00
Max Horn
8ba75fc522 Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
svn-id: r44495
2009-09-30 16:16:53 +00:00
Filippos Karapetis
b4f1960318 Reverted parts of revisions #44298, #44299 and #44300, to prevent warnings and issues in compilers which don't support NORETURN
svn-id: r44314
2009-09-24 17:52:53 +00:00
Filippos Karapetis
6b79910bcb Fixed some more warnings about unreachable code
svn-id: r44300
2009-09-24 10:15:50 +00:00
Johannes Schickel
c50940bbf4 Got rid of Common::File::addDefaultDirectory, instead implemented the solution proposed in "Case agnostic handling for directories (and files)" on -devel.
svn-id: r44266
2009-09-23 00:15:00 +00:00
Travis Howell
eb0b61976d Fix compile of M4 game engine.
svn-id: r44028
2009-09-11 09:31:57 +00:00
Max Horn
7cf23a2c4d M4: Seems that s1_cos and s1_sin are either misnamed, or buggy ?
svn-id: r44026
2009-09-11 08:43:32 +00:00
Max Horn
c6d2441db3 Don't abuse FORCEINLINE
svn-id: r44025
2009-09-11 08:39:09 +00:00
Matthew Hoops
05035fd8c3 Fix a new/free mismatch when creating a MemoryReadStream from a MemoryWriteStreamDynamic by changing MemoryWriteStreamDynamic to use malloc/free instead of new/delete[]. This could have affected ScummEngine_v4::prepareSavegame().
svn-id: r43918
2009-09-03 16:15:10 +00:00
Johannes Schickel
40aac5fbf7 Add comment why the syntax for ScriptDataCache::load was changed.
svn-id: r43694
2009-08-24 12:27:25 +00:00
Johannes Schickel
ea08733873 Small syntax change in the hope to make the motoezx target happy.
svn-id: r43692
2009-08-24 11:36:00 +00:00
Johannes Schickel
7e71865e91 Move the event recorder to its own class (EventRecoder inside common/EventRecorder.[h/cpp]).
svn-id: r42751
2009-07-25 12:59:46 +00:00
Eugene Sandulenko
1bd6f6c99f Added game GUI options to advancedDetector and updated all engines
svn-id: r41272
2009-06-06 17:56:41 +00:00
Torbjörn Andersson
0999534749 The error() and warning() functions add ! and newline automatically. (I didn't
look at debug() and debugC(), since I'm really bored with this now. :-)

svn-id: r41061
2009-05-31 10:02:16 +00:00
Paul Gilbert
e930f4c792 Added missing parenthesis in M4Engine::delay
svn-id: r39733
2009-03-29 11:22:49 +00:00
Max Horn
ed292fb498 silenced some warnings
svn-id: r39566
2009-03-20 13:30:10 +00:00
Max Horn
5181546c63 Rewrote Common::List iterator code to ensure const correctness is preserved.
We tried to implement the list iterators in a clever way, to reduce code
duplication. But this is essentially impossible to do properly, sadly --
this is one of the places where the ugly drawbacks of C++ really show.
As a consequence, our implementation had a bug which allowed one to
convert any const_iterator to an iterator, thus allowing modifying
elements of const lists.

This rewrite reintroduces code duplication but at least ensures that no
const list is written to accidentally.

Also fix some places which incorrectly used iterator instead of const_iterator
or (in the kyra code) accidentally wrote into a const list.

svn-id: r39279
2009-03-09 22:26:02 +00:00
Max Horn
f9ecd95d69 Whitespace cleanup: Convert space followed by tab to just tab
svn-id: r39203
2009-03-07 19:24:31 +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
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
c0e132a826 Added MD5 for Orion Burger Russian version
svn-id: r38769
2009-02-21 23:44:17 +00:00
Max Horn
7cb437b56f Renamed SpecialDebugLevel to DebugChannel
svn-id: r36142
2009-01-30 05:10:24 +00:00