aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v6he.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2005-03-11 01:10:06 +0000
committerEugene Sandulenko2005-03-11 01:10:06 +0000
commit154c4af8dc2d561050a5a963e2b45403cda618dc (patch)
tree0c4b41ed77afeb42036fdba990805b180edc7c24 /scumm/script_v6he.cpp
parent3cf691e9f9d0aafad14b76272201a0cfac2e8a76 (diff)
downloadscummvm-rg350-154c4af8dc2d561050a5a963e2b45403cda618dc.tar.gz
scummvm-rg350-154c4af8dc2d561050a5a963e2b45403cda618dc.tar.bz2
scummvm-rg350-154c4af8dc2d561050a5a963e2b45403cda618dc.zip
Mass-renamed all variables of Actor object according to our current code
formatting standards. Earlier we had half of vars named with leading underscore and half without it. Now code in actor.cpp is considerably more readable. svn-id: r17068
Diffstat (limited to 'scumm/script_v6he.cpp')
-rw-r--r--scumm/script_v6he.cpp76
1 files changed, 38 insertions, 38 deletions
diff --git a/scumm/script_v6he.cpp b/scumm/script_v6he.cpp
index 960524fd0a..b7175b9826 100644
--- a/scumm/script_v6he.cpp
+++ b/scumm/script_v6he.cpp
@@ -624,7 +624,7 @@ void ScummEngine_v60he::o60_actorOps() {
case 78: // SO_SOUND
k = getStackList(args, ARRAYSIZE(args));
for (i = 0; i < k; i++)
- a->sound[i] = args[i];
+ a->_sound[i] = args[i];
break;
case 79: // SO_WALK_ANIMATION
a->_walkFrame = pop();
@@ -660,92 +660,92 @@ void ScummEngine_v60he::o60_actorOps() {
i = pop();
checkRange(255, 0, i, "Illegal palette slot %d");
a->remapActorPaletteColor(i, j);
- a->needRedraw = true;
+ a->_needRedraw = true;
break;
case 87: // SO_TALK_COLOR
- a->talkColor = pop();
+ a->_talkColor = pop();
break;
case 88: // SO_ACTOR_NAME
- loadPtrToResource(rtActorName, a->number, NULL);
+ loadPtrToResource(rtActorName, a->_number, NULL);
break;
case 89: // SO_INIT_ANIMATION
a->_initFrame = pop();
break;
case 91: // SO_ACTOR_WIDTH
- a->width = pop();
+ a->_width = pop();
break;
case 92: // SO_SCALE
i = pop();
a->setScale(i, i);
break;
case 93: // SO_NEVER_ZCLIP
- a->forceClip = 0;
+ a->_forceClip = 0;
break;
case 94: // SO_ALWAYS_ZCLIP
- a->forceClip = pop();
+ a->_forceClip = pop();
break;
case 95: // SO_IGNORE_BOXES
- a->ignoreBoxes = 1;
- a->forceClip = 0;
+ a->_ignoreBoxes = 1;
+ a->_forceClip = 0;
if (a->isInCurrentRoom())
- a->putActor(a->_pos.x, a->_pos.y, a->room);
+ a->putActor(a->_pos.x, a->_pos.y, a->_room);
break;
case 96: // SO_FOLLOW_BOXES
- a->ignoreBoxes = 0;
- a->forceClip = 0;
+ a->_ignoreBoxes = 0;
+ a->_forceClip = 0;
if (a->isInCurrentRoom())
- a->putActor(a->_pos.x, a->_pos.y, a->room);
+ a->putActor(a->_pos.x, a->_pos.y, a->_room);
break;
case 97: // SO_ANIMATION_SPEED
a->setAnimSpeed(pop());
break;
case 98: // SO_SHADOW
a->_shadowMode = pop();
- a->needRedraw = true;
+ a->_needRedraw = true;
break;
case 99: // SO_TEXT_OFFSET
- a->talkPosY = pop();
- a->talkPosX = pop();
+ a->_talkPosY = pop();
+ a->_talkPosX = pop();
break;
case 156: // HE 7.2
- a->charset = pop();
+ a->_charset = pop();
break;
case 198: // SO_ACTOR_VARIABLE
i = pop();
a->setAnimVar(pop(), i);
break;
case 215: // SO_ACTOR_IGNORE_TURNS_ON
- a->ignoreTurns = true;
+ a->_ignoreTurns = true;
break;
case 216: // SO_ACTOR_IGNORE_TURNS_OFF
- a->ignoreTurns = false;
+ a->_ignoreTurns = false;
break;
case 217: // SO_ACTOR_NEW
a->initActor(2);
break;
case 218:
{
- int top_actor = a->top;
- int bottom_actor = a->bottom;
- a->drawToBackBuf = true;
- a->needRedraw = true;
+ int top_actor = a->_top;
+ int bottom_actor = a->_bottom;
+ a->_drawToBackBuf = true;
+ a->_needRedraw = true;
a->drawActorCostume();
- a->drawToBackBuf = false;
- a->needRedraw = true;
+ a->_drawToBackBuf = false;
+ a->_needRedraw = true;
a->drawActorCostume();
- a->needRedraw = false;
+ a->_needRedraw = false;
- if (a->top > top_actor)
- a->top = top_actor;
- if (a->bottom < bottom_actor)
- a->bottom = bottom_actor;
+ if (a->_top > top_actor)
+ a->_top = top_actor;
+ if (a->_bottom < bottom_actor)
+ a->_bottom = bottom_actor;
}
break;
case 219:
- a->drawToBackBuf = false;
- a->needRedraw = true;
- a->needBgReset = true;
+ a->_drawToBackBuf = false;
+ a->_needRedraw = true;
+ a->_needBgReset = true;
break;
case 225:
{
@@ -754,11 +754,11 @@ void ScummEngine_v60he::o60_actorOps() {
int slot = pop();
int len = resStrLen(string) + 1;
- addMessageToStack(string, a->heTalkQueue[slot].sentence, len);
+ addMessageToStack(string, a->_heTalkQueue[slot].sentence, len);
- a->heTalkQueue[slot].posX = a->talkPosX;
- a->heTalkQueue[slot].posY = a->talkPosY;
- a->heTalkQueue[slot].color = a->talkColor;
+ a->_heTalkQueue[slot].posX = a->_talkPosX;
+ a->_heTalkQueue[slot].posY = a->_talkPosY;
+ a->_heTalkQueue[slot].color = a->_talkColor;
break;
}
default:
@@ -777,7 +777,7 @@ void ScummEngine_v60he::o60_wait() {
offs = fetchScriptWordSigned();
actnum = pop();
a = derefActor(actnum, "o60_wait:168");
- if (a->moving)
+ if (a->_moving)
break;
return;
case 169: // SO_WAIT_FOR_MESSAGE Wait for message