aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/ui
diff options
context:
space:
mode:
Diffstat (limited to 'engines/bladerunner/ui')
-rw-r--r--engines/bladerunner/ui/scores.cpp20
-rw-r--r--engines/bladerunner/ui/scores.h8
2 files changed, 28 insertions, 0 deletions
diff --git a/engines/bladerunner/ui/scores.cpp b/engines/bladerunner/ui/scores.cpp
index 5f15809c9a..067c90a15a 100644
--- a/engines/bladerunner/ui/scores.cpp
+++ b/engines/bladerunner/ui/scores.cpp
@@ -36,10 +36,30 @@ Scores::Scores(BladeRunnerEngine *vm) {
Scores::~Scores() {
}
+void Scores::open() {
+}
+
bool Scores::isOpen() const {
return _isOpen;
}
+void Scores::set(int index, int value) {
+ if (value > _scores[index]) {
+ _scores[index] = value;
+ }
+
+ _lastScoreId = index;
+ _lastScoreValue = value;
+}
+
+int Scores::handleMouseUp(int x, int y) {
+ return false;
+}
+
+int Scores::handleMouseDown(int x, int y) {
+ return false;
+}
+
void Scores::tick() {
}
diff --git a/engines/bladerunner/ui/scores.h b/engines/bladerunner/ui/scores.h
index a739614e76..3ae12defd7 100644
--- a/engines/bladerunner/ui/scores.h
+++ b/engines/bladerunner/ui/scores.h
@@ -49,7 +49,15 @@ public:
Scores(BladeRunnerEngine *vm);
~Scores();
+ void open();
bool isOpen() const;
+
+ int query(int index) { return _scores[index]; }
+ void set(int index, int value);
+
+ int handleMouseUp(int x, int y);
+ int handleMouseDown(int x, int y);
+
void tick();
void reset();
void save(SaveFileWriteStream &f);