本文整理汇总了C++中processActionRoutine函数的典型用法代码示例。如果您正苦于以下问题:C++ processActionRoutine函数的具体用法?C++ processActionRoutine怎么用?C++ processActionRoutine使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了processActionRoutine函数的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: performGravityMid
void CMadMushroom::process()
{
performGravityMid();
performCollisions();
if(!blockedd)
{
m_jumped = false;
}
if(blockedd && !m_jumped)
{
yinertia = -MUSHROOM_LOW_INERTIA;
jumpcounter++;
if( jumpcounter>=bounceAmount )
{
yinertia = -MUSHROOM_HIGH_INERTIA;
jumpcounter = 0;
playSound( SOUND_BOUNCE_HIGH );
}
else
{
playSound( SOUND_BOUNCE_LOW );
}
m_jumped = true;
}
if(!processActionRoutine())
exists = false;
}
开发者ID:FromCrimsonToWool,项目名称:Commander-Genius,代码行数:33,代码来源:CMadMushroom.cpp
示例2: setAction
void CWormmouth::getTouchedBy(CSpriteObject &theObject)
{
if(dead || theObject.dead )
return;
CStunnable::getTouchedBy(theObject);
// Was it a bullet? Than make it stunned.
if( dynamic_cast<CBullet*>(&theObject) )
{
setAction( A_WORMMOUTH_STUNNED );
dead = true;
theObject.dead = true;
if(!processActionRoutine())
exists = false;
performCollisions();
processGettingStunned();
}
if( !getActionNumber(A_WORMMOUTH_EAT) )
return;
if( CPlayerBase *player = dynamic_cast<CPlayerBase*>(&theObject) )
{
player->kill();
}
}
开发者ID:mcmire,项目名称:Commander-Genius,代码行数:31,代码来源:CWormmouth.cpp
示例3: performCollisions
void CAmpton::process()
{
performCollisions();
if(!getActionNumber(A_AMPTON_POLE_SLIDE))
performGravityMid();
if(!dead) // If we is dead, there is no way to continue moving or turning
{
if( blockedl )
{
if(xDirection == LEFT)
setAction(A_AMPTON_TURN);
xDirection = RIGHT;
}
else if(blockedr)
{
if(xDirection == RIGHT)
setAction(A_AMPTON_TURN);
xDirection = LEFT;
}
}
if(!processActionRoutine())
exists = false;
(this->*mp_processState)();
}
开发者ID:mcmire,项目名称:Commander-Genius,代码行数:30,代码来源:CAmpton.cpp
示例4: process
void CRocket::process()
{
if(!processActionRoutine())
exists = false;
(this->*mp_processState)();
}
开发者ID:roman-murashov,项目名称:Commander-Genius,代码行数:7,代码来源:CRocket.cpp
示例5: processActionRoutine
void CLick::process()
{
(this->*mp_processState)();
processActionRoutine();
processFalling();
}
开发者ID:Shayster,项目名称:Commander-Genius,代码行数:8,代码来源:CLick.cpp
示例6: processLevelMiscFlagsCheck
void CPlayerDive::process()
{
(this->*mp_processState)();
processLevelMiscFlagsCheck();
processActionRoutine();
}
开发者ID:Shayster,项目名称:Commander-Genius,代码行数:8,代码来源:CPlayerDive.cpp
示例7: process
void CWaterMine::process()
{
(this->*mp_processState)();
if(!processActionRoutine())
exists = false;
}
开发者ID:FromCrimsonToWool,项目名称:Commander-Genius,代码行数:8,代码来源:CWaterMine.cpp
示例8: performCollisions
void CBlorb::process()
{
performCollisions();
if(!processActionRoutine())
exists = false;
(this->*mp_processState)();
}
开发者ID:akien-mga,项目名称:Commander-Genius,代码行数:9,代码来源:CBlorb.cpp
示例9: performCollisions
void CMimrock::process()
{
performCollisions();
processFalling();
(this->*mp_processState)();
processActionRoutine();
}
开发者ID:Shayster,项目名称:Commander-Genius,代码行数:9,代码来源:CMimrock.cpp
示例10: setAction
void CBullets::process()
{
if( blockedd || blockedu || blockedl || blockedr )
{
setAction(A_KEENSHOT_IMPACT);
}
processActionRoutine();
}
开发者ID:albertz,项目名称:commandergenius,代码行数:9,代码来源:CBullets.cpp
示例11: performCollisions
void CMimrock::process()
{
performCollisions();
performGravityMid();
processActionRoutine();
(this->*mp_processState)();
}
开发者ID:FromCrimsonToWool,项目名称:Commander-Genius,代码行数:10,代码来源:CMimrock.cpp
示例12: if
void CCouncilMember::process()
{
(this->*mp_processState)();
if( blockedl )
m_hDir = RIGHT;
else if(blockedr)
m_hDir = LEFT;
processActionRoutine();
}
开发者ID:Shayster,项目名称:Commander-Genius,代码行数:11,代码来源:CCouncilMember.cpp
示例13: setAction
void CBullet::process()
{
if( !getActionNumber(A_KEENSHOT_IMPACT) && (blockedd || blockedu || blockedl || blockedr || onslope) )
{
setAction(A_KEENSHOT_IMPACT);
playSound( SOUND_SHOT_HIT );
dead = true;
}
processActionRoutine();
}
开发者ID:Shayster,项目名称:Commander-Genius,代码行数:11,代码来源:CBullet.cpp
示例14: CGalaxySpriteObject
CMadMushroom::CMadMushroom(CMap *pmap, const Uint16 foeID, Uint32 x, Uint32 y) :
CGalaxySpriteObject(pmap, foeID, x, y),
jumpcounter(0)
{
setupGalaxyObjectOnMap(0x20E4, A_MUSHROOM_BOUNCE);
CSprite &rSprite = g_pGfxEngine->getSprite(sprite);
performCollisions();
processMove( 0, rSprite.m_bboxY1-rSprite.m_bboxY2 );
processActionRoutine();
}
开发者ID:pelya,项目名称:Commander-Genius,代码行数:11,代码来源:CMadMushroom.cpp
示例15: CGalaxySpriteObject
CArachnut::CArachnut(CMap *pmap, const Uint16 foeID, Uint32 x, Uint32 y) :
CGalaxySpriteObject(pmap, foeID, x, y)
{
setupGalaxyObjectOnMap( 0x2378, A_ARACHNUT_WALK );
xDirection = LEFT;
CSprite &rSprite = g_pGfxEngine->getSprite(sprite);
performCollisions();
processMove( 0, rSprite.m_bboxY1-rSprite.m_bboxY2 );
processActionRoutine();
}
开发者ID:pelya,项目名称:Commander-Genius,代码行数:11,代码来源:CArachnut.cpp
示例16: if
void CCouncilMember::process()
{
(this->*mp_processState)();
if( blockedl )
xDirection = RIGHT;
else if(blockedr)
xDirection = LEFT;
if(!processActionRoutine())
exists = false;
}
开发者ID:carstene1ns,项目名称:Commander-Genius,代码行数:12,代码来源:CCouncilMember.cpp
示例17: CGalaxySpriteObject
CMadMushroom::CMadMushroom(CMap *pmap, const Uint16 foeID, Uint32 x, Uint32 y) :
CGalaxySpriteObject(pmap, foeID, x, y, 0),
jumpcounter(0)
{
setupGalaxyObjectOnMap(0x20E4, A_MUSHROOM_BOUNCE);
processActionRoutine();
honorPriority = false;
bounceAmount = 0;
byte *ptr = gKeenFiles.exeFile.getRawData();
ptr += 0xFF90;
memcpy(&bounceAmount, ptr, 1 );
}
开发者ID:FromCrimsonToWool,项目名称:Commander-Genius,代码行数:14,代码来源:CMadMushroom.cpp
示例18: processActionRoutine
void CPlatform::process()
{
// check if someone is still standing on the platform
if(mp_CarriedPlayer)
{
if(!hitdetect(*mp_CarriedPlayer) || mp_CarriedPlayer->blockedu)
{
mp_CarriedPlayer->supportedbyobject = false;
mp_CarriedPlayer->m_jumpdownfromobject = false;
mp_CarriedPlayer = NULL;
}
}
processActionRoutine();
}
开发者ID:pelya,项目名称:Commander-Genius,代码行数:15,代码来源:CPlatform.cpp
示例19: performCollisions
void CPoisonSlug::process()
{
performCollisions();
performGravityLow();
if( blockedl )
xDirection = RIGHT;
else if(blockedr)
xDirection = LEFT;
if(!processActionRoutine())
exists = false;
(this->*mp_processState)();
}
开发者ID:mcmire,项目名称:Commander-Genius,代码行数:16,代码来源:CPoisonSlug.cpp
注:本文中的processActionRoutine函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论