本文整理汇总了C++中MessageQueue::insertExCommandAt方法的典型用法代码示例。如果您正苦于以下问题:C++ MessageQueue::insertExCommandAt方法的具体用法?C++ MessageQueue::insertExCommandAt怎么用?C++ MessageQueue::insertExCommandAt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MessageQueue
的用法示例。
在下文中一共展示了MessageQueue::insertExCommandAt方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: sceneHandler16_drink
void sceneHandler16_drink() {
if (g_vars->scene16_mug->_flags & 4) {
if (!g_vars->scene16_jettie->_movement) {
if (!g_vars->scene16_walkingBoy || !g_vars->scene16_walkingBoy->_movement || g_vars->scene16_walkingBoy->_movement->_id != MV_BOY_DRINK) {
if (!g_vars->scene16_walkingGirl || !g_vars->scene16_walkingGirl->_movement || g_vars->scene16_walkingGirl->_movement->_id != MV_GRL_DRINK) {
if (g_vars->scene16_mug->_statics->_staticsId == ST_MUG_FULL) {
MessageQueue *mq;
ExCommand *ex;
if (g_vars->scene16_walkingBoy) {
g_fp->_aniMan->_flags |= 0x180;
g_vars->scene16_walkingBoy->changeStatics2(ST_BOY_STAND);
g_vars->scene16_walkingBoy->queueMessageQueue(0);
mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_BOYKICK), 0, 1);
mq->replaceKeyCode(-1, g_vars->scene16_walkingBoy->_okeyCode);
ex = new ExCommand(ANI_MAN, 34, 384, 0, 0, 0, 1, 0, 0, 0);
ex->_excFlags |= 3u;
ex->_field_14 = 384;
ex->_messageNum = 0;
mq->insertExCommandAt(2, ex);
mq->setFlags(mq->getFlags() | 1);
mq->chain(0);
} else {
g_fp->_aniMan->_flags |= 1;
mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_MANDRINK), 0, 1);
ex = new ExCommand(ANI_MAN, 34, 256, 0, 0, 0, 1, 0, 0, 0);
ex->_excFlags |= 3u;
ex->_field_14 = 256;
ex->_messageNum = 0;
mq->addExCommandToEnd(ex);
mq->setFlags(mq->getFlags() | 1);
mq->chain(0);
g_fp->_currentScene->getStaticANIObject1ById(ANI_GIRL, -1)->changeStatics2(ST_GRL_STAND);
}
g_fp->_currentScene->getStaticANIObject1ById(ANI_WIRE16, -1)->show1(-1, -1, -1, 0);
} else {
chainObjQueue(g_fp->_aniMan, QU_SC16_TAKEMUG, 1);
}
}
}
}
}
}
示例2: sceneHandler32_spin
void sceneHandler32_spin(ExCommand *cmd) {
MessageQueue *mq = g_fp->_globalMessageQueueList->getMessageQueueById(cmd->_parId);
if (!mq || mq->getCount() == 0)
return;
ExCommand *ex = mq->getExCommandByIndex(0);
ExCommand *newex;
if ((g_vars->scene32_cactus->_movement && g_vars->scene32_cactus->_movement->_id == MV_CTS_DEFAULT)
|| g_vars->scene32_cactus->_statics->_staticsId == ST_CTS_GROWUP) {
for (int i = 0; i < 12; i++) {
newex = ex->createClone();
newex->_excFlags |= 2;
mq->insertExCommandAt(1, newex);
}
g_vars->scene32_cactus->changeStatics2(ST_CTS_GROWUP);
chainQueue(QU_CTS_BACK, 1);
g_vars->scene32_cactusIsGrowing = false;
return;
}
if (g_vars->scene32_cactus->_statics->_staticsId == ST_CTS_EMPTY && g_vars->scene32_cactusCounter < 0) {
for (int i = 0; i < 2; i++) {
newex = ex->createClone();
newex->_excFlags |= 2;
mq->insertExCommandAt(1, newex);
}
chainQueue(QU_KDK_DRIZZLE, 0);
}
}