当前位置: 首页>>代码示例>>C++>>正文


C++ ActionVect::push_back方法代码示例

本文整理汇总了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;
}
开发者ID:nadavbh12,项目名称:Arcade-Learning-Environment-2.0,代码行数:26,代码来源:FZero.cpp

示例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;
}
开发者ID:nadavbh12,项目名称:Arcade-Learning-Environment-2.0,代码行数:25,代码来源:NBAGiveNGo.cpp

示例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;

}
开发者ID:NeuroCSUT,项目名称:Xitari2Player,代码行数:12,代码来源:Pong2Player025.cpp

示例4: getStartingActions

ActionVect ElevatorActionSettings::getStartingActions() {
    ActionVect startingActions;
    for (int i=0; i<16; i++)
        startingActions.push_back(PLAYER_A_FIRE);
    return startingActions;
}
开发者ID:10sun,项目名称:DRL-AI,代码行数:6,代码来源:ElevatorAction.cpp

示例5: getStartingActions

ActionVect JourneyEscapeSettings::getStartingActions() {
    ActionVect startingActions;
    startingActions.push_back(PLAYER_A_FIRE);
    return startingActions;
}
开发者ID:AjayTalati,项目名称:xitari,代码行数:5,代码来源:JourneyEscape.cpp

示例6: getStartingActions

ActionVect AirRaidSettings::getStartingActions() {
    ActionVect startingActions;
    startingActions.push_back(PLAYER_A_FIRE);
    return startingActions;
}
开发者ID:10sun,项目名称:DRL-AI,代码行数:5,代码来源:AirRaid.cpp

示例7: getStartingActions

ActionVect SirLancelotSettings::getStartingActions() {
    ActionVect startingActions;
    startingActions.push_back(RESET);
    startingActions.push_back(PLAYER_A_LEFT);
    return startingActions;
}
开发者ID:4SkyNet,项目名称:Arcade-Learning-Environment,代码行数:6,代码来源:SirLancelot.cpp

示例8: getStartingActions

ActionVect YarsRevengeSettings::getStartingActions() {
    ActionVect startingActions;
    startingActions.push_back(PLAYER_A_FIRE);
    return startingActions;
}
开发者ID:AjayTalati,项目名称:xitari,代码行数:5,代码来源:YarsRevenge.cpp

示例9: getStartingActions

ActionVect BeamRiderSettings::getStartingActions() {
    ActionVect startingActions;
    startingActions.push_back(PLAYER_A_RIGHT);
    return startingActions;
}
开发者ID:AjayTalati,项目名称:xitari,代码行数:5,代码来源:BeamRider.cpp

示例10: getStartingActions

ActionVect PrivateEyeSettings::getStartingActions() {
    ActionVect startingActions;
    startingActions.push_back(PLAYER_A_UP);
    return startingActions;
}
开发者ID:10sun,项目名称:DRL-AI,代码行数:5,代码来源:PrivateEye.cpp


注:本文中的ActionVect::push_back方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。