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


C++ TeamCastSpell函数代码示例

本文整理汇总了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;
}
开发者ID:japtenks,项目名称:blizzlikecore,代码行数:23,代码来源:OutdoorPvPEP.cpp

示例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);
}
开发者ID:Chaplain,项目名称:TrinityCore,代码行数:14,代码来源:BattlefieldTB.cpp

示例3: TeamCastSpell

void OutdoorPvP::TeamApplyBuff(TeamId team, uint32 spellId, uint32 spellId2)
{
    TeamCastSpell(team, spellId);
    TeamCastSpell(OTHER_TEAM(team), spellId2 ? -(int32)spellId2 : -(int32)spellId);
}
开发者ID:Carbenium,项目名称:TrinityCore,代码行数:5,代码来源:OutdoorPvP.cpp

示例4: TeamCastSpell

void OutdoorPvP::TeamApplyBuff(BattleGroundTeamId team, uint32 spellId, uint32 spellId2)
{
    TeamCastSpell(team, spellId);
	TeamCastSpell(BattleGroundTeamId(BattleGround::GetOtherTeam(team)), spellId2 ? -(int32)spellId2 : -(int32)spellId);
}
开发者ID:AwkwardDev,项目名称:MangosFX,代码行数:5,代码来源:OutdoorPvP.cpp

示例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);
}
开发者ID:Cryostorm,项目名称:SunwellCore,代码行数:5,代码来源:OutdoorPvP.cpp


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