本文整理汇总了C++中playMovie函数的典型用法代码示例。如果您正苦于以下问题:C++ playMovie函数的具体用法?C++ playMovie怎么用?C++ playMovie使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了playMovie函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例6: playMovie
bool CParrotPerchHolder::ActMsg(CActMsg *msg) {
if (msg->_action == "FlashCore") {
playMovie(2, 2, 0);
playMovie(1, 1, 0);
}
return true;
}
示例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;
}
示例8: playMovie
bool CGamesConsole::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
if (_active) {
playMovie(23, 44, 0);
_active = false;
} else {
playMovie(0, 23, 0);
_active = true;
}
return true;
}
示例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;
}
示例10: playMovie
int Scene::FTA2StartProc() {
_vm->_gfx->showCursor(false);
playMovie("trimark.smk");
playMovie("intro.smk");
// HACK: Forcibly quit here
_vm->quitGame();
return SUCCESS;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}