[Scummvm-cvs-logs] CVS: scummvm/scumm actor.cpp,1.313,1.314 actor.h,1.75,1.76 akos.cpp,1.198,1.199 script_v100he.cpp,2.14,2.15 script_v6he.cpp,2.133,2.134 script_v72he.cpp,2.170,2.171 scumm.h,1.509,1.510

Travis Howell kirben at users.sourceforge.net
Tue Oct 12 07:43:19 CEST 2004


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13585/scumm

Modified Files:
	actor.cpp actor.h akos.cpp script_v100he.cpp script_v6he.cpp 
	script_v72he.cpp scumm.h 
Log Message:

Rename as requested.


Index: actor.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/actor.cpp,v
retrieving revision 1.313
retrieving revision 1.314
diff -u -d -r1.313 -r1.314
--- actor.cpp	12 Oct 2004 14:12:19 -0000	1.313
+++ actor.cpp	12 Oct 2004 14:40:27 -0000	1.314
@@ -62,7 +62,7 @@
 		frame = 0;
 		_walkbox = 0;
 		animProgress = 0;
-		skipLimbs = false;
+		heSkipLimbs = false;
 		drawToBackBuf = false;
 		memset(animVariable, 0, sizeof(animVariable));
 		memset(palette, 0, sizeof(palette));
@@ -71,7 +71,7 @@
 		memset(&walkdata, 0, sizeof(ActorWalkData));
 		walkdata.point3.x = 32000;
 		walkScript = 0;
-		memset(talkQueue, 0, sizeof(talkQueue));
+		memset(heTalkQueue, 0, sizeof(heTalkQueue));
 		
 		mode = 1;
 	}
@@ -82,15 +82,15 @@
 		_pos.x = 0;
 		_pos.y = 0;
 		facing = 180;
-		condMask = 1;
-		noTalkAnimation = 0;
+		heCondMask = 1;
+		heNoTalkAnimation = 0;
 		if (_vm->_version >= 7)
 			visible = false;
-		skipLimbs = false;
+		heSkipLimbs = false;
 	} else if (mode == 2) {
 		facing = 180;
-		condMask = 1;
-		skipLimbs = false;
+		heCondMask = 1;
+		heSkipLimbs = false;
 	}
 	_elevation = 0;
 	width = 24;
@@ -137,14 +137,14 @@
 		_talkStopFrame = 5;
 	}
 
-	_talking = false;
+	_heTalking = false;
 	walkScript = 0;
 	talkScript = 0;
 
 	_clipOverride = _vm->_actorClipOverride;
 
 	auxBlock.visible = false;
-	paletteNum = 0;
+	hePaletteNum = 0;
 
 	_vm->_classData[number] = (_vm->_version >= 7) ? _vm->_classData[0] : 0;
 }
@@ -808,14 +808,14 @@
 // an internal variable. Emulate this to prevent overwriting script vars...
 int ScummEngine::getTalkingActor() {
 	if (_gameId == GID_MANIAC && _version == 1)
-		return _V1_talkingActor;
+		return _V1TalkingActor;
 	else
 		return VAR(VAR_TALK_ACTOR);
 }
 
 void ScummEngine::setTalkingActor(int value) {
 	if (_gameId == GID_MANIAC && _version == 1)
-		_V1_talkingActor = value;
+		_V1TalkingActor = value;
 	else
 		VAR(VAR_TALK_ACTOR) = value;
 }
@@ -1079,12 +1079,12 @@
 	bcr->_draw_top = 0x7fffffff;
 	bcr->_draw_bottom = 0;
 
-	bcr->_skipLimbs = (skipLimbs != 0);
-	bcr->_paletteNum = paletteNum;
+	bcr->_skipLimbs = (heSkipLimbs != 0);
+	bcr->_paletteNum = hePaletteNum;
 	
-	if (_vm->_heversion >= 80 && noTalkAnimation == 0) {
-		condMask &= 0xFFFFFC00;
-		condMask |= 1;
+	if (_vm->_heversion >= 80 && heNoTalkAnimation == 0) {
+		heCondMask &= 0xFFFFFC00;
+		heCondMask |= 1;
 		if (_vm->getTalkingActor() == number) {
 			// Checks if talk sound is active?
 			// Otherwise just do rand animation
@@ -1092,7 +1092,7 @@
 			setTalkCondition(rnd);
 		} 
 	}
-	noTalkAnimation = 0;
+	heNoTalkAnimation = 0;
 
 	// If the actor is partially hidden, redraw it next frame.
 	// Only done for pre-AKOS, though.
@@ -1275,7 +1275,7 @@
 			if ((_version <= 7 && !_keepText) || (_version == 8 && VAR(VAR_HAVE_MSG)))
 				stopTalk();
 			setTalkingActor(a->number);
-			a->_talking = true;
+			a->_heTalking = true;
 			if (!_string[0].no_talk_anim) {
 				a->runActorTalkScript(a->_talkStartFrame);
 				_useTalkAnims = true;
@@ -1338,7 +1338,7 @@
 		}
 		if (_version <= 7 && !(_features & GF_HUMONGOUS))
 			setTalkingActor(0xFF);
-		a->_talking = false;
+		a->_heTalking = false;
 	}
 	if (_version == 8 || _features & GF_HUMONGOUS)
 		setTalkingActor(0);
@@ -1352,7 +1352,7 @@
 	int i;
 
 	if ((_vm->_features & GF_HUMONGOUS) && (c == -1  || c == -2)) {
-		skipLimbs = (c == -1);
+		heSkipLimbs = (c == -1);
 		needRedraw = true;
 		return;
 	}
@@ -1837,39 +1837,39 @@
 	debug(1, "Actor::setUserCondition(%d, %d)", slot, set);
 	assert(slot >= 1 && slot <= 0x20);
 	if (set == 0) {
-		condMask &= ~(1 << (slot + 0xF));
+		heCondMask &= ~(1 << (slot + 0xF));
 	} else {
-		condMask |= 1 << (slot + 0xF);
+		heCondMask |= 1 << (slot + 0xF);
 	}
-	if (condMask & 0x3FF) {
-		condMask &= ~1;
+	if (heCondMask & 0x3FF) {
+		heCondMask &= ~1;
 	} else {
-		condMask |= 1;
+		heCondMask |= 1;
 	}
 }
 
 bool Actor::isUserConditionSet(int slot) const {
 	assert(slot >= 1 && slot <= 0x20);
-	return (condMask & (1 << (slot + 0xF))) != 0;
+	return (heCondMask & (1 << (slot + 0xF))) != 0;
 }
 
 void Actor::setTalkCondition(int slot) {
 	debug(1, "Actor::setTalkCondition(%d)", slot);
 	assert(slot >= 1 && slot <= 0x10);
-	condMask = (condMask & ~0x3FF) | 1;
+	heCondMask = (heCondMask & ~0x3FF) | 1;
 	if (slot != 1) {
-		condMask |= 1 << (slot - 1);
-		if (condMask & 0x3FF) {
-			condMask &= ~1;
+		heCondMask |= 1 << (slot - 1);
+		if (heCondMask & 0x3FF) {
+			heCondMask &= ~1;
 		} else {
-			condMask |= 1;
+			heCondMask |= 1;
 		}
 	}	
 }
 
 bool Actor::isTalkConditionSet(int slot) const {	
 	assert(slot >= 1 && slot <= 0x10);
-	return (condMask & (1 << (slot - 1))) != 0;
+	return (heCondMask & (1 << (slot - 1))) != 0;
 }
 
 void ScummEngine::preProcessAuxQueue() {
@@ -2017,7 +2017,7 @@
 		MKLINE(Actor, cost.soundCounter, sleByte, VER(8)),
 		MKLINE(Actor, drawToBackBuf, sleByte, VER(32)),
 		MKLINE(Actor, flip, sleByte, VER(32)),
-		MKLINE(Actor, skipLimbs, sleByte, VER(32)),
+		MKLINE(Actor, heSkipLimbs, sleByte, VER(32)),
 
 		// Actor palette grew from 64 to 256 bytes
 		MKARRAY_OLD(Actor, palette[0], sleByte, 64, VER(8), VER(9)),
@@ -2033,7 +2033,7 @@
 		MKLINE(Actor, needRedraw, sleByte, VER(8)),
 		MKLINE(Actor, needBgReset, sleByte, VER(8)),
 		MKLINE(Actor, costumeNeedsInit, sleByte, VER(8)),
-		MKLINE(Actor, condMask, sleUint32, VER(38)),
+		MKLINE(Actor, heCondMask, sleUint32, VER(38)),
 
 		MKLINE(Actor, talkPosY, sleInt16, VER(8)),
 		MKLINE(Actor, talkPosX, sleInt16, VER(8)),

Index: actor.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/actor.h,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -d -r1.75 -r1.76
--- actor.h	12 Oct 2004 14:12:20 -0000	1.75
+++ actor.h	12 Oct 2004 14:40:27 -0000	1.76
@@ -132,11 +132,11 @@
 	CostumeData cost;
 
 	/* HE specific */
-	byte paletteNum;
-	bool noTalkAnimation;
-	bool skipLimbs;
-	bool _talking;
-	uint32 condMask;
+	byte hePaletteNum;
+	bool heNoTalkAnimation;
+	bool heSkipLimbs;
+	bool _heTalking;
+	uint32 heCondMask;
 
 	AuxBlock auxBlock;
 
@@ -145,7 +145,7 @@
 		int16 posY;
 		int16 color;
 		byte sentence[128];
-	} talkQueue[16];
+	} heTalkQueue[16];
 
 protected:
 	byte palette[256];

Index: akos.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/akos.cpp,v
retrieving revision 1.198
retrieving revision 1.199
diff -u -d -r1.198 -r1.199
--- akos.cpp	12 Oct 2004 14:12:20 -0000	1.198
+++ akos.cpp	12 Oct 2004 14:40:32 -0000	1.199
@@ -464,11 +464,11 @@
 					uint32 type = cond & 0xC0000000;
 					cond &= 0x3FFFFFFF;
 					if (type == 0x40000000) {
-						decflag = (a->condMask & cond) ? 1 : 0;
+						decflag = (a->heCondMask & cond) ? 1 : 0;
 					} else if (type == 0x80000000) {
-						decflag = (a->condMask & cond) ? 0 : 1;
+						decflag = (a->heCondMask & cond) ? 0 : 1;
 					} else {
-						decflag = (a->condMask & cond) ? 1 : 0;
+						decflag = (a->heCondMask & cond) ? 1 : 0;
 					}
 				}
 			}
@@ -1536,13 +1536,13 @@
 			akos_queCommand(8, a, GB(2), 0);
 			continue;
 		case AKC_C0A1:
-			if (a->_talking) {
+			if (a->_heTalking) {
 				curpos = GUW(2);
 				break;
 			}
 			continue;
 		case AKC_C0A2:
-			if (!a->_talking) {
+			if (!a->_heTalking) {
 				curpos = GUW(2);
 				break;
 			}
@@ -1677,12 +1677,12 @@
 			if (_heversion >= 71) {
 				_actorToPrintStrFor = a->number;
 
-				a->talkPosX = a->talkQueue[param_1].posX;
-				a->talkPosY = a->talkQueue[param_1].posY;
-				a->talkColor = a->talkQueue[param_1].color;
+				a->talkPosX = a->heTalkQueue[param_1].posX;
+				a->talkPosY = a->heTalkQueue[param_1].posY;
+				a->talkColor = a->heTalkQueue[param_1].color;
 
 				_string[0].loadDefault();
-				actorTalk(a->talkQueue[param_1].sentence);
+				actorTalk(a->heTalkQueue[param_1].sentence);
 
 			} else if (param_1 != 0) {
 				if (_imuseDigital) {

Index: script_v100he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v100he.cpp,v
retrieving revision 2.14
retrieving revision 2.15
diff -u -d -r2.14 -r2.15
--- script_v100he.cpp	12 Oct 2004 14:12:20 -0000	2.14
+++ script_v100he.cpp	12 Oct 2004 14:40:32 -0000	2.15
@@ -473,7 +473,7 @@
 		a->_layer = -pop();
 		break;
 	case 63:
-		a->paletteNum = pop();
+		a->hePaletteNum = pop();
 		break;
 	case 65:		// SO_SCALE
 		i = pop();
@@ -494,11 +494,11 @@
 		int slot = pop();
 
 		int len = resStrLen(string) + 1;
-		addMessageToStack(string, a->talkQueue[slot].sentence, len);
+		addMessageToStack(string, a->heTalkQueue[slot].sentence, len);
 
-		a->talkQueue[slot].posX = a->talkPosX;
-		a->talkQueue[slot].posY = a->talkPosY;
-		a->talkQueue[slot].color = a->talkColor;
+		a->heTalkQueue[slot].posX = a->talkPosX;
+		a->heTalkQueue[slot].posY = a->talkPosY;
+		a->heTalkQueue[slot].color = a->talkColor;
 		}
 		break;
 	case 83:		// SO_ACTOR_VARIABLE
@@ -562,7 +562,7 @@
 		break;
 	case 142:
 		k = pop();
-		a->noTalkAnimation = 1;
+		a->heNoTalkAnimation = 1;
 		a->setTalkCondition(k);
 		debug(1,"o100_actorOps: case 24 (%d)", k);
 		break;

Index: script_v6he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v6he.cpp,v
retrieving revision 2.133
retrieving revision 2.134
diff -u -d -r2.133 -r2.134
--- script_v6he.cpp	10 Oct 2004 05:49:30 -0000	2.133
+++ script_v6he.cpp	12 Oct 2004 14:40:32 -0000	2.134
@@ -754,11 +754,11 @@
 		int slot = pop();
 
 		int len = resStrLen(string) + 1;
-		addMessageToStack(string, a->talkQueue[slot].sentence, len);
+		addMessageToStack(string, a->heTalkQueue[slot].sentence, len);
 
-		a->talkQueue[slot].posX = a->talkPosX;
-		a->talkQueue[slot].posY = a->talkPosY;
-		a->talkQueue[slot].color = a->talkColor;
+		a->heTalkQueue[slot].posX = a->talkPosX;
+		a->heTalkQueue[slot].posY = a->talkPosY;
+		a->heTalkQueue[slot].color = a->talkColor;
 		break;
 		}
 	default:

Index: script_v72he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v72he.cpp,v
retrieving revision 2.170
retrieving revision 2.171
diff -u -d -r2.170 -r2.171
--- script_v72he.cpp	12 Oct 2004 14:12:20 -0000	2.170
+++ script_v72he.cpp	12 Oct 2004 14:40:32 -0000	2.171
@@ -1071,7 +1071,7 @@
 		break;
 	case 24: // HE 80+
 		k = pop();
-		a->noTalkAnimation = 1;
+		a->heNoTalkAnimation = 1;
 		a->setTalkCondition(k);
 		debug(1,"o72_actorOps: case 24 (%d)", k);
 		break;
@@ -1193,7 +1193,7 @@
 		a->charset = pop();
 		break;
 	case 175:		// HE 99+
-		a->paletteNum = pop();
+		a->hePaletteNum = pop();
 		break;
 	case 198:		// SO_ACTOR_VARIABLE
 		i = pop();
@@ -1238,11 +1238,11 @@
 		int slot = pop();
 
 		int len = resStrLen(string) + 1;
-		addMessageToStack(string, a->talkQueue[slot].sentence, len);
+		addMessageToStack(string, a->heTalkQueue[slot].sentence, len);
 
-		a->talkQueue[slot].posX = a->talkPosX;
-		a->talkQueue[slot].posY = a->talkPosY;
-		a->talkQueue[slot].color = a->talkColor;
+		a->heTalkQueue[slot].posX = a->talkPosX;
+		a->heTalkQueue[slot].posY = a->talkPosY;
+		a->heTalkQueue[slot].color = a->talkColor;
 		break;
 		}
 	default:

Index: scumm.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scumm.h,v
retrieving revision 1.509
retrieving revision 1.510
diff -u -d -r1.509 -r1.510
--- scumm.h	4 Oct 2004 14:28:43 -0000	1.509
+++ scumm.h	12 Oct 2004 14:40:32 -0000	1.510
@@ -855,7 +855,7 @@
 
 public:
 	/* Actor talking stuff */
-	byte _actorToPrintStrFor, _V1_talkingActor;
+	byte _actorToPrintStrFor, _V1TalkingActor;
 	int _sentenceNum;
 	SentenceTab _sentence[NUM_SENTENCE];
 	StringTab _string[6];





More information about the Scummvm-git-logs mailing list