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

@ -524,8 +524,7 @@ void Scumm_v5::o5_actorSet() {
break;
case 22: /* animspeed */
a->animSpeed = getVarOrDirectByte(0x80);
a->animProgress = 0;
a->setAnimSpeed(getVarOrDirectByte(0x80));
break;
case 23: /* shadow mode */
a->shadow_mode = getVarOrDirectByte(0x80);
@ -942,7 +941,7 @@ void Scumm_v5::o5_getActorFacing() {
getResultPos();
int act = getVarOrDirectByte(0x80);
Actor *a = derefActor(act, "o5_getActorFacing");
setResult(newDirToOldDir(a->facing));
setResult(newDirToOldDir(a->getFacing()));
}
void Scumm_v5::o5_getActorMoving() {