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

C++ playMovie函数代码示例

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

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



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

示例1: getPetControl

bool CNavHelmet::PETHelmetOnOffMsg(CPETHelmetOnOffMsg *msg) {
	CPetControl *pet = getPetControl();

	if (_flag) {
		_flag = false;
		setVisible(true);
		starFn(STAR_HIDE);
		playMovie(61, 120, MOVIE_NOTIFY_OBJECT);
		playSound("a#47.wav");
		playSound("a#48.wav");

		if (pet) {
			pet->decAreaLocks();
			pet->setArea(PET_REMOTE);
		}

		decTransitions();
	} else {
		incTransitions();
		_flag = true;
		setVisible(true);
		playMovie(0, 60, MOVIE_NOTIFY_OBJECT);
		playSound("a#48.wav");
		playSound("a#47.wav");
	}

	return true;
}
开发者ID:k-kapp,项目名称:scummvm,代码行数:28,代码来源:nav_helmet.cpp


示例2: getPetControl

bool CBilgeSuccUBus::PETReceiveMsg(CPETReceiveMsg *msg) {
	CPetControl *pet = getPetControl();

	if (_v2) {
		if (_startFrame4 >= 0)
			playMovie(_startFrame4, _endFrame4, MOVIE_GAMESTATE);
		if (_startFrame5 >= 0)
			playMovie(_startFrame5, _endFrame5, MOVIE_GAMESTATE);

		playSound("z#28.wav", 70);
	} else if (!_enabled) {
		petDisplayMessage(2, SUCCUBUS_IS_IN_STANDBY);
		return false;
	} else if (!pet) {
		return false;
	} else {
		uint roomFlags = pet->getRoomFlags();
		CGameObject *mailObject = findMailByFlags(
			_v3 && compareRoomNameTo("Titania") ? 3 : _field140,
			roomFlags);

		if (mailObject) {
			_mailP = mailObject;
			if (_startFrame4 >= 0)
				playMovie(_startFrame4, _endFrame4, MOVIE_GAMESTATE);
		} else {
			petDisplayMessage(2, NOTHING_TO_DELIVER);
		}
	}

	return true;
}
开发者ID:OmerMor,项目名称:scummvm,代码行数:32,代码来源:bilge_succubus.cpp


示例3: stopSound

bool CEnterSecClassState::StatusChangeMsg(CStatusChangeMsg *msg) {
	stopSound(_soundHandle);

	if (msg->_newStatus == _mode || (_mode == 2 && msg->_newStatus == 3)) {
		if (_mode == 2) {
			_soundHandle = queueSound("b#36.wav", _soundHandle);
		} else {
			_soundHandle = queueSound("b#31.wav", _soundHandle);
		}
		if (msg->_newStatus == 3)
			msg->_newStatus = 2;
	} else {
		changeView("SecClassLittleLift.Node 1.N");
		if (msg->_newStatus == 1) {
			_soundHandle = queueSound("b#32.wav", _soundHandle);
		} else if (msg->_newStatus == 2) {
			_soundHandle = queueSound("b#25.wav", _soundHandle);
		} else if (msg->_newStatus == 3) {
			_soundHandle = queueSound("b#33.wav", _soundHandle);
			msg->_newStatus = 2;
		}
	}

	if (msg->_newStatus != 3) {
		if (msg->_newStatus == 2 && _mode == 1)
			playMovie(0, 10, MOVIE_NOTIFY_OBJECT | MOVIE_GAMESTATE);
		else if (msg->_newStatus == 1)
			playMovie(11, 21, MOVIE_NOTIFY_OBJECT | MOVIE_GAMESTATE);
	}

	_cursorId = msg->_newStatus == 2 ? CURSOR_MOVE_FORWARD : CURSOR_INVALID;
	_mode = msg->_newStatus;
	return true;
}
开发者ID:86400,项目名称:scummvm,代码行数:34,代码来源:enter_sec_class_state.cpp


示例4: getPetControl

bool CBilgeSuccUBus::PETReceiveMsg(CPETReceiveMsg *msg) {
	CPetControl *pet = getPetControl();

	if (_style) {
		if (_receiveStartFrame >= 0)
			playMovie(_receiveStartFrame, _receiveEndFrame, MOVIE_WAIT_FOR_FINISH);
		if (_afterReceiveStartFrame >= 0)
			playMovie(_afterReceiveStartFrame, _afterReceiveEndFrame, MOVIE_WAIT_FOR_FINISH);

		playSound("z#28.wav", 70);
	} else if (!_isOn) {
		petDisplayMessage(2, SUCCUBUS_IS_IN_STANDBY);
		return false;
	} else if (!pet) {
		return false;
	} else {
		uint roomFlags = pet->getRoomFlags();
		CGameObject *mailObject = findMailByFlags(
			_enabled && compareRoomNameTo("Titania") ? RFC_TITANIA : _flagsComparison,
			roomFlags);

		if (mailObject) {
			_mailP = mailObject;
			if (_receiveStartFrame >= 0)
				playMovie(_receiveStartFrame, _receiveEndFrame, MOVIE_WAIT_FOR_FINISH);
		} else {
			petDisplayMessage(2, NOTHING_TO_DELIVER);
		}
	}

	return true;
}
开发者ID:DrItanium,项目名称:scummvm,代码行数:32,代码来源:bilge_succubus.cpp


示例5: switch

bool CTitaniaSpeech::ActMsg(CActMsg *msg) {
	CSetFrameMsg frameMsg;
	CVisibleMsg visibleMsg;
	CActMsg actMsg;

	if (msg->_action == "TitaniaSpeech") {
		switch (_paraNum) {
		case 0:
			movieSetAudioTiming(true);
			loadSound("a#12.wav");
			sleep(1000);
			playMovie(0, 187, MOVIE_GAMESTATE || MOVIE_NOTIFY_OBJECT);
			movieEvent(0);
			break;

		case 1:
			loadSound("a#11.wav");
			addTimer(0);
			startAnimTimer("Para2", 300);
			addTimer(6000);
			addTimer(12000);
			addTimer(18000);
			addTimer(24000);
			startAnimTimer("NextPara", 30000);
			break;

		case 2:
			visibleMsg._visible = false;
			visibleMsg.execute("TitaniaStillControl");
			loadSound("a#10.wav");
			playMovie(585, 706, MOVIE_GAMESTATE || MOVIE_NOTIFY_OBJECT);
			playSound("a#10.wav");
			break;

		case 3:
			visibleMsg._visible = false;
			visibleMsg.execute("TitaniaStillControl");
			loadSound("a#9.wav");
			playMovie(707, 905, MOVIE_GAMESTATE || MOVIE_NOTIFY_OBJECT);
			playSound("a#9.wav");
			break;

		case 4:
			visibleMsg._visible = false;
			visibleMsg.execute("TitaniaStillControl");
			loadSound("a#8.wav");
			playMovie(906, 938, MOVIE_GAMESTATE || MOVIE_NOTIFY_OBJECT);
			playSound("a#8.wav");
			break;

		default:
			sleep(3000);
			actMsg._action = "SleepTitania";
			actMsg.execute(this);
		}
	}

	return true;
}
开发者ID:WinterGrascph,项目名称:scummvm,代码行数:59,代码来源:titania_speech.cpp


示例6: playMovie

bool CParrotPerchHolder::ActMsg(CActMsg *msg) {
	if (msg->_action == "FlashCore") {
		playMovie(2, 2, 0);
		playMovie(1, 1, 0);
	}

	return true;
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:8,代码来源:parrot_perch_holder.cpp


示例7: playMovie

bool CTurnOnTurnOff::TurnOff(CTurnOff *msg) {
	if (!_isOn) {
		if (_isBlocking)
			playMovie(_startFrameOff, _endFrameOff, MOVIE_GAMESTATE);
		else
			playMovie(_startFrameOff, _endFrameOff, MOVIE_NOTIFY_OBJECT);
		_isOn = false;
	}

	return true;
}
开发者ID:OmerMor,项目名称:scummvm,代码行数:11,代码来源:turn_on_turn_off.cpp


示例8: playMovie

bool CGamesConsole::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
	if (_active) {
		playMovie(23, 44, 0);
		_active = false;
	} else {
		playMovie(0, 23, 0);
		_active = true;
	}

	return true;
}
开发者ID:86400,项目名称:scummvm,代码行数:11,代码来源:games_console.cpp


示例9: playSound

bool CSeasonalAdjustment::MouseButtonUpMsg(CMouseButtonUpMsg *msg) {
	playSound("z#42.wav");
	if (!_fieldE4) {
		petDisplayMessage(1, SEASONAL_SWITCH_NOT_WORKING);
	} else if (!_fieldE0) {
		playMovie(0, 6, MOVIE_NOTIFY_OBJECT);
		playMovie(6, 18, 0);
	}

	return true;
}
开发者ID:86400,项目名称:scummvm,代码行数:11,代码来源:seasonal_adjustment.cpp


示例10: playMovie

int Scene::FTA2StartProc() {
	_vm->_gfx->showCursor(false);

	playMovie("trimark.smk");
	playMovie("intro.smk");

	// HACK: Forcibly quit here
	_vm->quitGame();

	return SUCCESS;
}
开发者ID:peres,项目名称:scummvm,代码行数:11,代码来源:introproc_saga2.cpp


示例11: changeView

bool CBrokenPelleratorFroz::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
	if (_v1) {
		changeView(_v2 ? _string5 : _string4);
	} else {
		_v1 = true;
		if (_v2) {
			playMovie(0, 13, 0);
		} else {
			playMovie(43, 55, MOVIE_NOTIFY_OBJECT);
		}
	}

	return true;
}
开发者ID:OmerMor,项目名称:scummvm,代码行数:14,代码来源:broken_pellerator_froz.cpp


示例12: setVisible

bool CBedfoot::TurnOff(CTurnOff *msg) {
	if (_statics->_bedhead == "Closed" || _statics->_bedhead == "ClosedWrong") {
		setVisible(true);
		CVisibleMsg visibleMsg(false);
		visibleMsg.execute("Bedhead");
	}

	if (_statics->_bedfoot == "Open" && _statics->_bedhead == "Closed") {
		_isClosed = true;
		_startFrame = 20;
		if (_statics->_tv == "Closed") {
			_statics->_bedfoot = "Closed";
			_endFrame = 30;
		} else {
			_statics->_bedfoot = "RestingUnderTV";
			_endFrame = 25;
		}

		playMovie(_startFrame, _endFrame, MOVIE_GAMESTATE);
		playSound("b#7.wav");

	} else if (_statics->_bedfoot == "NotOnWashstand" && _statics->_bedhead == "ClosedWrong") {
		_isClosed = true;
		_startFrame = 17;

		if (_statics->_tv == "Closed") {
			_statics->_bedfoot = "Closed";
			_endFrame = 30;
		} else {
			_statics->_bedfoot = "RestingUnderTV";
			_endFrame = 25;
		}

		playMovie(_startFrame, _endFrame, MOVIE_GAMESTATE);
		playSound("b#7.wav");

	} else if (_statics->_bedfoot == "RestingUTV" && _statics->_tv == "Closed") {
		_statics->_bedfoot = "Closed";
		_startFrame = 25;
		_endFrame = 30;
		playMovie(25, 30, MOVIE_GAMESTATE);
		playSound("b#7.wav");
	}

	if (_statics->_bedfoot == "Closed")
		_statics->_bedhead = "Closed";

	return true;
}
开发者ID:OmerMor,项目名称:scummvm,代码行数:49,代码来源:bedfoot.cpp


示例13: playMovie

bool CHeadSmashLever::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
	if (_enabled) {
		playMovie(0, 14, 0);
		playSound(TRANSLATE("z#54.wav", "z#585.wav"));
		int soundHandle = playSound(TRANSLATE("z#45.wav", "z#576.wav"));
		queueSound(TRANSLATE("z#49.wav", "z#580.wav"), soundHandle);
		_ticks = getTicksCount();
		_fieldE4 = true;
	} else {
		playMovie(0);
		playSound(TRANSLATE("z#56.wav", "z#587.wav"));
	}

	return true;
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:15,代码来源:head_smash_lever.cpp


示例14: getPetControl

bool CParrotSuccUBus::HoseConnectedMsg(CHoseConnectedMsg *msg) {
	CPetControl *pet = getPetControl();
	if (msg->_value == _field1DC)
		return true;
	if (mailExists(pet->getRoomFlags()))
		return false;

	_field1DC = msg->_value;
	if (_field1DC) {
		CGameObject *item = msg->_object;
		_string3 = item->getName();
		CHoseConnectedMsg hoseMsg(1, this);
		hoseMsg.execute(msg->_object);
		item->petMoveToHiddenRoom();

		CPumpingMsg pumpingMsg(1, this);
		pumpingMsg.execute(this);
		_field1DC = 1;

		if (_enabled) {
			_enabled = false;
		} else {
			playMovie(_startFrame9, _endFrame9, 0);
			playSound("z#26.wav");
		}

		playMovie(_field1C4, _field1C8, MOVIE_NOTIFY_OBJECT);
	} else {
		stopMovie();
		stopSound(_field1EC);
		playMovie(_field1F0, _field1F4, MOVIE_NOTIFY_OBJECT);

		CPumpingMsg pumpingMsg(0, this);
		pumpingMsg.execute(_string3);

		CGameObject *obj = getHiddenObject(_string3);
		if (obj) {
			obj->petAddToInventory();
			obj->setVisible(true);
		}

		_enabled = true;
		CTurnOff offMsg;
		offMsg.execute(this);
	}

	return true;
}
开发者ID:Tkachov,项目名称:scummvm,代码行数:48,代码来源:parrot_succubus.cpp


示例15: switch

int Scene::FTA2EndProc(FTA2Endings whichEnding) {
	char videoName[20];

	switch (whichEnding) {
	case kFta2BadEndingLaw:
		strcpy(videoName, "end_1.smk");
		break;
	case kFta2BadEndingChaos:
		strcpy(videoName, "end_2.smk");
		break;
	case kFta2GoodEnding1:
		strcpy(videoName, "end_3a.smk");
		break;
	case kFta2GoodEnding2:
		strcpy(videoName, "end_3b.smk");
		break;
	case kFta2BadEndingDeath:
		strcpy(videoName, "end_4.smk");
		break;
	default:
		error("Unknown FTA2 ending");
	}

	_vm->_gfx->showCursor(false);

	// Play ending
	playMovie(videoName);

	return SUCCESS;
}
开发者ID:peres,项目名称:scummvm,代码行数:30,代码来源:introproc_saga2.cpp


示例16: dprintf

int CNKMovies::exec(CMenuTarget* parent, const std::string& actionKey)
{
	dprintf(DEBUG_NORMAL, "CNKMovies::exec: actionKey:%s\n", actionKey.c_str());

	int returnval = menu_return::RETURN_REPAINT;

	if(parent) 
		parent->hide();

	if(actionKey == "play")
	{
		playMovie();

		return returnval;
	}
	else if(actionKey == "RC_info")
	{
		showMovieInfo();

		return returnval;
	}
	else if(actionKey == "RC_record")
	{
		nkparser.downloadMovie(m_vMovieInfo[moviesMenu->getSelected()].file.Name, m_vMovieInfo[moviesMenu->getSelected()].file.Url);
	}

	showNKMoviesMenu();
	
	return returnval;
}
开发者ID:n3wb13,项目名称:neutrinohd2,代码行数:30,代码来源:netzkino.cpp


示例17: playMovie

bool CBarbot::EnterViewMsg(CEnterViewMsg *msg) {
	// I think this is a remnant of early debugging code
	if (getName() != "Barbot")
		playMovie(MOVIE_REPEAT);

	return true;
}
开发者ID:DrItanium,项目名称:scummvm,代码行数:7,代码来源:barbot.cpp


示例18: setVisible

bool CStarlings::EnterViewMsg(CEnterViewMsg *msg) {
	if (_enabled)
		setVisible(false);
	else
		playMovie(MOVIE_REPEAT);
	return true;
}
开发者ID:86400,项目名称:scummvm,代码行数:7,代码来源:starlings.cpp


示例19: QWidget

OpenCVWidget::OpenCVWidget(QWidget *parent) :
        QWidget(parent),        
        ui(new Ui::OpenCVWidget)
{
    ui->setupUi(this);

    OverlayData* overlayData = new OverlayData(300, 300, this);
    QHBoxLayout* hlButtons = new QHBoxLayout();
    btPlay = new QPushButton(QIcon(":/icons/Play.png"), "", this);
    btStop = new QPushButton(QIcon(":/icons/Stop.png"), "", this);
    btFile = new QPushButton(QIcon(":/icons/Open.png"), "", this);
    btRTSP = new QPushButton(QIcon(":/icons/Radio.png"), "", this);
    btRecord = new QPushButton(QIcon(":/icons/Record.png"), "", this);

    cxFilter = new QCheckBox("Filter", this);
    cxFilter->setCheckable(true);
    cxFilter->setChecked(false);
    cxStabilizer = new QCheckBox("Stabilize", this);
    cxStabilizer->setCheckable(true);
    cxStabilizer->setChecked(false);
    slSizeKernel = new QSlider(Qt::Horizontal, this);
    slSizeKernel->setMinimum(1);
    slSizeKernel->setMaximum(12);
    slSizeKernel->setValue(1);

    lbTitle = new QLabel("---");
    lbTitle->setMaximumHeight(15);

    hlButtons->addWidget(btPlay);
    hlButtons->addWidget(btStop);
    hlButtons->addWidget(btFile);
    hlButtons->addWidget(btRTSP);
    hlButtons->addWidget(btRecord);

    connect(btPlay, SIGNAL(clicked()), overlayData, SLOT(playMovie()));
    connect(btStop, SIGNAL(clicked()), overlayData, SLOT(stopMovie()));
    connect(btFile, SIGNAL(clicked()), overlayData, SLOT(openFile()));
    connect(btRTSP, SIGNAL(clicked()), overlayData, SLOT(openRTSP()));
    connect(btRecord, SIGNAL(clicked()), overlayData, SLOT(record()));
    connect(overlayData, SIGNAL(emitCaptureImage(QImage)), this, SLOT(showCaptureImage(QImage)));
    connect(overlayData, SIGNAL(emitTitle(QString)), lbTitle, SLOT(setText(QString)));

    connect(cxFilter, SIGNAL(stateChanged(int)), overlayData, SLOT(setEnableFilter(int)));
    connect(cxStabilizer, SIGNAL(stateChanged(int)), overlayData, SLOT(setEnableStabilizer(int)));
    connect(slSizeKernel, SIGNAL(valueChanged(int)), overlayData, SLOT(setSizeKernel(int)));

    QVBoxLayout* vlControls = new QVBoxLayout();

    vlControls->addWidget(overlayData);
    vlControls->addLayout(hlButtons);
    vlControls->addWidget(cxFilter);
    vlControls->addWidget(cxStabilizer);
    vlControls->addWidget(slSizeKernel);
    vlControls->addWidget(lbTitle);

    setLayout(vlControls);

    setWindowTitle("VIDEO");
}
开发者ID:Aerobota,项目名称:OpenCV,代码行数:59,代码来源:OpenCVWidget.cpp


示例20: playMovie

bool CParrotSuccUBus::EnterViewMsg(CEnterViewMsg *msg) {
	if (_field1DC) {
		playMovie(_field1CC, _field1D0, MOVIE_REPEAT);
		return true;
	} else {
		return CSuccUBus::EnterViewMsg(msg);
	}
}
开发者ID:Tkachov,项目名称:scummvm,代码行数:8,代码来源:parrot_succubus.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C++ playMusic函数代码示例发布时间:2022-05-30
下一篇:
C++ playCard函数代码示例发布时间: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