cleanup: encapsulate some more members of class Actor, and rename newDirection -> targetFacing (since it corresponds to the future value of 'facing'; the distinction between 'facing' and 'direction' is extremly fuzzy)

svn-id: r9175
This commit is contained in:
Max Horn 2003-07-24 17:44:00 +00:00
parent be7597a8c9
commit becd70d243
11 changed files with 45 additions and 44 deletions

View file

@ -1241,7 +1241,7 @@ int Scumm::getObjOldDir(int obj) {
int Scumm::getObjNewDir(int obj) {
int dir;
if (obj < _numActors) {
dir = derefActor(obj, "getObjNewDir")->facing;
dir = derefActor(obj, "getObjNewDir")->getFacing();
} else {
int x, y;
getObjectXYPos(obj, x, y, dir);