diff options
author | Eugene Sandulenko | 2007-09-19 13:55:05 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2007-09-19 13:55:05 +0000 |
commit | 77eea722afe175003baba3ed5341bfbf8cf988f6 (patch) | |
tree | ff95cd001b8929308468d69466623f0c28be476b /common | |
parent | 2254028365cf5f162bd41cf0011b4475ec608f4c (diff) | |
download | scummvm-rg350-77eea722afe175003baba3ed5341bfbf8cf988f6.tar.gz scummvm-rg350-77eea722afe175003baba3ed5341bfbf8cf988f6.tar.bz2 scummvm-rg350-77eea722afe175003baba3ed5341bfbf8cf988f6.zip |
Modified patch #1738058: "Action recorder".
svn-id: r28968
Diffstat (limited to 'common')
-rw-r--r-- | common/events.h | 6 | ||||
-rw-r--r-- | common/util.h | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/common/events.h b/common/events.h index d5e578a9ce..b0742b484a 100644 --- a/common/events.h +++ b/common/events.h @@ -140,7 +140,11 @@ public: */ virtual bool pollEvent(Common::Event &event) = 0; - + /** Register random source so it can be serialized in game test purposes **/ + virtual void registerRandomSource(Common::RandomSource &rnd, const char *name) = 0; + + virtual void processMillis(uint32 &millis) = 0; + /** Return the current key state */ virtual Common::Point getMousePos() const = 0; diff --git a/common/util.h b/common/util.h index 6d1814280b..f8f166e29e 100644 --- a/common/util.h +++ b/common/util.h @@ -72,6 +72,10 @@ private: public: RandomSource(); void setSeed(uint32 seed); + + uint32 getSeed() { + return _randSeed; + } /** * Generates a random unsigned integer in the interval [0, max]. |