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


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

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


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

示例1: castingCallback_OpenAir_SpiralFreefall

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

    // exit point
    Enclosure* exitPoint = parent->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, 1.0f, 0.25f, 1.0f ), ::sjmLeft );

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

    // cast goals
    new GoalStateOfHealth( mission->getPlayer() );
    new GoalStateOfGear( mission->getPlayer() );
    new GoalLanding( mission->getPlayer() );
    new GoalExperience( mission->getPlayer() );
    new GoalSpiral( mission->getPlayer(), Vector3f( 0.0f, 0.0f, -1464 ) );
	new GoalFreeFallTime( mission->getPlayer() );
	new GoalCanopyTime( mission->getPlayer() );

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

示例2: castingCallback_OpenAir_PikeOfThrills

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

    // exit point
    Enclosure* exitPoint = parent->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( 0.25f, 1.0f, 0.25f, 1.0f ), ::sjmLeft );

    // cast goals
    new GoalStateOfHealth( mission->getPlayer() );
    new GoalStateOfGear( mission->getPlayer() );
    new GoalLanding( mission->getPlayer() );
    new GoalExperience( mission->getPlayer() );
    new GoalBonus( mission->getPlayer(), Gameplay::iLanguage->getUnicodeString(533), btProgressive, 2.0f );
	new GoalFreeFallTime( mission->getPlayer() );
	new GoalCanopyTime( mission->getPlayer() );

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

示例3: castingCallback_TrollField_JumpFromRun

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

    // exit point
    Enclosure* exitPoint = parent->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 instructor
    new instructor::JumpFromRunInstructor( mission->getPlayer() );

    // cast goals
    new GoalStateOfHealth( mission->getPlayer() );
    new GoalStateOfGear( mission->getPlayer() );
    new GoalLanding( mission->getPlayer() );
    new GoalExperience( mission->getPlayer() );
    
    // play original music for this mission
    Gameplay::iGameplay->playSoundtrack( "./res/sounds/music/dirty_moleculas_action.ogg" );
}
开发者ID:Jan123457,项目名称:d3basejumper,代码行数:25,代码来源:trollveggen_field.cpp

示例4: castingCallback_OpenAir_FlipCount

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

    // exit point
    Enclosure* exitPoint = parent->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 goals
    new GoalStateOfHealth( mission->getPlayer() );
    new GoalStateOfGear( mission->getPlayer() );
    new GoalLanding( mission->getPlayer() );
    new GoalExperience( mission->getPlayer() );
    new GoalFlipCount( mission->getPlayer(), mission->getPlayer()->getVirtues()->getMaximalBonusScore() * 0.75f );
	new GoalFreeFallTime( mission->getPlayer() );
	new GoalCanopyTime( mission->getPlayer() );

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

示例5: 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

示例6: castingCallback_ElCapitanFreeJump

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

    // exit point
    Enclosure* exitPoint = parent->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 goals
    new GoalStateOfHealth( mission->getPlayer() );
    new GoalStateOfGear( mission->getPlayer() );
    new GoalLanding( mission->getPlayer() );
    new GoalExperience( mission->getPlayer() );
    new GoalBonus( mission->getPlayer(), Gameplay::iLanguage->getUnicodeString(533), btProgressive, 1.0f );
	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_retry.ogg" );
}
开发者ID:AndreMeijer86,项目名称:base-pro-edition,代码行数:26,代码来源:elcapitan.cpp

示例7: castingCallback_KjeragBoogie_IntervalJumps

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

    // exit point
    Enclosure* exitPoint = parent->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 );

    // select NPCs
    std::vector<unsigned int> npcs;
    selectNPCs( mission->getPlayer(), 0.51f, npcs );

    // load first ghost & cast NPC
    CatToy* catToy01 = CatToy::loadGhostCatToy( "./usr/cattoys/kjerag/ij01.cattoy" ); assert( catToy01 );
    NPC* ghost01 = ::castGhostNPC( mission, exitPoint, catToy01, npcs ); assert( ghost01 );

    // load second ghost & cast NPC
    CatToy* catToy02 = CatToy::loadGhostCatToy( "./usr/cattoys/kjerag/ij02.cattoy" ); assert( catToy02 );
    NPC* ghost02 = ::castGhostNPC( mission, exitPoint, catToy02, npcs ); assert( ghost02 );

    // load third ghost & cast NPC
    CatToy* catToy03 = CatToy::loadGhostCatToy( "./usr/cattoys/kjerag/ij03.cattoy" ); assert( catToy03 );
    NPC* ghost03 = ::castGhostNPC( mission, exitPoint, catToy03, npcs ); assert( ghost03 );

    // load fourth ghost & cast NPC
    CatToy* catToy04 = CatToy::loadGhostCatToy( "./usr/cattoys/kjerag/ij04.cattoy" ); assert( catToy04 );
    NPC* ghost04 = ::castGhostNPC( mission, exitPoint, catToy04, npcs ); assert( ghost04 );

    // load fifth ghost & cast NPC
    CatToy* catToy05 = CatToy::loadGhostCatToy( "./usr/cattoys/kjerag/ij05.cattoy" ); assert( catToy05 );
    NPC* ghost05 = ::castGhostNPC( mission, exitPoint, catToy05, npcs ); assert( ghost05 );

    // cast script
    NPCL ghosts;
    ghosts.push_back( ghost01 );
    ghosts.push_back( ghost02 );
    ghosts.push_back( ghost03 );
    ghosts.push_back( ghost04 );
    ghosts.push_back( ghost05 );
    new script::Kjerag_IntervalJumps( mission->getPlayer(), ghosts );

    // cast goals
    new GoalStateOfHealth( mission->getPlayer() );
    new GoalStateOfGear( mission->getPlayer() );
    new GoalLanding( mission->getPlayer() );
    new GoalExperience( mission->getPlayer() );
    new GoalBonus( mission->getPlayer(), Gameplay::iLanguage->getUnicodeString(533), btUnderground, 1.25f );
	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,代码行数:59,代码来源:kjerag.cpp

示例8: castingCallback_OpenAir_RGB_Extreme

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

    // exit point
    Enclosure* exitPoint = parent->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 goals
    new GoalLanding( mission->getPlayer() );
    new GoalStateOfHealth( mission->getPlayer() );
    new GoalStateOfGear( mission->getPlayer() );
    new GoalExperience( mission->getPlayer() );
	new GoalFreeFallTime( mission->getPlayer() );
	new GoalCanopyTime( mission->getPlayer() );

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

    std::vector<SmokeBallDesc> smokeballs;

    // cast red smokeball
    smokeballs.clear();
    smokeBallDesc.color.set( 1.0f, 0.25f, 0.25f, 0.25f );
    smokeBallDesc.center.set( 46684.0f, 9756.8f, -10375.8f );
    smokeballs.push_back( smokeBallDesc );
    new GoalSmokeball( mission->getPlayer(), smokeballs, 3.0f * mission->getPlayer()->getVirtues()->getMaximalBonusScore() );

    // cast blue smokeball
    smokeballs.clear();
    smokeBallDesc.color.set( 0.25f, 0.25f, 1.0f, 0.25f );
    smokeBallDesc.center.set( -22803.3f, 12154.4f, -37947.5f );
    smokeballs.push_back( smokeBallDesc );
    new GoalSmokeball( mission->getPlayer(), smokeballs, 2.5f * mission->getPlayer()->getVirtues()->getMaximalBonusScore() );

    // cast green smokeball
    smokeballs.clear();
    smokeBallDesc.color.set( 0.25f, 1.0f, 0.25f, 0.25f );
    smokeBallDesc.center.set( -19535.5f, 14932.5f, 14405.6f );
    smokeballs.push_back( smokeBallDesc );
    new GoalSmokeball( mission->getPlayer(), smokeballs, 1.5f * mission->getPlayer()->getVirtues()->getMaximalBonusScore() );

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

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

示例9: castingCallback_AngelFallsNoWings

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

    // exit point
    Enclosure* exitPoint = parent->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 );

    // select NPCs
    std::vector<unsigned int> npcs;
    selectNPCs( mission->getPlayer(), 0.25f, npcs );

    // load first ghost & cast NPC
    CatToy* catToy01 = CatToy::loadGhostCatToy( "./usr/cattoys/angelfalls/nowings01.cattoy" ); assert( catToy01 );
    NPC* ghost01 = ::castGhostNPC( mission, exitPoint, catToy01, npcs ); assert( ghost01 );

    // load second ghost & cast NPC
    CatToy* catToy02 = CatToy::loadGhostCatToy( "./usr/cattoys/angelfalls/nowings02.cattoy" ); assert( catToy02 );
    NPC* ghost02 = ::castGhostNPC( mission, exitPoint, catToy02, npcs ); assert( ghost02 );

    // in this mission can participate third character. sometimes.
    if( getCore()->getRandToolkit()->getUniform(0,1) > 0.33f )
    {
        CatToy* catToy03 = NULL;
        if( getCore()->getRandToolkit()->getUniform(0,1) > 0.5f )
        {
            catToy03 = CatToy::wrap( ghost01->getJumper() );
        }
        else
        {
            catToy03 = CatToy::wrap( ghost02->getJumper() );
        }
        NPC* ghost03 = ::castGhostNPC( mission, exitPoint, catToy03, npcs ); assert( ghost03 );
    }

    // cast script
    new script::AngelFalls_NoWings( mission->getPlayer(), catToy02 );

    // cast goals
    new GoalStateOfHealth( mission->getPlayer() );
    new GoalStateOfGear( mission->getPlayer() );
    new GoalLanding( mission->getPlayer() );
    new GoalExperience( mission->getPlayer() );
    new GoalBonus( mission->getPlayer(), Gameplay::iLanguage->getUnicodeString(533), btProgressive, 2.5f );
	new GoalOpening( mission->getPlayer() );
	new GoalFreeFallTime( mission->getPlayer() );
	new GoalCanopyTime( mission->getPlayer() );

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

示例10: castingCallback_OpenAir_6way

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

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

    // observation platform
    Enclosure* observationPlatform = parent->getScene()->getExitPointEnclosure( 1 );

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

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

    // select NPCs
    std::vector<unsigned int> npcs;
    selectNPCs( mission->getPlayer(), 0.51f, npcs );

    // load first ghost
    CatToy* catToy01 = CatToy::loadGhostCatToy( "./usr/cattoys/openair/6way01.cattoy" ); assert( catToy01 );

    // cast ghost NPC
    NPC* ghost01 = ::castGhostNPC( mission, exitPoint, catToy01, npcs ); assert( ghost01 );    

    // cast cameraman NPC for ghost
    NPC* ghost01cameraman = ::castCameramanNPC( mission, exitPoint, ghost01->getJumper(), npcs ); assert( ghost01cameraman );

    // load second ghost
    CatToy* catToy02 = CatToy::loadGhostCatToy( "./usr/cattoys/openair/6way02.cattoy" ); assert( catToy02 );

    // cast second ghost NPC
    NPC* ghost02 = ::castGhostNPC( mission, observationPlatform, catToy02, npcs ); assert( ghost02 );

    // cast cameraman NPC for second ghost
    NPC* ghost02cameraman01 = ::castCameramanNPC( mission, observationPlatform, ghost02->getJumper(), npcs ); assert( ghost02cameraman01 );

    // cast cameraman NPC for second ghost's cameraman ;)
    NPC* ghost02cameraman02 = ::castCameramanNPC( mission, observationPlatform, ghost02cameraman01->getJumper(), npcs ); assert( ghost02cameraman02 );

    // cast script
    new script::OpenAir_6way_Script( mission->getPlayer(), ghost01 );

    // cast goals
    new GoalStateOfHealth( mission->getPlayer() );
    new GoalStateOfGear( mission->getPlayer() );
    new GoalLanding( mission->getPlayer() );
    new GoalExperience( mission->getPlayer() );
    new GoalBonus( mission->getPlayer(), Gameplay::iLanguage->getUnicodeString(533), btProgressive, 1.0f );
	new GoalFreeFallTime( mission->getPlayer() );
	new GoalCanopyTime( mission->getPlayer() );

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

示例11: castingCallback_OpenAir_RGB_Spiral

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

    // exit point
    Enclosure* exitPoint = parent->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 );

    // smokeballs
    std::vector<SmokeBallDesc> smokeballs;

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

    // green smokeball 
    smokeBallDesc.color.set( 0.25f, 1.0f, 0.25f, 0.25f );
    smokeBallDesc.center.set( -621.8f, 42222.8f, -3112.1f );
    smokeballs.push_back( smokeBallDesc );

    // blue smokeball 
    smokeBallDesc.color.set( 0.25f, 0.25f, 1.0f, 0.25f );
    smokeBallDesc.center.set( 3121.9f, 27289.0f, -2318.4f );
    smokeballs.push_back( smokeBallDesc );

    // cast red smokeball 
    smokeBallDesc.color.set( 1.0f, 0.25f, 0.25f, 0.25f );
    smokeBallDesc.center.set( -141.1f, 16183.9f, 4816.4f );
    smokeballs.push_back( smokeBallDesc );

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

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

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

示例12: 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

示例13: 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

示例14: castingCallback_TrollSmokeball_RGB_Tracking

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

    // exit point
    Enclosure* exitPoint = parent->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 );

    // smokeballs
    std::vector<SmokeBallDesc> smokeballs;

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

    // green smokeball 
    smokeBallDesc.color.set( 0.25f, 1.0f, 0.25f, 0.25f );
    smokeBallDesc.center.set( 23205.9f, 141698.1f, 21659.0f );
    smokeballs.push_back( smokeBallDesc );

    // blue smokeball 
    smokeBallDesc.color.set( 0.25f, 0.25f, 1.0f, 0.25f );
    smokeBallDesc.center.set( -25721.1f, 96578.7f, 27820.2f );
    smokeballs.push_back( smokeBallDesc );

    // cast red smokeball 
    smokeBallDesc.color.set( 1.0f, 0.25f, 0.25f, 0.25f );
    smokeBallDesc.center.set( -66936.4f, 65688.4f, -15831.8f );
    smokeballs.push_back( smokeBallDesc );

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

    // cast script
    new script::TrollSmokeball_RGB_Script( mission->getPlayer() );
    
    // play original music for this mission    
    Gameplay::iGameplay->playSoundtrack( "./res/sounds/music/dirty_moleculas_insectosound.ogg" );
}
开发者ID:cheinkn,项目名称:basextreme,代码行数:51,代码来源:trollveggen_smokeball.cpp

示例15: castingCallback_AngelFallsCloseAndCloser

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

    // exit point
    Enclosure* exitPoint = parent->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 );

    // select NPCs
    std::vector<unsigned int> npcs;
    selectNPCs( mission->getPlayer(), 0.25f, npcs );

    // load first ghost & cast NPC
    CatToy* catToy01 = CatToy::loadGhostCatToy( "./usr/cattoys/angelfalls/close01.cattoy" ); assert( catToy01 );
    NPC* ghost01 = ::castGhostNPC( mission, exitPoint, catToy01, npcs ); assert( ghost01 );

    // load second ghost & cast NPC
    CatToy* catToy02 = CatToy::loadGhostCatToy( "./usr/cattoys/angelfalls/close02.cattoy" ); assert( catToy02 );
    NPC* ghost02 = ::castGhostNPC( mission, exitPoint, catToy02, npcs ); assert( ghost02 );

    // cast NPC smokejets
    new SmokeJet( ghost01->getJumper(), Vector4f( 0.25f, 1.0f, 0.25f, 1.0f ), ::sjmLeft );
    new SmokeJet( ghost02->getJumper(), Vector4f( 0.25f, 0.25f, 1.0f, 1.0f ), ::sjmLeft );

    // cast script
    new script::AngelFalls_CloseAndCloser( mission->getPlayer(), catToy01 );

    // cast goals
    new GoalStateOfHealth( mission->getPlayer() );
    new GoalStateOfGear( mission->getPlayer() );
    new GoalLanding( mission->getPlayer() );
    new GoalExperience( mission->getPlayer() );
    new GoalBonus( mission->getPlayer(), Gameplay::iLanguage->getUnicodeString(533), btProgressive, 1.75f );
	new GoalOpening( mission->getPlayer() );
	new GoalFreeFallTime( mission->getPlayer() );
	new GoalCanopyTime( mission->getPlayer() );

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


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