本文整理汇总了C++中ActionVect::push_back方法的典型用法代码示例。如果您正苦于以下问题:C++ ActionVect::push_back方法的具体用法?C++ ActionVect::push_back怎么用?C++ ActionVect::push_back使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ActionVect
的用法示例。
在下文中一共展示了ActionVect::push_back方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例3:
ActionVect Pong2Player025Settings::getStartingActions() {
ActionVect startingActions;
startingActions.push_back(SELECT);
startingActions.push_back(PLAYER_A_NOOP);
startingActions.push_back(SELECT);
startingActions.push_back(PLAYER_A_NOOP);
startingActions.push_back(SELECT);
startingActions.push_back(RESET);
return startingActions;
}
示例4: getStartingActions
ActionVect ElevatorActionSettings::getStartingActions() {
ActionVect startingActions;
for (int i=0; i<16; i++)
startingActions.push_back(PLAYER_A_FIRE);
return startingActions;
}
示例5: getStartingActions
ActionVect JourneyEscapeSettings::getStartingActions() {
ActionVect startingActions;
startingActions.push_back(PLAYER_A_FIRE);
return startingActions;
}
示例6: getStartingActions
ActionVect AirRaidSettings::getStartingActions() {
ActionVect startingActions;
startingActions.push_back(PLAYER_A_FIRE);
return startingActions;
}
示例7: getStartingActions
ActionVect SirLancelotSettings::getStartingActions() {
ActionVect startingActions;
startingActions.push_back(RESET);
startingActions.push_back(PLAYER_A_LEFT);
return startingActions;
}
示例8: getStartingActions
ActionVect YarsRevengeSettings::getStartingActions() {
ActionVect startingActions;
startingActions.push_back(PLAYER_A_FIRE);
return startingActions;
}
示例9: getStartingActions
ActionVect BeamRiderSettings::getStartingActions() {
ActionVect startingActions;
startingActions.push_back(PLAYER_A_RIGHT);
return startingActions;
}
示例10: getStartingActions
ActionVect PrivateEyeSettings::getStartingActions() {
ActionVect startingActions;
startingActions.push_back(PLAYER_A_UP);
return startingActions;
}