aboutsummaryrefslogtreecommitdiff
path: root/saga/game.cpp
diff options
context:
space:
mode:
authorAndrew Kurushin2004-12-28 21:27:18 +0000
committerAndrew Kurushin2004-12-28 21:27:18 +0000
commitd6a4ffc2b034aa4ee065451ce7d611e0501d305b (patch)
tree9fcbe5c15ef7eae4dfcd83b86ff5be22c54a5f51 /saga/game.cpp
parenta40ed29abd3c164743f2b56c2f73aa4a956b34a8 (diff)
downloadscummvm-rg350-d6a4ffc2b034aa4ee065451ce7d611e0501d305b.tar.gz
scummvm-rg350-d6a4ffc2b034aa4ee065451ce7d611e0501d305b.tar.bz2
scummvm-rg350-d6a4ffc2b034aa4ee065451ce7d611e0501d305b.zip
- many actor walk related functions added
- implemented script functions for scriptDoors (except iso mode) - introduced getDisplayWidth() getDisplayHeight() getStatusYOffset getPathYOffset() svn-id: r16363
Diffstat (limited to 'saga/game.cpp')
-rw-r--r--saga/game.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/saga/game.cpp b/saga/game.cpp
index 0df41e6d0a..7c9a21427c 100644
--- a/saga/game.cpp
+++ b/saga/game.cpp
@@ -790,6 +790,30 @@ const GAME_SOUNDINFO SagaEngine::getSoundInfo(void) {
return *GameModule.gamedesc->gd_soundinfo;
}
+int SagaEngine::getDisplayWidth() {
+ return GameDescs[GameModule.game_number].gd_logical_w;
+}
+
+int SagaEngine::getDisplayHeight() {
+ return GameDescs[GameModule.game_number].gd_logical_h;
+}
+
+int SagaEngine::getPathYOffset() { //fixme: should be in GameDesc
+ if (_gameType == GType_ITE) {
+ return 35;
+ } else {
+ return 35; //fixme i don't know exact value
+ }
+}
+
+int SagaEngine::getStatusYOffset() { //fixme: should be in GameDesc
+ if (_gameType == GType_ITE) {
+ return ITE_STATUS_Y;
+ } else {
+ return IHNM_STATUS_Y;
+ }
+}
+
int SagaEngine::getDisplayInfo(GAME_DISPLAYINFO *disp_info) {
int game_n;