本文整理汇总了C++中PlayerPointer::RemoveAura方法的典型用法代码示例。如果您正苦于以下问题:C++ PlayerPointer::RemoveAura方法的具体用法?C++ PlayerPointer::RemoveAura怎么用?C++ PlayerPointer::RemoveAura使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PlayerPointer
的用法示例。
在下文中一共展示了PlayerPointer::RemoveAura方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnStart
void Arena::OnStart()
{
/* remove arena readyness buff */
for(uint32 i = 0; i < 2; ++i) {
for(set<PlayerPointer >::iterator itr = m_players[i].begin(); itr != m_players[i].end(); ++itr) {
PlayerPointer plr = *itr;
plr->RemoveAura(ARENA_PREPARATION);
}
}
/* open gates */
for(set< GameObjectPointer >::iterator itr = m_gates.begin(); itr != m_gates.end(); ++itr)
{
(*itr)->SetUInt32Value(GAMEOBJECT_FLAGS, 64);
(*itr)->SetByte(GAMEOBJECT_BYTES_1,GAMEOBJECT_BYTES_STATE, 0);
}
m_started = true;
/* Incase all players left */
UpdatePlayerCounts();
// soundz!
PlaySoundToAll(SOUND_BATTLEGROUND_BEGIN);
sEventMgr.RemoveEvents(shared_from_this(), EVENT_ARENA_SHADOW_SIGHT);
sEventMgr.AddEvent(TO_CBATTLEGROUND(shared_from_this()), &CBattleground::HookOnShadowSight, EVENT_ARENA_SHADOW_SIGHT, 90000, 1,0);
}
示例2: OnRemovePlayer
void Arena::OnRemovePlayer(PlayerPointer plr)
{
/* remove arena readyness buff */
plr->m_deathVision = false;
if( plr->m_isGmInvisible )
return;
plr->RemoveAura(ARENA_PREPARATION);
/* plr left arena, call HookOnPlayerDeath as if he died */
HookOnPlayerDeath(plr);
plr->RemoveAura(32724+plr->m_bgTeam);
plr->RemoveFFAPvPFlag();
plr->m_bgRatedQueue = false;
}
示例3: AreatriggerHook
void AreatriggerHook(PlayerPointer pPlayer, uint32 triggerID)
{
if(!pPlayer)
return;
if(triggerID == ALLIANCE_RETURN ||
triggerID == HORDE_RETURN)
{
if(pPlayer->HasAura(SILITHYST_SPELL)) // if we doesn't have it, do nothing
{
pPlayer->RemoveAura(SILITHYST_SPELL);
/* Rewards */
pPlayer->CastSpell(pPlayer, TRACES_OF_SILITHYST, true);
pPlayer->m_honorPoints += REWARD_HONOR;
pPlayer->ModStanding(REWARD_REPUTATION_FACTION, REWARD_REPUTATION_VALUE);
uint32 quest = pPlayer->GetTeam() == ALLIANCE ? ALLIANCE_SILITHYST_QUEST : HORDE_SILITHYST_QUEST;
QuestLogEntry* qle = pPlayer->GetQuestLogForEntry(quest);
if(qle)
qle->SendQuestComplete();
/***********/
if(locked)
return;
silithyst_gathered[ pPlayer->GetTeam() ]++;
uint32 worldstate = pPlayer->GetTeam() == ALLIANCE ? WORLDSTATE_SILITHUS_GATHERED_ALLIANCE : WORLDSTATE_SILITHUS_GATHERED_HORDE;
pPlayer->GetMapMgr()->GetStateManager().UpdateWorldState(worldstate , silithyst_gathered[ pPlayer->GetTeam() ]);
if(silithyst_gathered[ pPlayer->GetTeam() ] >= SILITHYST_MAX)
{
locked = true; // we win, so opposite team must wait for server restart
winners = pPlayer->GetTeam();
pPlayer->GetMapMgr()->CastSpellOnPlayers(winners, CENARION_FAVOR);
pPlayer->GetMapMgr()->RemovePositiveAuraFromPlayers(winners == ALLIANCE ? HORDE : ALLIANCE, CENARION_FAVOR);
}
}
}
}
示例4: OnRemovePlayer
void ArathiBasin::OnRemovePlayer(PlayerPointer plr)
{
plr->RemoveAura(BG_PREPARATION);
}