本文整理汇总了C++中TeamCastSpell函数的典型用法代码示例。如果您正苦于以下问题:C++ TeamCastSpell函数的具体用法?C++ TeamCastSpell怎么用?C++ TeamCastSpell使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了TeamCastSpell函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: TeamCastSpell
bool OutdoorPvPEP::Update(uint32 diff)
{
bool changed = false;
if (changed = OutdoorPvP::Update(diff))
{
for (uint8 i = 0; i < OutdoorPvPEPTeamsBuffNum; ++i)
{
TeamCastSpell(TEAM_ALLIANCE, -EP_AllianceBuffs[i]);
TeamCastSpell(TEAM_HORDE, -EP_HordeBuffs[i]);
}
uint32 AllianceBuff = m_AllianceTowersControlled > 0 ? EP_AllianceBuffs[m_AllianceTowersControlled-1] : 0;
uint32 HordeBuff = m_HordeTowersControlled > 0 ? EP_HordeBuffs[m_HordeTowersControlled-1] : 0;
if (m_AllianceTowersControlled > 0)
TeamApplyBuff(TEAM_ALLIANCE, AllianceBuff, HordeBuff);
if (m_HordeTowersControlled > 0)
TeamApplyBuff(TEAM_HORDE, HordeBuff, AllianceBuff);
SendUpdateWorldState(EP_UI_TOWER_COUNT_A, m_AllianceTowersControlled);
SendUpdateWorldState(EP_UI_TOWER_COUNT_H, m_HordeTowersControlled);
}
return changed;
}
示例2: SendWarning
void BattlefieldTB::TowerDamaged(TBTowerId tbTowerId)
{
if (!IsWarTime())
return;
SendWarning(TBTowers[tbTowerId].textDamaged);
SetData(BATTLEFIELD_TB_DATA_TOWERS_INTACT, GetData(BATTLEFIELD_TB_DATA_TOWERS_INTACT) - 1);
SendUpdateWorldState(uint32(TBTowers[tbTowerId].wsIntact[GetDefenderTeam()]), int32(0));
SendUpdateWorldState(uint32(TBTowers[tbTowerId].wsDamaged[GetDefenderTeam()]), int32(1));
TeamCastSpell(GetAttackerTeam(), SPELL_REWARD_TOWER_DAMAGED);
}
示例3: TeamCastSpell
void OutdoorPvP::TeamApplyBuff(TeamId team, uint32 spellId, uint32 spellId2)
{
TeamCastSpell(team, spellId);
TeamCastSpell(OTHER_TEAM(team), spellId2 ? -(int32)spellId2 : -(int32)spellId);
}
示例4: TeamCastSpell
void OutdoorPvP::TeamApplyBuff(BattleGroundTeamId team, uint32 spellId, uint32 spellId2)
{
TeamCastSpell(team, spellId);
TeamCastSpell(BattleGroundTeamId(BattleGround::GetOtherTeam(team)), spellId2 ? -(int32)spellId2 : -(int32)spellId);
}
示例5: TeamCastSpell
void OutdoorPvP::TeamApplyBuff(TeamId teamId, uint32 spellId, uint32 spellId2, Player* sameMapPlr)
{
TeamCastSpell(teamId, spellId, sameMapPlr);
TeamCastSpell(teamId == TEAM_ALLIANCE ? TEAM_HORDE : TEAM_ALLIANCE, spellId2 ? -(int32)spellId2 : -(int32)spellId, sameMapPlr);
}