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


C++ Mission::getScene方法代码示例

本文整理汇总了C++中Mission::getScene方法的典型用法代码示例。如果您正苦于以下问题:C++ Mission::getScene方法的具体用法?C++ Mission::getScene怎么用?C++ Mission::getScene使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Mission的用法示例。


在下文中一共展示了Mission::getScene方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: castingCallback_BASEVFF_Freefall

void castingCallback_BASEVFF_Freefall(Actor* parent)
{
    Mission* mission = dynamic_cast<Mission*>( parent ); assert( mission );    

    // build forced equipment
    Virtues::Equipment equipment = selectBASEEquipment( 
        mission->getScene()->getCareer(),
        mission->getScene()->getLocation()->getWindAmbient(),
        mission->getScene()->getLocation()->getWindBlast()
    );

    // exit point
    Enclosure* exitPoint = parent->getScene()->getExitPointEnclosure( mission->getMissionInfo()->exitPointId );

    // cast player on exit point
    mission->setPlayer( new Jumper( mission, NULL, exitPoint, NULL, NULL, &equipment ) );

    // setup brief signature for player
    mission->getPlayer()->setSignatureType( stBrief );

    // cast instructor
    new instructor::BASEInstructor02( mission->getPlayer() );
    new GoalStateOfHealth( mission->getPlayer() );
    new GoalStateOfGear( mission->getPlayer() );

    // play no music for this mission
    Gameplay::iGameplay->stopSoundtrack();
}
开发者ID:cheinkn,项目名称:basextreme,代码行数:28,代码来源:dropzone_basevff.cpp

示例2: castingCallback_BASEVFF_PCA

void castingCallback_BASEVFF_PCA(Actor* parent)
{
    Mission* mission = dynamic_cast<Mission*>( parent ); assert( mission );    

    // build forced equipment
    Virtues::Equipment equipment = selectBASEEquipment( 
        mission->getScene()->getCareer(),
        mission->getScene()->getLocation()->getWindAmbient(),
        mission->getScene()->getLocation()->getWindBlast()
    );

    // exit point
    Enclosure* exitPoint = parent->getScene()->getExitPointEnclosure( mission->getMissionInfo()->exitPointId );

    // cast player on exit point
    mission->setPlayer( new Jumper( mission, NULL, exitPoint, NULL, NULL, &equipment ) );

    // setup brief signature for player
    mission->getPlayer()->setSignatureType( stBrief );

    // cast LICENSED_CHAR as assist base jumper
    unsigned int npcId = database::NPCInfo::getLicensedCharacterId();
    if( mission->getScene()->getCareer()->getLicensedFlag() ) 
    {
        npcId = database::NPCInfo::getRandomNonLicensedCharacter( 
            mission->getScene()->getCareer()->getVirtues()->getSkillLevel(), 0.25f
        );
    }
    NPC* joeBlack = new NPC( mission, npcId, NULL, exitPoint, CatToy::wrap( mission->getPlayer() ) );

    joeBlack->setProgram( new NPCAssist( joeBlack, mission->getPlayer() ) );

    // setup brief signature for LICENSED_CHAR
    joeBlack->getJumper()->setSignatureType( stBrief );

    // cast instructor
    new instructor::BASEInstructor01( mission->getPlayer() );
    new GoalStateOfHealth( mission->getPlayer() );
    new GoalStateOfGear( mission->getPlayer() );

    // play original music for this mission
    Gameplay::iGameplay->playSoundtrack( "./res/sounds/music/dirty_moleculas_action.ogg" );
}
开发者ID:cheinkn,项目名称:basextreme,代码行数:43,代码来源:dropzone_basevff.cpp

示例3: castingCallback_BASEVFF_Lineovers

void castingCallback_BASEVFF_Lineovers(Actor* parent)
{
    Mission* mission = dynamic_cast<Mission*>( parent ); assert( mission );    

    // cast helicopter (cut'ed version, single exit)
    AirplaneDesc airplaneDesc;
    airplaneDesc.templateClump = parent->getScene()->findClump( "Helicopter01" ); assert( airplaneDesc.templateClump );
    airplaneDesc.propellerFrame = "PropellerSound";
    airplaneDesc.propellerSound = "./res/sounds/aircrafts/helicopter.ogg";
    airplaneDesc.exitPointFrames.push_back( "HelicopterExit01" );
    airplaneDesc.animationSpeed = 0.75f;
    airplaneDesc.initAltitude  = 30000.0f;
    airplaneDesc.lastAltitude  = 500.0f;
    airplaneDesc.loweringSpeed = 500.0f;
    Airplane* airplane = new Airplane( mission, &airplaneDesc );

    // build forced equipment
    Virtues::Equipment equipment = selectBASEEquipment( 
        mission->getScene()->getCareer(),
        mission->getScene()->getLocation()->getWindAmbient(),
        mission->getScene()->getLocation()->getWindBlast()
    );

    // enable malfuctions and select 42` pilotchute
    equipment.malfunctions = true;
    equipment.pilotchute = 2;

    // cast player on airplane
    mission->setPlayer( new Jumper( mission, airplane, NULL, NULL, NULL, &equipment ) );

    // setup brief signature for player
    mission->getPlayer()->setSignatureType( stBrief );

    // cast instructor
    new instructor::BASEInstructor04( mission->getPlayer() );
    new GoalStateOfHealth( mission->getPlayer() );
    new GoalStateOfGear( mission->getPlayer() );

    // play original music for this mission
    Gameplay::iGameplay->playSoundtrack( "./res/sounds/music/dirty_moleculas_action.ogg" );
}
开发者ID:cheinkn,项目名称:basextreme,代码行数:41,代码来源:dropzone_basevff.cpp

示例4: castingCallback_KjeragSmokeball_RGBSlalom01

void castingCallback_KjeragSmokeball_RGBSlalom01(Actor* parent)
{
    Mission* mission = dynamic_cast<Mission*>( parent ); assert( mission );

    // exit point
    Enclosure* exitPoint = mission->getScene()->getExitPointEnclosure( mission->getMissionInfo()->exitPointId );

    // cast player on exit point
    mission->setPlayer( new Jumper( mission, NULL, exitPoint, NULL, NULL, NULL ) );

    // setup full signature for player
    mission->getPlayer()->setSignatureType( stFull );

    std::vector<SmokeBallDesc> smokeballs;

    // define smokeball properties
    SmokeBallDesc smokeBallDesc;    
    smokeBallDesc.radius = 2000.0f;
    smokeBallDesc.numParticles = 256;
    smokeBallDesc.particleMass = 0.25f;
    smokeBallDesc.particleRadius = 1050.0f;

    // cast blue smokeball 
    smokeBallDesc.color.set( 0.25f, 0.25f, 1.0f, 0.25f );
    smokeBallDesc.center.set( 402966.3, 17037.2, -84710.0 );
    smokeballs.push_back( smokeBallDesc );

    // cast green smokeball 
    smokeBallDesc.color.set( 0.25f, 1.0f, 0.25f, 0.25f );
    smokeBallDesc.center.set( 413899.6, 50471.1, -33701.9 );
    smokeballs.push_back( smokeBallDesc );

    // cast red smokeball 
    smokeBallDesc.color.set( 1.0f, 0.25f, 0.25f, 0.25f );
    smokeBallDesc.center.set( 401765.3, 71406.1, -21030.7 );
    smokeballs.push_back( smokeBallDesc );

    // cast script
    new script::Kjerag_RGBSlalom( mission->getPlayer() );

    // cast goals
    new GoalStateOfHealth( mission->getPlayer() );
    new GoalStateOfGear( mission->getPlayer() );
    new GoalLanding( mission->getPlayer() );
    new GoalExperience( mission->getPlayer() );
    new GoalSmokeball( mission->getPlayer(), smokeballs, 0.875f * mission->getPlayer()->getVirtues()->getMaximalBonusScore() );
	new GoalFreeFallTime( mission->getPlayer() );
	new GoalCanopyTime( mission->getPlayer() );
	new GoalOpening( mission->getPlayer() );

    // play original music for this mission
    Gameplay::iGameplay->playSoundtrack( "./res/sounds/music/dirty_moleculas_extinct.ogg" );
}
开发者ID:AndreMeijer86,项目名称:base-pro-edition,代码行数:53,代码来源:kjerag.cpp

示例5: castingCallback_KjeragSmokeball_RGBTracking

void castingCallback_KjeragSmokeball_RGBTracking(Actor* parent)
{
    Mission* mission = dynamic_cast<Mission*>( parent ); assert( mission );

    // exit point
    Enclosure* exitPoint = mission->getScene()->getExitPointEnclosure( mission->getMissionInfo()->exitPointId );

    // cast player on exit point
    mission->setPlayer( new Jumper( mission, NULL, exitPoint, NULL, NULL, NULL ) );

    // setup full signature for player
    mission->getPlayer()->setSignatureType( stFull );

    std::vector<SmokeBallDesc> smokeballs;

    // define smokeball properties
    SmokeBallDesc smokeBallDesc;    
    smokeBallDesc.radius = 2000.0f;
    smokeBallDesc.numParticles = 256;
    smokeBallDesc.particleMass = 0.25f;
    smokeBallDesc.particleRadius = 1050.0f;

    // cast blue smokeball 
    smokeBallDesc.color.set( 0.25f, 0.25f, 1.0f, 0.25f );
    smokeBallDesc.center.set( -31304.8, 25398.3, 80255.8 );
    smokeballs.push_back( smokeBallDesc );

    // cast green smokeball 
    smokeBallDesc.color.set( 0.25f, 1.0f, 0.25f, 0.25f );
    smokeBallDesc.center.set( -9925.1, 48511.3, 96634.1 );
    smokeballs.push_back( smokeBallDesc );

    // cast red smokeball 
    smokeBallDesc.color.set( 1.0f, 0.25f, 0.25f, 0.25f );
    smokeBallDesc.center.set( 5990.9, 74315.5, 107900.6 );
    smokeballs.push_back( smokeBallDesc );

    // cast script
    new script::Kjerag_RGBTracking( mission->getPlayer() );

    // cast goals
    new GoalStateOfHealth( mission->getPlayer() );
    new GoalStateOfGear( mission->getPlayer() );
    new GoalLanding( mission->getPlayer() );
    new GoalExperience( mission->getPlayer() );
    new GoalSmokeball( mission->getPlayer(), smokeballs, 0.75f * mission->getPlayer()->getVirtues()->getMaximalBonusScore() );
    new GoalFreeFallTime( mission->getPlayer() );
	new GoalOpening( mission->getPlayer() );
	new GoalCanopyTime( mission->getPlayer() );

    // play original music for this mission
    Gameplay::iGameplay->playSoundtrack( "./res/sounds/music/dirty_moleculas_extinct.ogg" );
}
开发者ID:AndreMeijer86,项目名称:base-pro-edition,代码行数:53,代码来源:kjerag.cpp

示例6: castingCallback_KjeragBoogie_Proxi

void castingCallback_KjeragBoogie_Proxi(Actor* parent)
{
    Mission* mission = dynamic_cast<Mission*>( parent ); assert( mission );

    // exit point
    Enclosure* exitPoint = mission->getScene()->getExitPointEnclosure( mission->getMissionInfo()->exitPointId );

    // cast player on exit point
    mission->setPlayer( new Jumper( mission, NULL, exitPoint, NULL, NULL, NULL ) );

    // setup full signature for player
    mission->getPlayer()->setSignatureType( stFull );

    // cast player smokejet
    new SmokeJet( mission->getPlayer(), Vector4f( 1.0f, 0.25f, 0.25f, 1.0f ), ::sjmLeft );

    // cast script
    new script::Kjerag_Proxi( mission->getPlayer() );

    // descriptor of proximity goal 
    GoalProximityDescriptor proximityDesc;
    proximityDesc.range0 = GoalProximityDescriptor::RangeMark( 50.0f, 0.05f );
    proximityDesc.range1 = GoalProximityDescriptor::RangeMark( 25.0f, 0.1f );
    proximityDesc.range2 = GoalProximityDescriptor::RangeMark( 10.0f, 0.25f );
    proximityDesc.range3 = GoalProximityDescriptor::RangeMark( 5.0f, 0.5f );

    // cast goals
    new GoalStateOfHealth( mission->getPlayer() );
    new GoalStateOfGear( mission->getPlayer() );
    new GoalLanding( mission->getPlayer() );
    new GoalExperience( mission->getPlayer() );
    new GoalProximity( mission->getPlayer(), &proximityDesc );
	new GoalFreeFallTime( mission->getPlayer() );
	new GoalOpening( mission->getPlayer() );
	new GoalCanopyTime( mission->getPlayer() );

    // play original music for this mission
    Gameplay::iGameplay->playSoundtrack( "./res/sounds/music/dirty_moleculas_insectosound.ogg" );
}
开发者ID:AndreMeijer86,项目名称:base-pro-edition,代码行数:39,代码来源:kjerag.cpp

示例7: castingCallback_CloudyRodeo_RGB

void castingCallback_CloudyRodeo_RGB(Actor* parent)
{
    Mission* mission = dynamic_cast<Mission*>( parent ); assert( mission );

    // setup audible altimeter
    Altimeter::setAudibleAltimeter( mission->getScene()->getCareer(), true, 70000.0f );

    // define mission epicenter
    const Vector3f epicenterRGB( -19348.0f, 0.0f, 18259.0f );

    // define spatial dispersion of smokeballs
    float sbDisp = 20000.0f;

    // cast helicopter object
    AirplaneDesc airplaneDesc;
    airplaneDesc.templateClump = parent->getScene()->findClump( "Helicopter01" ); assert( airplaneDesc.templateClump );
    airplaneDesc.propellerFrame = "PropellerSound";
    airplaneDesc.propellerSound = "./res/sounds/aircrafts/helicopter.ogg";
    airplaneDesc.exitPointFrames.push_back( "HelicopterExit01" );
    airplaneDesc.exitPointFrames.push_back( "HelicopterExit02" );
    airplaneDesc.exitPointFrames.push_back( "HelicopterExit03" );
    airplaneDesc.animationSpeed = 0.75f;
    airplaneDesc.initAltitude  = 0.0f;
    airplaneDesc.lastAltitude  = 0.0f;
    airplaneDesc.loweringSpeed = 0.0f;
    airplaneDesc.initOffset = epicenterRGB + Vector3f( 0, 400000, 0 );
    airplaneDesc.initDirection.set( 
        getCore()->getRandToolkit()->getUniform( -1, 1 ),
        0.0f,
        getCore()->getRandToolkit()->getUniform( -1, 1 )
    );
    airplaneDesc.initDirection.normalize();
    Airplane* airplane = new Airplane( mission, &airplaneDesc );

    // cast player on airplane
    mission->setPlayer( new Jumper( mission, airplane, NULL, NULL, NULL, NULL ) );

    // setup full signature for player
    mission->getPlayer()->setSignatureType( stFull );

    std::vector<SmokeBallDesc> smokeballs;

    // define smokeball properties
    SmokeBallDesc smokeBallDesc;    
    smokeBallDesc.radius = 3000.0f;    
    smokeBallDesc.numParticles = 256;
    smokeBallDesc.particleMass = 0.25f;
    smokeBallDesc.particleRadius = 1050.0f;

    // cast green smokeball 
    smokeBallDesc.color.set( 0.25f, 1.0f, 0.25f, 0.25f );
    smokeBallDesc.center = epicenterRGB + Vector3f(
        getCore()->getRandToolkit()->getUniform( -sbDisp, sbDisp ),
        300000.0f, 
        getCore()->getRandToolkit()->getUniform( -sbDisp, sbDisp ) 
    );
    smokeballs.push_back( smokeBallDesc );

    // cast blue smokeball 
    smokeBallDesc.color.set( 0.25f, 0.25f, 1.0f, 0.25f );
    smokeBallDesc.center = epicenterRGB + Vector3f(
        getCore()->getRandToolkit()->getUniform( -sbDisp, sbDisp ),
        200000.0f, 
        getCore()->getRandToolkit()->getUniform( -sbDisp, sbDisp ) 
    );
    smokeballs.push_back( smokeBallDesc );

    // cast red smokeball 
    smokeBallDesc.color.set( 1.0f, 0.25f, 0.25f, 0.25f );
    smokeBallDesc.center = epicenterRGB + Vector3f(
        getCore()->getRandToolkit()->getUniform( -sbDisp, sbDisp ),
        100000.0f, 
        getCore()->getRandToolkit()->getUniform( -sbDisp, sbDisp ) 
    );
    smokeballs.push_back( smokeBallDesc );

    // cast goals
    new GoalDropzone( mission->getPlayer() );
    new GoalLanding( mission->getPlayer() );
    new GoalStateOfHealth( mission->getPlayer() );
    new GoalStateOfGear( mission->getPlayer() );
    new GoalExperience( mission->getPlayer() );
    new GoalSmokeball( mission->getPlayer(), smokeballs, 0.5f * mission->getPlayer()->getVirtues()->getMaximalBonusScore() );

    // cast script
    new script::Dropzone_CloudyRodeo_RGB( mission->getPlayer() );

    // play original music for this mission
    Gameplay::iGameplay->playSoundtrack( "./res/sounds/music/dirty_moleculas_requiem.ogg" );
}
开发者ID:Jan123457,项目名称:d3basejumper,代码行数:90,代码来源:dropzone_cloudyrodeo.cpp


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