mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-29 08:33:47 +00:00
feat(Core): enable C++17 (#2234)
Co-authored-by: Winfidonarleyan <dowlandtop@yandex.com>
This commit is contained in:
committed by
Kargatum
parent
cae91f1650
commit
3a43e8c415
@@ -9,6 +9,7 @@
|
||||
#include "icecrown_citadel.h"
|
||||
#include "SpellInfo.h"
|
||||
#include "Player.h"
|
||||
#include <random>
|
||||
|
||||
enum ScriptTexts
|
||||
{
|
||||
@@ -387,7 +388,7 @@ class boss_lady_deathwhisper : public CreatureScript
|
||||
}
|
||||
|
||||
std::vector<Player*>::iterator begin=validPlayers.begin(), end=validPlayers.end();
|
||||
std::random_shuffle(begin, end);
|
||||
std::shuffle(begin, end, std::default_random_engine{});
|
||||
|
||||
for (uint8 i = 0; i < RAID_MODE<uint8>(0, 1, 1, 3) && i < validPlayers.size(); i++)
|
||||
{
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "PassiveAI.h"
|
||||
#include "Player.h"
|
||||
#include "Vehicle.h"
|
||||
#include <random>
|
||||
|
||||
enum ScriptTexts
|
||||
{
|
||||
@@ -58,7 +59,7 @@ enum Events
|
||||
|
||||
uint32 const boneSpikeSummonId[3] = {69062, 72669, 72670};
|
||||
|
||||
struct BoneStormMoveTargetSelector : public std::unary_function<Unit*, bool>
|
||||
struct BoneStormMoveTargetSelector : public ACORE::unary_function<Unit*, bool>
|
||||
{
|
||||
public:
|
||||
BoneStormMoveTargetSelector(Creature* source) : _source(source) { }
|
||||
@@ -549,7 +550,7 @@ public:
|
||||
validPlayers.push_back(plr);
|
||||
|
||||
std::vector<Player*>::iterator begin=validPlayers.begin(), end=validPlayers.end();
|
||||
std::random_shuffle(begin, end);
|
||||
std::shuffle(begin, end, std::default_random_engine{});
|
||||
|
||||
for (uint8 i = 0; i < boneSpikeCount && i < validPlayers.size(); ++i)
|
||||
{
|
||||
|
||||
@@ -188,7 +188,7 @@ private:
|
||||
};
|
||||
|
||||
// xinef: malleable goo selector, check for target validity
|
||||
struct MalleableGooSelector : public std::unary_function<Unit*, bool>
|
||||
struct MalleableGooSelector : public ACORE::unary_function<Unit*, bool>
|
||||
{
|
||||
const Unit* me;
|
||||
MalleableGooSelector(Unit const* unit) : me(unit) {}
|
||||
|
||||
@@ -227,7 +227,7 @@ class IceTombSummonEvent : public BasicEvent
|
||||
uint64 _sindragosaGUID;
|
||||
};
|
||||
|
||||
struct LastPhaseIceTombTargetSelector : public std::unary_function<Unit*, bool>
|
||||
struct LastPhaseIceTombTargetSelector : public ACORE::unary_function<Unit*, bool>
|
||||
{
|
||||
public:
|
||||
LastPhaseIceTombTargetSelector(Creature* source) : _source(source) { }
|
||||
|
||||
@@ -359,7 +359,7 @@ void SendPacketToPlayers(WorldPacket const* data, Unit* source)
|
||||
}
|
||||
|
||||
|
||||
struct NonTankLKTargetSelector : public std::unary_function<Unit*, bool>
|
||||
struct NonTankLKTargetSelector : public ACORE::unary_function<Unit*, bool>
|
||||
{
|
||||
public:
|
||||
NonTankLKTargetSelector(Creature* source, bool playerOnly = true, bool reqLOS = false, float maxDist = 0.0f, uint32 exclude1 = 0, uint32 exclude2 = 0) : _source(source), _playerOnly(playerOnly), _reqLOS(reqLOS), _maxDist(maxDist), _exclude1(exclude1), _exclude2(exclude2) { }
|
||||
@@ -394,7 +394,7 @@ private:
|
||||
};
|
||||
|
||||
|
||||
struct DefileTargetSelector : public std::unary_function<Unit*, bool>
|
||||
struct DefileTargetSelector : public ACORE::unary_function<Unit*, bool>
|
||||
{
|
||||
public:
|
||||
DefileTargetSelector(Creature* source) : _source(source) { }
|
||||
@@ -551,7 +551,7 @@ private:
|
||||
Creature& _owner;
|
||||
};
|
||||
|
||||
class NecroticPlagueTargetCheck : public std::unary_function<Unit*, bool>
|
||||
class NecroticPlagueTargetCheck : public ACORE::unary_function<Unit*, bool>
|
||||
{
|
||||
public:
|
||||
NecroticPlagueTargetCheck(Unit const* obj, uint32 notAura1, uint32 notAura2) : _sourceObj(obj), _notAura1(notAura1), _notAura2(notAura2) {}
|
||||
|
||||
@@ -144,7 +144,7 @@ class RisenArchmageCheck
|
||||
}
|
||||
};
|
||||
|
||||
struct ManaVoidSelector : public std::unary_function<Unit*, bool>
|
||||
struct ManaVoidSelector : public ACORE::unary_function<Unit*, bool>
|
||||
{
|
||||
explicit ManaVoidSelector(WorldObject const* source) : _source(source) { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user