aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/gamemodule.h
diff options
context:
space:
mode:
authorjohndoe1232012-10-20 20:57:46 +0000
committerWillem Jan Palenstijn2013-05-08 20:47:33 +0200
commit5af2de503ecf4e621370bf51a16472e162e543ac (patch)
tree013675e6c87457c8ea105c526f0fa7eb7f22a8f1 /engines/neverhood/gamemodule.h
parent54c83924ce072c2d472b4c5c1c5f1748df579257 (diff)
downloadscummvm-rg350-5af2de503ecf4e621370bf51a16472e162e543ac.tar.gz
scummvm-rg350-5af2de503ecf4e621370bf51a16472e162e543ac.tar.bz2
scummvm-rg350-5af2de503ecf4e621370bf51a16472e162e543ac.zip
NEVERHOOD: Rewrite GameModule::initMemoryPuzzle() to use NonRepeatingRandomNumbers
- Change NonRepeatingRandomNumbers
Diffstat (limited to 'engines/neverhood/gamemodule.h')
-rw-r--r--engines/neverhood/gamemodule.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/neverhood/gamemodule.h b/engines/neverhood/gamemodule.h
index 6aa711d96b..8fafe2ba9e 100644
--- a/engines/neverhood/gamemodule.h
+++ b/engines/neverhood/gamemodule.h
@@ -65,14 +65,13 @@ protected:
void updateMenuModule();
};
-class NonRepeatingRandomNumbers {
+class NonRepeatingRandomNumbers : public Common::Array<int> {
public:
NonRepeatingRandomNumbers(Common::RandomSource *rnd, int count);
int getNumber();
- bool empty() const { return _numbers.empty(); }
+ void removeNumber(int number);
protected:
Common::RandomSource *_rnd;
- Common::Array<int> _numbers;
};
} // End of namespace Neverhood