diff options
author | Andrew Kurushin | 2005-01-11 21:10:36 +0000 |
---|---|---|
committer | Andrew Kurushin | 2005-01-11 21:10:36 +0000 |
commit | 244b227b19b6bec659e4c00e2d7aa9596978cbe5 (patch) | |
tree | f7a88160f68d6f4da5e5580ae13ce9bb382d7795 /saga/actor.cpp | |
parent | f1026ce3eb0bf4ad4e68987e4952dff141ccf331 (diff) | |
download | scummvm-rg350-244b227b19b6bec659e4c00e2d7aa9596978cbe5.tar.gz scummvm-rg350-244b227b19b6bec659e4c00e2d7aa9596978cbe5.tar.bz2 scummvm-rg350-244b227b19b6bec659e4c00e2d7aa9596978cbe5.zip |
- remove game.h & image.h
- all display information of current game goes to SagaEngine
- remove GameFontIds
- hide SagaEngine _gameId,_gameType & etc with methods getGameId(), getGameType()
svn-id: r16545
Diffstat (limited to 'saga/actor.cpp')
-rw-r--r-- | saga/actor.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/saga/actor.cpp b/saga/actor.cpp index 77625d3871..462c65ddd1 100644 --- a/saga/actor.cpp +++ b/saga/actor.cpp @@ -136,7 +136,7 @@ Actor::Actor(SagaEngine *vm) : _vm(vm) { ActorData *actor; debug(9, "Actor::Actor()"); - if (_vm->_gameType == GType_IHNM) { + if (_vm->getGameType() == GType_IHNM) { warning("Actors aren't implemented for IHNM yet"); return; } @@ -155,7 +155,7 @@ Actor::Actor(SagaEngine *vm) : _vm(vm) { _centerActor = _protagonist = NULL; _lastTickMsec = 0; - _yCellCount = _vm->getStatusYOffset() + 1; + _yCellCount = _vm->getSceneHeight(); _xCellCount = _vm->getDisplayWidth(); _pathCell = (int8*) malloc(_yCellCount * _xCellCount * sizeof(*_pathCell)); @@ -163,8 +163,8 @@ Actor::Actor(SagaEngine *vm) : _vm(vm) { _pathRect.left = 0; _pathRect.right = _vm->getDisplayWidth(); - _pathRect.top = _vm->getPathYOffset(); - _pathRect.bottom = _vm->getStatusYOffset(); + _pathRect.top = _vm->getDisplayInfo().pathStartY; + _pathRect.bottom = _vm->getSceneHeight(); // Get actor resource file context _actorContext = _vm->getFileContext(GAME_RESOURCEFILE, 0); @@ -395,7 +395,7 @@ bool Actor::validFollowerLocation(const ActorLocation &location) { location.toScreenPointXY(point); if ((point.x < 5) || (point.x >= _vm->getDisplayWidth() - 5) || - (point.y < 0) || (point.y > _vm->getStatusYOffset())) { + (point.y < 0) || (point.y > _vm->getSceneHeight())) { return false; } @@ -410,7 +410,7 @@ void Actor::updateActorsScene() { ActorLocation possibleLocation; Point delta; - if (_vm->_gameType == GType_IHNM) { + if (_vm->getGameType() == GType_IHNM) { warning("Actors aren't implemented for IHNM yet"); return; } @@ -883,7 +883,7 @@ void Actor::calcActorScreenPosition(ActorData *actor) { if (_vm->_scene->getFlags() & kSceneFlagISO) { //todo: it } else { - middle = _vm->getStatusYOffset() - actor->location.y / ACTOR_LMULT; + middle = _vm->getSceneHeight() - actor->location.y / ACTOR_LMULT; _vm->_scene->getSlopes(beginSlope, endSlope); |