Max Horn
477d6233c3
ENGINES: Change 2nd param of Engine::saveGameState to Common::String
2011-06-02 18:31:59 +02:00
Max Horn
39ab4a2dc4
AGI: Constify stuff
2011-05-18 13:06:33 +02:00
Max Horn
44b798d107
AGI: Unify RandomSource instantiation
...
This fixes a leak in PreAGI games (which never deleted their
RandomSource), ensures that PreAGI's RandomSource has a name (and hence
is registered with the event recorder) and even slightly simplifies the
AgiEngine destructor.
2011-05-17 12:17:27 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Ori Avtalion
cd6ee0589d
JANITORIAL: Format forward declarations to follow convention
2011-04-28 12:20:34 +03:00
Max Horn
73f04118f3
COMMON: Rename Error to ErrorCode, introduce new Error class
2011-04-18 18:22:02 +02:00
Max Horn
2e095e25f2
ALL: centre -> center
2011-04-14 14:34:28 +02:00
Max Horn
84184aabc0
ALL: colour -> color
2011-04-14 14:12:35 +02:00
dhewg
69a026192e
AGI: Kill the timer based counter
...
Using the timer mechanism for just a simple counter is not just
overkill, its also inaccurate. When using a call frequency of x,
and waiting for y callbacks, the passed time will not be x*y.
The problem amplifies on slower platforms and/or fair thread
schedulers.
Use absolute times instead. Most notably, the walking speed of
the avatar is now smooth on android, but probably on all other
handhelds we support too.
2011-03-05 11:00:37 +01:00
Max Horn
0a8189fd41
AGI: cleanup
...
svn-id: r55124
2011-01-05 13:04:08 +00:00
Max Horn
7c2323bdc3
AGI: Replace report() macro by debug() / warning()
...
This makes AGI quite a bit less noisy by default.
svn-id: r53868
2010-10-26 22:33:49 +00:00
Max Horn
4ccce19876
ENGINES: Enhance namespace comments a bit
...
svn-id: r53484
2010-10-15 12:48:19 +00:00
Eugene Sandulenko
764eaa554c
AGI: Fix some code analysis warnings (bug #3087825 )
...
svn-id: r53470
2010-10-15 08:49:20 +00:00
Eugene Sandulenko
fcdb349fa2
AGI: Respect mute setting
...
svn-id: r52373
2010-08-25 07:41:14 +00:00
Filippos Karapetis
4304a414ab
AGI: Removed the deprecated (and confusing) getGameId() function inside the AgiEngine class, and fixed a related bug, too
...
svn-id: r50607
2010-07-02 23:12:17 +00:00
Max Horn
49448af6cb
AGI: Turn some more AGI static functions into AgiEngine methods
...
svn-id: r50127
2010-06-21 21:34:06 +00:00
Max Horn
c7a9865a73
AGI: Change a static var to member var AgiEngine::_lastTickTimer
...
svn-id: r50126
2010-06-21 21:33:45 +00:00
Max Horn
e7da62763e
AGI: Turn timerHack and curLogic into AgiEngine members; get rid of some #defines
...
svn-id: r50125
2010-06-21 21:33:22 +00:00
Max Horn
df569a6c82
AGI: Change AGI commands/opcodes to member methods
...
svn-id: r50124
2010-06-21 21:32:56 +00:00
Max Horn
32668b553f
AGI: Get rid of GID_SQ0
...
svn-id: r50049
2010-06-19 11:08:41 +00:00
Max Horn
da28fde4c6
AGI: Change some #defines to enums
...
svn-id: r50033
2010-06-18 22:07:32 +00:00
Max Horn
7a8b8c88ae
AGI: cleanup
...
svn-id: r50032
2010-06-18 22:06:56 +00:00
Eugene Sandulenko
c7e9b620ee
AGI: properly setup Sound var.
...
svn-id: r49752
2010-06-15 10:35:10 +00:00
Eugene Sandulenko
25948606c4
AGI: Fix bug #2960557 .
...
Bug #2960557 : "AGI: (Fan) SQ0 - Sprite (Ego) not erased".
Added a workaround. Actually root cause is not yet clear.
svn-id: r49737
2010-06-15 10:29:20 +00:00
Max Horn
d78dba3bca
COMMON: Move Common::RandomSource to common/random.*
...
svn-id: r48279
2010-03-18 15:07:11 +00:00
Eugene Sandulenko
8ad5694cb1
Reduce header dependencies for AGI engine.
...
svn-id: r46942
2010-01-03 20:15:44 +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
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
95c572c8b9
AGI: Cleanup AgiEngine::agiSprintf
...
svn-id: r45267
2009-10-20 12:23:21 +00:00
Max Horn
50435d6bae
AGI: Turn g_tickTimer & g_mouse into members of class AgiEngine resp. AgiBase
...
svn-id: r45259
2009-10-20 11:13:00 +00:00
Jordi Vilalta Prat
768f480e58
Implement getDebugger() in AGI
...
svn-id: r43840
2009-08-30 21:43:07 +00:00
Kari Salminen
9931fb6a44
Fix for bug #2828333 (AGI: KQ1: Greensleeves always plays):
...
- Made all savegame loading in AGI do the same pre-load and post-load stuff.
- Moved load/saveGameState from AgiBase to AgiEngine
- Added rudimentary error handling to load/saveGameState
- Incidentally also fixes the hanging note from bug #2798797 .
svn-id: r43025
2009-08-03 17:18:18 +00:00
Max Horn
a6b57dc3a9
- Added GCC_PRINTF attribute to several funcs where it makes sense
...
- change some constants from double to float, to avoid "loss of precision due to implicit conversion" warnings
- removed duplicate prototypes for some funcs
- fixed some "increases required alignment of target type" warnings
svn-id: r42009
2009-07-01 20:51:04 +00:00
Eugene Sandulenko
ea3373708c
Correct implementation for set.key opcode. Fixes #2605104 : "AGI: Manhunter, F3 hotkey dosent work", removed number of hacks
...
svn-id: r41259
2009-06-06 17:48:09 +00:00
Eugene Sandulenko
d6a4dbeb1d
Implement fence.mouse opcode
...
svn-id: r41258
2009-06-06 17:47:29 +00:00
Eugene Sandulenko
c393144b19
Implement hold.key and release.key opcodes
...
svn-id: r41255
2009-06-06 17:46:19 +00:00
Eugene Sandulenko
1a321a2064
Cleanup
...
svn-id: r41254
2009-06-06 17:45:52 +00:00
Eugene Sandulenko
72d25455e0
Implement scummvm.ini flag features for AGI engine
...
svn-id: r41252
2009-06-06 17:44:46 +00:00
Eugene Sandulenko
45764de138
Cleanup
...
svn-id: r41251
2009-06-06 17:44:24 +00:00
Eugene Sandulenko
2eb7e914e8
Fix bug #2026605 : "SQ2: Have to wait after dying to do anything."
...
svn-id: r41250
2009-06-06 17:43:51 +00:00
Eugene Sandulenko
ed797c0709
Implement debug commands "room" and "bt"
...
svn-id: r41249
2009-06-06 17:43:26 +00:00
Eugene Sandulenko
c5f41b29fa
Stop abusing game flag.
...
svn-id: r41247
2009-06-06 17:42:37 +00:00
Eugene Sandulenko
b26ae991f8
Store and compare MD5s in the saves
...
svn-id: r41245
2009-06-06 17:41:50 +00:00
Eugene Sandulenko
a5d762c029
Fix bug #1745954 : "GR: Intro "jumpy" in parts (Amiga version)"
...
svn-id: r41244
2009-06-06 17:41:29 +00:00
Eugene Sandulenko
26d8b2bb72
Fix bug #2721940 : "AGI: Gold Rush! Restart Option differs from original"
...
svn-id: r41243
2009-06-06 17:40:56 +00:00
Eugene Sandulenko
a7049e5b3d
Fix implementation of prevent.input. This fixes SQ2 intro
...
svn-id: r41241
2009-06-06 17:40:09 +00:00
Eugene Sandulenko
194ab100c7
Fix bug #2434187 : "SQ2: message not displayed, or vanishes too quickly"
...
svn-id: r41240
2009-06-06 17:39:42 +00:00
Eugene Sandulenko
93d62da652
Whitespace fixes and C++ comments
...
svn-id: r41239
2009-06-06 17:39:13 +00:00
Eugene Sandulenko
7ed8d7f573
Proper fix for bug #2537054 : "AGI: Using GMM to load causes graphics glitches".
...
Save/load via GMM is not allowed in certain situations now.
svn-id: r40773
2009-05-21 21:51:50 +00:00