diff options
author | Nipun Garg | 2019-06-27 22:31:00 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:02 +0200 |
commit | 235040fb8a331d0cd5bccd6877966ffb1f3ed928 (patch) | |
tree | fa6d1d04567a71298a636de12a7e72b73f03957c | |
parent | 761c90e62a1c7f01d38420834119a4fa697a3950 (diff) | |
download | scummvm-rg350-235040fb8a331d0cd5bccd6877966ffb1f3ed928.tar.gz scummvm-rg350-235040fb8a331d0cd5bccd6877966ffb1f3ed928.tar.bz2 scummvm-rg350-235040fb8a331d0cd5bccd6877966ffb1f3ed928.zip |
HDB: Modify constants for simpler access
-rw-r--r-- | engines/hdb/ai.h | 1 | ||||
-rw-r--r-- | engines/hdb/draw-manager.h | 7 | ||||
-rw-r--r-- | engines/hdb/hdb.h | 5 |
3 files changed, 7 insertions, 6 deletions
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index 690e868fa7..8241d0d606 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -40,6 +40,7 @@ enum { kMaxAutoActions = 30, kMaxLuaEnts = 50, kMaxCallbacks = 20, + kDelay5Seconds = 5 * kGameFPS, kPlayerMoveSpeed = 4, kEnemyMoveSpeed = 2, kPushMoveSpeed = (kPlayerMoveSpeed >> 1), diff --git a/engines/hdb/draw-manager.h b/engines/hdb/draw-manager.h index 05d62453da..d1f1e81df2 100644 --- a/engines/hdb/draw-manager.h +++ b/engines/hdb/draw-manager.h @@ -35,7 +35,12 @@ enum { kMaxSkies = 10, kNum3DStars = 300, kFontSpace = 5, - kFontIncrement = 1 + kFontIncrement = 1, + kGameFPS = 60, + kAnimFrameDelay = kGameFPS / 30, + kAnimSlowFrames = kAnimFrameDelay * 10, + kAnimMediumFrames = kAnimFrameDelay * 6, + kAnimFastFrames = kAnimFrameDelay * 2 }; class Tile; diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h index 11ab000406..8fb2c7a3ac 100644 --- a/engines/hdb/hdb.h +++ b/engines/hdb/hdb.h @@ -113,11 +113,6 @@ enum Flag { enum { kScreenWidth = 640, kScreenHeight = 480, - kGameFPS = 60, - kAnimFrameDelay = kGameFPS / 30, - kAnimSlowFrames = kAnimFrameDelay * 10, - kAnimMediumFrames = kAnimFrameDelay * 6, - kAnimFastFrames = kAnimFrameDelay * 2 }; class HDBGame : public Engine { |