• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ popVar函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中popVar函数的典型用法代码示例。如果您正苦于以下问题:C++ popVar函数的具体用法?C++ popVar怎么用?C++ popVar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了popVar函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: Op_RemoveProc

int16 Op_RemoveProc() {
	int idx;
	int overlay;

	idx = popVar();
	overlay = popVar();

	if (!overlay) {
		overlay = currentScriptPtr->overlayNumber;
	}

	removeScript(overlay, idx, &procHead);

	return (0);
}
开发者ID:Bundesdrucker,项目名称:scummvm,代码行数:15,代码来源:function.cpp


示例2: Op_RemoveMessage

int16 Op_RemoveMessage() {
	int idx;
	int overlay;

	idx = popVar();
	overlay = popVar();

	if (!overlay) {
		overlay = currentScriptPtr->overlayNumber;
	}

	removeCell(&cellHead, overlay, idx, 5, masterScreen);

	return (0);
}
开发者ID:Bundesdrucker,项目名称:scummvm,代码行数:15,代码来源:function.cpp


示例3: Op_Inventory

int16 Op_Inventory() {
	int si = var41;

	var41 = popVar();

	return si;
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:7,代码来源:function.cpp


示例4: Op_LoadBackground

int16 Op_LoadBackground() {
	int result = 0;
	char bgName[36] = "";
	char *ptr;
	int bgIdx;

	ptr = (char *) popPtr();

	Common::strlcpy(bgName, ptr, sizeof(bgName));

	bgIdx = popVar();

	if (bgIdx >= 0 || bgIdx < NBSCREENS) {
		strToUpper(bgName);

		gfxModuleData_gfxWaitVSync();
		gfxModuleData_gfxWaitVSync();

		result = loadBackground(bgName, bgIdx);

		gfxModuleData_addDirtyRect(Common::Rect(0, 0, 320, 200));
	}

	changeCursor(CURSOR_NORMAL);

	return result;
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:27,代码来源:function.cpp


示例5: Op_InitializeState

int16 Op_InitializeState() {
	int param1 = popVar();
	int objIdx = popVar();
	int ovlIdx = popVar();

	if (!ovlIdx)
		ovlIdx = currentScriptPtr->overlayNumber;

#ifdef FUNCTION_DEBUG
	debug(1, "Init %s state to %d", getObjectName(objIdx, overlayTable[ovlIdx].ovlData->arrayNameObj), param1);
#endif

	objInit(ovlIdx, objIdx, param1);

	return (0);
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:16,代码来源:function.cpp


示例6: Op_LoopFX

int16 Op_LoopFX() {
	int volume = popVar();
	int speed = popVar();
	/*int channelNum = */popVar();
	int sampleNum = popVar();

	if ((sampleNum >= 0) && (sampleNum < NUM_FILE_ENTRIES) && (filesDatabase[sampleNum].subData.ptr)) {
		if (speed == -1)
			speed = filesDatabase[sampleNum].subData.transparency;

		_vm->sound().playSound(filesDatabase[sampleNum].subData.ptr,
			filesDatabase[sampleNum].width, volume);
	}

	return (0);
}
开发者ID:Bundesdrucker,项目名称:scummvm,代码行数:16,代码来源:function.cpp


示例7: Op_LinkObjects

int16 Op_LinkObjects() {
	int type = popVar();
	int obj2 = popVar();
	int ovl2 = popVar();
	int obj = popVar();
	int ovl = popVar();

	if (!ovl)
		ovl = currentScriptPtr->overlayNumber;
	if (!ovl2)
		ovl2 = currentScriptPtr->overlayNumber;

	linkCell(&cellHead, ovl, obj, type, ovl2, obj2);

	return 0;
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:16,代码来源:function.cpp


示例8: returnBook

int returnBook()
{
    Var *varList = pushVar();

    printf("\n... Returning Books ...\n");
    printf("Thank you, %s!  ", name);

    holdNum -= returnNum;

    if (1 == returnNum)
        printf("You've just returned [%d] book!\n", returnNum);
    else
        printf("You've just returned [%d] books!\n", returnNum);

    currentLimit = borrowLimit - holdNum;

    if (1 == currentLimit)
        printf("Now you can borrow [%d] more book.\n", currentLimit);
    else
        printf("Now you can borrow [%d] more books.\n", currentLimit);

    /* set the value for return */
    varList[HOLDNUM].val.i = holdNum;
    popVar(varList);
    return holdNum;
}
开发者ID:mkc188,项目名称:csci3180,代码行数:26,代码来源:local.c


示例9: topContext

void Interpreter::storeCtxInt() {
	FunctionContext* ctx = topContext();
	uint16_t ctxId = getNext2Bytes();
	uint16_t id = getNext2Bytes();
	StackVar var = _stack.top();
	popVar();
	ctx->storeInt(ctxId, id, var.i);
}
开发者ID:nvmd,项目名称:spbau-mathvm,代码行数:8,代码来源:Interpreter.cpp


示例10: Op_FreezeOverlay

int16 Op_FreezeOverlay() {
	//int var0;
	//int var1;
	int temp;

	int var0 = popVar();
	int var1 = popVar();

	if (!var1) {
		var1 = currentScriptPtr->overlayNumber;
	}

	temp = overlayTable[var1].executeScripts;
	overlayTable[var1].executeScripts = var0;

	return temp;
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:17,代码来源:function.cpp


示例11: Op_UserDelay

int16 Op_UserDelay() {
	int delay = popVar();

	if (delay >= 0) {
		userDelay = delay;
	}

	return userDelay;
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:9,代码来源:function.cpp


示例12: Op_FindProc

int16 Op_FindProc() {
	char name[36] = "";

	char *ptr = (char *)popPtr();
	Common::strlcpy(name, ptr, sizeof(name));
	int param = getProcParam(popVar(), 20, name);

	return param;
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:9,代码来源:function.cpp


示例13: Op_Random

int16 Op_Random() {
	int var = popVar();

	if (var < 2) {
		return (0);
	}

	return (_vm->_rnd.getRandomNumber(var - 1));
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:9,代码来源:function.cpp


示例14: Op_SetObjectAtNode

int16 Op_SetObjectAtNode() {
	int16 node = popVar();
	int16 obj = popVar();
	int16 ovl = popVar();

	if (!ovl)
		ovl = currentScriptPtr->overlayNumber;

	int nodeInfo[2];

	if (!getNode(nodeInfo, node)) {
		setObjectPosition(ovl, obj, 0, nodeInfo[0]);
		setObjectPosition(ovl, obj, 1, nodeInfo[1]);
		setObjectPosition(ovl, obj, 2, nodeInfo[1]);
		setObjectPosition(ovl, obj, 4, computeZoom(nodeInfo[1]));
	}

	return 0;
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:19,代码来源:function.cpp


示例15: Op_XClick

int16 Op_XClick() {
	int x = popVar();

	if (x != -1) {
		aniX = x;
		animationStart = true;
	}

	return aniX;
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:10,代码来源:function.cpp


示例16: genbf_expr

int genbf_expr(struct expr *a, int lval, struct type **t)
{
    if (!a->end) {
        genbf_expr(a->v1, lval, t);
        /* FIXME: this is a comma-separated list of expressions, it can't just
         * go anywhere ... */
        popVar();
    }
    return genbf_assignment_expr(a->v2, lval, t);
}
开发者ID:UplinkCoder,项目名称:c2bf,代码行数:10,代码来源:expr.c


示例17: Op_UserOn

int16 Op_UserOn() {
	int oldValue = userEnabled;
	int newValue = popVar();

	if (newValue != -1) {
		userEnabled = newValue;
	}

	return oldValue;
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:10,代码来源:function.cpp


示例18: Op_Display

int16 Op_Display() {
	int oldValue = displayOn;
	int newValue = popVar();

	if (newValue != -1) {
		displayOn = newValue;
	}

	return oldValue;
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:10,代码来源:function.cpp


示例19: Op_YClick

int16 Op_YClick() {
	int y = popVar();

	if (y != -1) {
		aniY = y;
		animationStart = true;
	}

	return aniY;
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:10,代码来源:function.cpp


示例20: Op_ClearScreen

int16 Op_ClearScreen() {
	int bgIdx = popVar();

	if ((bgIdx >= 0) && (bgIdx < NBSCREENS) && (backgroundScreens[bgIdx])) {
		memset(backgroundScreens[bgIdx], 0, 320 * 200);
		backgroundChanged[bgIdx] = true;
		strcpy(backgroundTable[0].name, "");
	}

	return 0;
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:11,代码来源:function.cpp



注:本文中的popVar函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ pop_front函数代码示例发布时间:2022-05-30
下一篇:
C++ pool_init函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap