本文整理汇总了C++中ActionVect::end方法的典型用法代码示例。如果您正苦于以下问题:C++ ActionVect::end方法的具体用法?C++ ActionVect::end怎么用?C++ ActionVect::end使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ActionVect
的用法示例。
在下文中一共展示了ActionVect::end方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getStartingActions
ActionVect FZeroSettings::getStartingActions(){
int num_of_nops(100);
ActionVect startingActions;
// startingActions.reserve(num_of_xs*num_of_nops);
// wait for intro to end
startingActions.insert(startingActions.end(), num_of_nops, JOYPAD_NOOP);
// press start to begin
startingActions.push_back(JOYPAD_START);
// select arcade
startingActions.insert(startingActions.end(), num_of_nops, JOYPAD_NOOP);
startingActions.push_back(JOYPAD_START);
// select 1 vs cpu
startingActions.insert(startingActions.end(), num_of_nops, JOYPAD_NOOP);
startingActions.push_back(JOYPAD_START);
// select team
startingActions.insert(startingActions.end(), num_of_nops, JOYPAD_NOOP);
startingActions.push_back(JOYPAD_START);
// select team
startingActions.insert(startingActions.end(), num_of_nops, JOYPAD_NOOP);
startingActions.push_back(JOYPAD_START);
// wait for race countdown
startingActions.insert(startingActions.end(), 5.5*num_of_nops, JOYPAD_NOOP);
return startingActions;
}
示例2: getStartingActions
ActionVect NBAGiveNGoSettings::getStartingActions(){
int num_of_nops(100);
ActionVect startingActions;
// startingActions.reserve(num_of_xs*num_of_nops);
// wait for intro to end
startingActions.insert(startingActions.end(), 9*num_of_nops, JOYPAD_NOOP);
// press start to begin
startingActions.push_back(JOYPAD_START);
// select arcade
startingActions.insert(startingActions.end(), 2*num_of_nops, JOYPAD_NOOP);
startingActions.push_back(JOYPAD_START);
// select 1 vs cpu
startingActions.insert(startingActions.end(), 1.5*num_of_nops, JOYPAD_NOOP);
startingActions.push_back(JOYPAD_START);
// select team
startingActions.insert(startingActions.end(), 1.5*num_of_nops, JOYPAD_NOOP);
startingActions.push_back(JOYPAD_START);
// select team
startingActions.insert(startingActions.end(), 1.5*num_of_nops, JOYPAD_NOOP);
startingActions.push_back(JOYPAD_START);
startingActions.insert(startingActions.end(), 15.1*num_of_nops, JOYPAD_NOOP);
return startingActions;
}