aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/actor.h
diff options
context:
space:
mode:
authorMax Horn2011-05-17 11:58:34 +0200
committerMax Horn2011-05-17 12:17:26 +0200
commit05a7b160b396f0ffec50d597f5c980be235cbe7e (patch)
treeaa795f5728e9da579434db6f7a59a8e5e6962e5f /engines/teenagent/actor.h
parent4cbe4ede66e65ec9289811eca2f5f62285174c8d (diff)
downloadscummvm-rg350-05a7b160b396f0ffec50d597f5c980be235cbe7e.tar.gz
scummvm-rg350-05a7b160b396f0ffec50d597f5c980be235cbe7e.tar.bz2
scummvm-rg350-05a7b160b396f0ffec50d597f5c980be235cbe7e.zip
TEEN: Use only one RandomSource and give that one a name.
This change ensures that only RandomSource is used which also is registered with the event recorder. Moreover, it gets rid of a static RandomSource instance inside Actor::renderIdle.
Diffstat (limited to 'engines/teenagent/actor.h')
-rw-r--r--engines/teenagent/actor.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/teenagent/actor.h b/engines/teenagent/actor.h
index 5e13af10ea..9a7d395547 100644
--- a/engines/teenagent/actor.h
+++ b/engines/teenagent/actor.h
@@ -22,6 +22,10 @@
#include "teenagent/animation.h"
#include "common/rect.h"
+namespace Common {
+class RandomSource;
+}
+
namespace TeenAgent {
class Actor : public Animation {
@@ -30,7 +34,7 @@ class Actor : public Animation {
public:
Actor();
Common::Rect render(Graphics::Surface *surface, const Common::Point &position, uint8 orientation, int delta_frame, bool head, uint zoom);
- Common::Rect renderIdle(Graphics::Surface *surface, const Common::Point &position, uint8 orientation, int delta_frame, uint zoom);
+ Common::Rect renderIdle(Graphics::Surface *surface, const Common::Point &position, uint8 orientation, int delta_frame, uint zoom, Common::RandomSource &rnd);
};
} // End of namespace TeenAgent