本文整理汇总了C++中StaticANIObject::show2方法的典型用法代码示例。如果您正苦于以下问题:C++ StaticANIObject::show2方法的具体用法?C++ StaticANIObject::show2怎么用?C++ StaticANIObject::show2使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StaticANIObject
的用法示例。
在下文中一共展示了StaticANIObject::show2方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: global_messageHandler4
//.........这里部分代码省略.........
break;
case 6:
if (!g_fp->_currentScene)
break;
ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
if (!ani)
break;
ani->hide();
break;
case 27:
if (!g_fp->_currentScene || g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param) == 0) {
ani = g_fp->accessScene(cmd->_field_20)->getStaticANIObject1ById(cmd->_parentId, -1);
if (ani) {
ani = new StaticANIObject(ani);
g_fp->_currentScene->addStaticANIObject(ani, 1);
}
}
// fall through
case 5:
if (g_fp->_currentScene)
ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
if (!ani)
break;
if (cmd->_field_14 >= 0)
ani->_priority = cmd->_field_14;
ani->show1(cmd->_x, cmd->_y, cmd->_messageNum, cmd->_parId);
break;
case 10:
if (!g_fp->_currentScene)
break;
ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
if (!ani)
break;
if (cmd->_field_14 >= 0)
ani->_priority = cmd->_field_14;
ani->show2(cmd->_x, cmd->_y, cmd->_messageNum, cmd->_parId);
break;
case 7: {
if (!g_fp->_currentScene->_picObjList.size())
break;
int offX = g_fp->_scrollSpeed * (cmd->_x / g_fp->_scrollSpeed);
int offY = g_fp->_scrollSpeed * (cmd->_y / g_fp->_scrollSpeed);
if (cmd->_messageNum) {
g_fp->_currentScene->_x = offX - g_fp->_sceneRect.left;
g_fp->_currentScene->_y = offY - g_fp->_sceneRect.top;
if (cmd->_field_24) {
g_fp->_currentScene->_messageQueueId = cmd->_parId;
}
} else {
g_fp->_sceneRect.translate(offX - g_fp->_sceneRect.left, offY - g_fp->_sceneRect.top);
g_fp->_currentScene->_x = 0;
g_fp->_currentScene->_y = 0;
g_fp->_currentScene->updateScrolling2();
}
break;
}
case 34:
if (!g_fp->_currentScene)
break;
ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
if (!ani)
break;
ani->_flags = cmd->_messageNum | (ani->_flags & ~cmd->_field_14);
break;
case 35:
global_messageHandler_handleSound(cmd);
break;
case 11:
case 12:
break;
default:
return 0;
break;
}
return 1;
}