aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/gfx.cpp11
-rw-r--r--engines/hdb/gfx.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp
index d4315a060c..3fdba2ed8e 100644
--- a/engines/hdb/gfx.cpp
+++ b/engines/hdb/gfx.cpp
@@ -192,6 +192,17 @@ void Gfx::updateFade() {
debug(9, "STUB: Gfx::updateFade incomplete");
}
+void Gfx::turnOnSnow() {
+ int i;
+ _snowInfo.active = true;
+ for (i = 0; i < MAX_SNOW; i++) {
+ _snowInfo.x[i] = g_hdb->_rnd->getRandomNumber(kScreenWidth);
+ _snowInfo.y[i] = g_hdb->_rnd->getRandomNumber(kScreenHeight);
+ _snowInfo.yv[i] = g_hdb->_rnd->getRandomNumber(3) + 1;
+ _snowInfo.xvindex[i] = g_hdb->_rnd->getRandomNumber(MAX_SNOW_XV);
+ }
+}
+
Picture *Gfx::loadPic(const char *picName) {
Picture *pic = new Picture;
Common::SeekableReadStream *stream = g_hdb->_fileMan->findFirstData(picName, TYPE_PIC);
diff --git a/engines/hdb/gfx.h b/engines/hdb/gfx.h
index ae7927debc..597bf7fe37 100644
--- a/engines/hdb/gfx.h
+++ b/engines/hdb/gfx.h
@@ -107,6 +107,7 @@ public:
bool isFadeActive() { return _fadeInfo.active; }
bool isFadeStaying() { return _fadeInfo.stayFaded; }
void turnOffFade() { _fadeInfo.active = _fadeInfo.stayFaded = false; }
+ void turnOnSnow();
void turnOffSnow() { _snowInfo.active = false; }
Picture *loadPic(const char *picName);