diff options
author | Eugene Sandulenko | 2005-04-21 01:30:07 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2005-04-21 01:30:07 +0000 |
commit | 283a9f35ac294fa10105c7d8c18b57d7a2689e19 (patch) | |
tree | d1d35de8ff26764c87f36d3b7fa6adf3e34cb048 /saga/actor.cpp | |
parent | 7b93b0e079456018fdbc59e780925103ee345ca9 (diff) | |
download | scummvm-rg350-283a9f35ac294fa10105c7d8c18b57d7a2689e19.tar.gz scummvm-rg350-283a9f35ac294fa10105c7d8c18b57d7a2689e19.tar.bz2 scummvm-rg350-283a9f35ac294fa10105c7d8c18b57d7a2689e19.zip |
Add not yet correctly working save/load. Use key F7 for saving
and F8 for loading. Now works only within current scene and restores
to entrance #0 which is wrong.
svn-id: r17726
Diffstat (limited to 'saga/actor.cpp')
-rw-r--r-- | saga/actor.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/saga/actor.cpp b/saga/actor.cpp index 0926fdb2f4..77cb38fe59 100644 --- a/saga/actor.cpp +++ b/saga/actor.cpp @@ -180,6 +180,7 @@ Actor::Actor(SagaEngine *vm) : _vm(vm) { _pathDirectionListAlloced = 0; _centerActor = _protagonist = NULL; + _protagState = 0; _lastTickMsec = 0; _yCellCount = _vm->getSceneHeight(); @@ -548,6 +549,11 @@ bool Actor::validFollowerLocation(const Location &location) { return (_vm->_scene->canWalk(point)); } +void Actor::setProtagState(int state) { + debug(0, "STUB: setProtagState(%d)", state); + _protagState = state; +} + void Actor::updateActorsScene(int actorsEntrance) { int i, j; int followerDirection; |