[Core] Remove obsolete directive

This commit is contained in:
Antz 2015-01-21 15:38:09 +00:00 committed by Antz
parent deb9a167ea
commit 2d06f70da2
57 changed files with 139 additions and 139 deletions

View file

@ -34,7 +34,7 @@ template<class OBJECT>
* @brief * @brief
* *
*/ */
class MANGOS_DLL_SPEC GridReference : public Reference<GridRefManager<OBJECT>, OBJECT> class GridReference : public Reference<GridRefManager<OBJECT>, OBJECT>
{ {
protected: protected:

View file

@ -32,7 +32,7 @@ namespace MaNGOS
std::atexit((void (*)())p); std::atexit((void (*)())p);
} }
void MANGOS_DLL_SPEC at_exit(void (*func)()) void at_exit(void (*func)())
{ {
external_wrapper((void*)func); external_wrapper((void*)func);
} }

View file

@ -41,7 +41,7 @@ namespace MaNGOS
* *
* @param (func)() * @param (func)()
*/ */
void MANGOS_DLL_SPEC at_exit(void (*func)()); void at_exit(void (*func)());
template<class T> template<class T>
/** /**

View file

@ -28,7 +28,7 @@
#include "MovementGenerator.h" #include "MovementGenerator.h"
template<class T> template<class T>
class MANGOS_DLL_SPEC ConfusedMovementGenerator class ConfusedMovementGenerator
: public MovementGeneratorMedium< T, ConfusedMovementGenerator<T> > : public MovementGeneratorMedium< T, ConfusedMovementGenerator<T> >
{ {
public: public:

View file

@ -29,7 +29,7 @@
#include "ObjectGuid.h" #include "ObjectGuid.h"
template<class T> template<class T>
class MANGOS_DLL_SPEC FleeingMovementGenerator class FleeingMovementGenerator
: public MovementGeneratorMedium< T, FleeingMovementGenerator<T> > : public MovementGeneratorMedium< T, FleeingMovementGenerator<T> >
{ {
public: public:
@ -51,7 +51,7 @@ class MANGOS_DLL_SPEC FleeingMovementGenerator
TimeTracker i_nextCheckTime; TimeTracker i_nextCheckTime;
}; };
class MANGOS_DLL_SPEC TimedFleeingMovementGenerator class TimedFleeingMovementGenerator
: public FleeingMovementGenerator<Creature> : public FleeingMovementGenerator<Creature>
{ {
public: public:

View file

@ -30,10 +30,10 @@
class Creature; class Creature;
template < class T > template < class T >
class MANGOS_DLL_SPEC HomeMovementGenerator; class HomeMovementGenerator;
template <> template <>
class MANGOS_DLL_SPEC HomeMovementGenerator<Creature> class HomeMovementGenerator<Creature>
: public MovementGeneratorMedium< Creature, HomeMovementGenerator<Creature> > : public MovementGeneratorMedium< Creature, HomeMovementGenerator<Creature> >
{ {
public: public:

View file

@ -27,7 +27,7 @@
#include "MovementGenerator.h" #include "MovementGenerator.h"
class MANGOS_DLL_SPEC IdleMovementGenerator : public MovementGenerator class IdleMovementGenerator : public MovementGenerator
{ {
public: public:
@ -41,7 +41,7 @@ class MANGOS_DLL_SPEC IdleMovementGenerator : public MovementGenerator
extern IdleMovementGenerator si_idleMovement; extern IdleMovementGenerator si_idleMovement;
class MANGOS_DLL_SPEC DistractMovementGenerator : public MovementGenerator class DistractMovementGenerator : public MovementGenerator
{ {
public: public:
explicit DistractMovementGenerator(uint32 timer) : m_timer(timer) {} explicit DistractMovementGenerator(uint32 timer) : m_timer(timer) {}
@ -57,7 +57,7 @@ class MANGOS_DLL_SPEC DistractMovementGenerator : public MovementGenerator
uint32 m_timer; uint32 m_timer;
}; };
class MANGOS_DLL_SPEC AssistanceDistractMovementGenerator : public DistractMovementGenerator class AssistanceDistractMovementGenerator : public DistractMovementGenerator
{ {
public: public:
AssistanceDistractMovementGenerator(uint32 timer) : AssistanceDistractMovementGenerator(uint32 timer) :

View file

@ -64,7 +64,7 @@ enum MMCleanFlag
MMCF_RESET = 2 // Flag if need top()->Reset() MMCF_RESET = 2 // Flag if need top()->Reset()
}; };
class MANGOS_DLL_SPEC MotionMaster : private std::stack<MovementGenerator*> class MotionMaster : private std::stack<MovementGenerator*>
{ {
private: private:
typedef std::stack<MovementGenerator*> Impl; typedef std::stack<MovementGenerator*> Impl;

View file

@ -37,7 +37,7 @@ class Unit;
class Creature; class Creature;
class Player; class Player;
class MANGOS_DLL_SPEC MovementGenerator class MovementGenerator
{ {
public: public:
virtual ~MovementGenerator(); virtual ~MovementGenerator();
@ -70,7 +70,7 @@ class MANGOS_DLL_SPEC MovementGenerator
}; };
template<class T, class D> template<class T, class D>
class MANGOS_DLL_SPEC MovementGeneratorMedium : public MovementGenerator class MovementGeneratorMedium : public MovementGenerator
{ {
public: public:
void Initialize(Unit& u) override void Initialize(Unit& u) override

View file

@ -28,7 +28,7 @@
#include "MovementGenerator.h" #include "MovementGenerator.h"
template<class T> template<class T>
class MANGOS_DLL_SPEC PointMovementGenerator class PointMovementGenerator
: public MovementGeneratorMedium< T, PointMovementGenerator<T> > : public MovementGeneratorMedium< T, PointMovementGenerator<T> >
{ {
public: public:
@ -52,7 +52,7 @@ class MANGOS_DLL_SPEC PointMovementGenerator
bool m_generatePath; bool m_generatePath;
}; };
class MANGOS_DLL_SPEC AssistanceMovementGenerator class AssistanceMovementGenerator
: public PointMovementGenerator<Creature> : public PointMovementGenerator<Creature>
{ {
public: public:
@ -78,7 +78,7 @@ class EffectMovementGenerator : public MovementGenerator
uint32 m_Id; uint32 m_Id;
}; };
class MANGOS_DLL_SPEC FlyOrLandMovementGenerator : public PointMovementGenerator<Creature> class FlyOrLandMovementGenerator : public PointMovementGenerator<Creature>
{ {
public: public:
FlyOrLandMovementGenerator(uint32 _id, float _x, float _y, float _z, bool liftOff) : FlyOrLandMovementGenerator(uint32 _id, float _x, float _y, float _z, bool liftOff) :

View file

@ -28,7 +28,7 @@
#include "MovementGenerator.h" #include "MovementGenerator.h"
template<class T> template<class T>
class MANGOS_DLL_SPEC RandomMovementGenerator class RandomMovementGenerator
: public MovementGeneratorMedium< T, RandomMovementGenerator<T> > : public MovementGeneratorMedium< T, RandomMovementGenerator<T> >
{ {
public: public:

View file

@ -30,7 +30,7 @@
class PathFinder; class PathFinder;
class MANGOS_DLL_SPEC TargetedMovementGeneratorBase class TargetedMovementGeneratorBase
{ {
public: public:
TargetedMovementGeneratorBase(Unit& target) { i_target.link(&target, this); } TargetedMovementGeneratorBase(Unit& target) { i_target.link(&target, this); }
@ -40,7 +40,7 @@ class MANGOS_DLL_SPEC TargetedMovementGeneratorBase
}; };
template<class T, typename D> template<class T, typename D>
class MANGOS_DLL_SPEC TargetedMovementGeneratorMedium class TargetedMovementGeneratorMedium
: public MovementGeneratorMedium< T, D >, public TargetedMovementGeneratorBase : public MovementGeneratorMedium< T, D >, public TargetedMovementGeneratorBase
{ {
protected: protected:
@ -78,7 +78,7 @@ class MANGOS_DLL_SPEC TargetedMovementGeneratorMedium
}; };
template<class T> template<class T>
class MANGOS_DLL_SPEC ChaseMovementGenerator : public TargetedMovementGeneratorMedium<T, ChaseMovementGenerator<T> > class ChaseMovementGenerator : public TargetedMovementGeneratorMedium<T, ChaseMovementGenerator<T> >
{ {
public: public:
ChaseMovementGenerator(Unit& target, float offset, float angle) ChaseMovementGenerator(Unit& target, float offset, float angle)
@ -103,7 +103,7 @@ class MANGOS_DLL_SPEC ChaseMovementGenerator : public TargetedMovementGeneratorM
}; };
template<class T> template<class T>
class MANGOS_DLL_SPEC FollowMovementGenerator : public TargetedMovementGeneratorMedium<T, FollowMovementGenerator<T> > class FollowMovementGenerator : public TargetedMovementGeneratorMedium<T, FollowMovementGenerator<T> >
{ {
public: public:
FollowMovementGenerator(Unit& target) FollowMovementGenerator(Unit& target)

View file

@ -42,7 +42,7 @@
#define STOP_TIME_FOR_PLAYER (3 * MINUTE * IN_MILLISECONDS) // 3 Minutes #define STOP_TIME_FOR_PLAYER (3 * MINUTE * IN_MILLISECONDS) // 3 Minutes
template<class T, class P> template<class T, class P>
class MANGOS_DLL_SPEC PathMovementBase class PathMovementBase
{ {
public: public:
PathMovementBase() : i_currentNode(0) {} PathMovementBase() : i_currentNode(0) {}
@ -63,10 +63,10 @@ class MANGOS_DLL_SPEC PathMovementBase
*/ */
template<class T> template<class T>
class MANGOS_DLL_SPEC WaypointMovementGenerator; class WaypointMovementGenerator;
template<> template<>
class MANGOS_DLL_SPEC WaypointMovementGenerator<Creature> class WaypointMovementGenerator<Creature>
: public MovementGeneratorMedium< Creature, WaypointMovementGenerator<Creature> >, : public MovementGeneratorMedium< Creature, WaypointMovementGenerator<Creature> >,
public PathMovementBase<Creature, WaypointPath const*> public PathMovementBase<Creature, WaypointPath const*>
{ {
@ -110,7 +110,7 @@ class MANGOS_DLL_SPEC WaypointMovementGenerator<Creature>
/** FlightPathMovementGenerator generates movement of the player for the paths /** FlightPathMovementGenerator generates movement of the player for the paths
* and hence generates ground and activities for the player. * and hence generates ground and activities for the player.
*/ */
class MANGOS_DLL_SPEC FlightPathMovementGenerator class FlightPathMovementGenerator
: public MovementGeneratorMedium< Player, FlightPathMovementGenerator >, : public MovementGeneratorMedium< Player, FlightPathMovementGenerator >,
public PathMovementBase<Player, TaxiPathNodeList const*> public PathMovementBase<Player, TaxiPathNodeList const*>
{ {

View file

@ -35,7 +35,7 @@ class WorldPacket;
class Player; class Player;
/// Camera - object-receiver. Receives broadcast packets from nearby worldobjects, object visibility changes and sends them to client /// Camera - object-receiver. Receives broadcast packets from nearby worldobjects, object visibility changes and sends them to client
class MANGOS_DLL_SPEC Camera class Camera
{ {
friend class ViewPoint; friend class ViewPoint;
public: public:
@ -83,7 +83,7 @@ class MANGOS_DLL_SPEC Camera
}; };
/// Object-observer, notifies farsight object state to cameras that attached to it /// Object-observer, notifies farsight object state to cameras that attached to it
class MANGOS_DLL_SPEC ViewPoint class ViewPoint
{ {
friend class Camera; friend class Camera;

View file

@ -478,7 +478,7 @@ enum TemporaryFactionFlags // Used at real fact
TEMPFACTION_ALL, TEMPFACTION_ALL,
}; };
class MANGOS_DLL_SPEC Creature : public Unit class Creature : public Unit
{ {
CreatureAI* i_AI; CreatureAI* i_AI;

View file

@ -97,7 +97,7 @@ enum AIEventType
AI_EVENT_CUSTOM_F = 1005, AI_EVENT_CUSTOM_F = 1005,
}; };
class MANGOS_DLL_SPEC CreatureAI class CreatureAI
{ {
public: public:
explicit CreatureAI(Creature* creature) : explicit CreatureAI(Creature* creature) :

View file

@ -615,7 +615,7 @@ struct CreatureEventAIHolder
bool UpdateRepeatTimer(Creature* creature, uint32 repeatMin, uint32 repeatMax); bool UpdateRepeatTimer(Creature* creature, uint32 repeatMin, uint32 repeatMax);
}; };
class MANGOS_DLL_SPEC CreatureEventAI : public CreatureAI class CreatureEventAI : public CreatureAI
{ {
public: public:
explicit CreatureEventAI(Creature* c); explicit CreatureEventAI(Creature* c);

View file

@ -638,7 +638,7 @@ struct GameObjectDisplayInfoEntry;
#define GO_ANIMPROGRESS_DEFAULT 0xFF #define GO_ANIMPROGRESS_DEFAULT 0xFF
class MANGOS_DLL_SPEC GameObject : public WorldObject class GameObject : public WorldObject
{ {
public: public:
explicit GameObject(); explicit GameObject();

View file

@ -283,7 +283,7 @@ struct ItemRequiredTarget
bool ItemCanGoIntoBag(ItemPrototype const* proto, ItemPrototype const* pBagProto); bool ItemCanGoIntoBag(ItemPrototype const* proto, ItemPrototype const* pBagProto);
class MANGOS_DLL_SPEC Item : public Object class Item : public Object
{ {
public: public:
static Item* CreateItem(uint32 item, uint32 count, Player const* player = NULL, uint32 randomPropertyId = 0); static Item* CreateItem(uint32 item, uint32 count, Player const* player = NULL, uint32 randomPropertyId = 0);

View file

@ -125,7 +125,7 @@ class WorldUpdateCounter
uint32 m_tmStart; uint32 m_tmStart;
}; };
class MANGOS_DLL_SPEC Object class Object
{ {
public: public:
virtual ~Object(); virtual ~Object();
@ -413,7 +413,7 @@ class MANGOS_DLL_SPEC Object
struct WorldObjectChangeAccumulator; struct WorldObjectChangeAccumulator;
class MANGOS_DLL_SPEC WorldObject : public Object class WorldObject : public Object
{ {
friend struct WorldObjectChangeAccumulator; friend struct WorldObjectChangeAccumulator;
@ -421,7 +421,7 @@ class MANGOS_DLL_SPEC WorldObject : public Object
// class is used to manipulate with WorldUpdateCounter // class is used to manipulate with WorldUpdateCounter
// it is needed in order to get time diff between two object's Update() calls // it is needed in order to get time diff between two object's Update() calls
class MANGOS_DLL_SPEC UpdateHelper class UpdateHelper
{ {
public: public:
explicit UpdateHelper(WorldObject* obj) : m_obj(obj) {} explicit UpdateHelper(WorldObject* obj) : m_obj(obj) {}

View file

@ -95,7 +95,7 @@ struct PackedGuidReader
#define NUM_GUID_BYTES sizeof(uint64) #define NUM_GUID_BYTES sizeof(uint64)
class MANGOS_DLL_SPEC ObjectGuid class ObjectGuid
{ {
public: // constructors public: // constructors
ObjectGuid() : m_guid(0) {} ObjectGuid() : m_guid(0) {}

View file

@ -494,7 +494,7 @@ typedef std::vector<HotfixInfo> HotfixData;
bool normalizePlayerName(std::string& name); bool normalizePlayerName(std::string& name);
struct MANGOS_DLL_SPEC LanguageDesc struct LanguageDesc
{ {
Language lang_id; Language lang_id;
uint32 spell_id; uint32 spell_id;
@ -502,7 +502,7 @@ struct MANGOS_DLL_SPEC LanguageDesc
}; };
extern LanguageDesc lang_description[LANGUAGES_COUNT]; extern LanguageDesc lang_description[LANGUAGES_COUNT];
MANGOS_DLL_SPEC LanguageDesc const* GetLanguageDescByID(uint32 lang); LanguageDesc const* GetLanguageDescByID(uint32 lang);
class PlayerDumpReader; class PlayerDumpReader;
@ -1301,12 +1301,12 @@ class ObjectMgr
#define sObjectMgr MaNGOS::Singleton<ObjectMgr>::Instance() #define sObjectMgr MaNGOS::Singleton<ObjectMgr>::Instance()
/// generic text function /// generic text function
MANGOS_DLL_SPEC bool DoDisplayText(WorldObject* source, int32 entry, Unit const* target = NULL); bool DoDisplayText(WorldObject* source, int32 entry, Unit const* target = NULL);
// scripting access functions // scripting access functions
MANGOS_DLL_SPEC bool LoadMangosStrings(DatabaseType& db, char const* table, int32 start_value = MAX_CREATURE_AI_TEXT_STRING_ID, int32 end_value = std::numeric_limits<int32>::min(), bool extra_content = false); bool LoadMangosStrings(DatabaseType& db, char const* table, int32 start_value = MAX_CREATURE_AI_TEXT_STRING_ID, int32 end_value = std::numeric_limits<int32>::min(), bool extra_content = false);
MANGOS_DLL_SPEC CreatureInfo const* GetCreatureTemplateStore(uint32 entry); CreatureInfo const* GetCreatureTemplateStore(uint32 entry);
MANGOS_DLL_SPEC Quest const* GetQuestTemplateStore(uint32 entry); Quest const* GetQuestTemplateStore(uint32 entry);
MANGOS_DLL_SPEC MangosStringLocale const* GetMangosStringData(int32 entry); MangosStringLocale const* GetMangosStringData(int32 entry);
#endif #endif

View file

@ -133,7 +133,7 @@ typedef std::vector<uint32> AutoSpellList;
class Player; class Player;
class MANGOS_DLL_SPEC Pet : public Creature class Pet : public Creature
{ {
public: public:
explicit Pet(PetType type = MAX_PET_TYPE); explicit Pet(PetType type = MAX_PET_TYPE);

View file

@ -881,7 +881,7 @@ enum PlayerRestState
REST_STATE_RAF_LINKED = 0x04 // Exact use unknown REST_STATE_RAF_LINKED = 0x04 // Exact use unknown
}; };
class MANGOS_DLL_SPEC PlayerTaxi class PlayerTaxi
{ {
public: public:
PlayerTaxi(); PlayerTaxi();
@ -1015,7 +1015,7 @@ class TradeData
ObjectGuid m_items[TRADE_SLOT_COUNT]; // traded itmes from m_player side including non-traded slot ObjectGuid m_items[TRADE_SLOT_COUNT]; // traded itmes from m_player side including non-traded slot
}; };
class MANGOS_DLL_SPEC Player : public Unit class Player : public Unit
{ {
friend class WorldSession; friend class WorldSession;
friend void Item::AddToUpdateQueueOf(Player* player); friend void Item::AddToUpdateQueueOf(Player* player);

View file

@ -36,7 +36,7 @@ class TemporarySummon : public Creature
void Update(uint32 update_diff, uint32 time) override; void Update(uint32 update_diff, uint32 time) override;
void Summon(TempSummonType type, uint32 lifetime); void Summon(TempSummonType type, uint32 lifetime);
void MANGOS_DLL_SPEC UnSummon(); void UnSummon();
void SaveToDB(); void SaveToDB();
ObjectGuid const& GetSummonerGuid() const { return m_summoner ; } ObjectGuid const& GetSummonerGuid() const { return m_summoner ; }
Unit* GetSummoner() const { return ObjectAccessor::GetUnit(*this, m_summoner); } Unit* GetSummoner() const { return ObjectAccessor::GetUnit(*this, m_summoner); }

View file

@ -1241,7 +1241,7 @@ struct SpellProcEventEntry; // used only private
#define MAX_OBJECT_SLOT 5 #define MAX_OBJECT_SLOT 5
class MANGOS_DLL_SPEC Unit : public WorldObject class Unit : public WorldObject
{ {
public: public:
typedef std::set<Unit*> AttackerSet; typedef std::set<Unit*> AttackerSet;

View file

@ -67,7 +67,7 @@ enum UnitThreatEventType
//============================================================== //==============================================================
class MANGOS_DLL_SPEC UnitBaseEvent class UnitBaseEvent
{ {
private: private:
uint32 iType; uint32 iType;
@ -81,7 +81,7 @@ class MANGOS_DLL_SPEC UnitBaseEvent
//============================================================== //==============================================================
class MANGOS_DLL_SPEC ThreatRefStatusChangeEvent : public UnitBaseEvent class ThreatRefStatusChangeEvent : public UnitBaseEvent
{ {
private: private:
HostileReference* iHostileReference; HostileReference* iHostileReference;
@ -118,7 +118,7 @@ class MANGOS_DLL_SPEC ThreatRefStatusChangeEvent : public UnitBaseEvent
//============================================================== //==============================================================
class MANGOS_DLL_SPEC ThreatManagerEvent : public ThreatRefStatusChangeEvent class ThreatManagerEvent : public ThreatRefStatusChangeEvent
{ {
private: private:
ThreatContainer* iThreatContainer; ThreatContainer* iThreatContainer;

View file

@ -30,7 +30,7 @@
class TargetedMovementGeneratorBase; class TargetedMovementGeneratorBase;
class Unit; class Unit;
class MANGOS_DLL_SPEC FollowerReference : public Reference<Unit, TargetedMovementGeneratorBase> class FollowerReference : public Reference<Unit, TargetedMovementGeneratorBase>
{ {
protected: protected:
void targetObjectBuildLink() override; void targetObjectBuildLink() override;

View file

@ -30,7 +30,7 @@
class Group; class Group;
class Player; class Player;
class MANGOS_DLL_SPEC GroupReference : public Reference<Group, Player> class GroupReference : public Reference<Group, Player>
{ {
protected: protected:
uint8 iSubGroup; uint8 iSubGroup;

View file

@ -28,7 +28,7 @@
#include "Utilities/LinkedReference/Reference.h" #include "Utilities/LinkedReference/Reference.h"
#include "Map.h" #include "Map.h"
class MANGOS_DLL_SPEC MapReference : public Reference<Map, Player> class MapReference : public Reference<Map, Player>
{ {
protected: protected:
void targetObjectBuildLink() override void targetObjectBuildLink() override

View file

@ -52,7 +52,7 @@ class ThreatCalcHelper
}; };
//============================================================== //==============================================================
class MANGOS_DLL_SPEC HostileReference : public Reference<Unit, ThreatManager> class HostileReference : public Reference<Unit, ThreatManager>
{ {
public: public:
HostileReference(Unit* pUnit, ThreatManager* pThreatManager, float pThreat); HostileReference(Unit* pUnit, ThreatManager* pThreatManager, float pThreat);
@ -142,7 +142,7 @@ class ThreatManager;
typedef std::list<HostileReference*> ThreatList; typedef std::list<HostileReference*> ThreatList;
class MANGOS_DLL_SPEC ThreatContainer class ThreatContainer
{ {
private: private:
ThreatList iThreatList; ThreatList iThreatList;
@ -180,7 +180,7 @@ class MANGOS_DLL_SPEC ThreatContainer
//================================================= //=================================================
class MANGOS_DLL_SPEC ThreatManager class ThreatManager
{ {
public: public:
friend class HostileReference; friend class HostileReference;

View file

@ -1217,10 +1217,10 @@ float GetCurrencyPrecision(uint32 currencyId)
} }
// script support functions // script support functions
MANGOS_DLL_SPEC DBCStorage <SoundEntriesEntry> const* GetSoundEntriesStore() { return &sSoundEntriesStore; } DBCStorage <SoundEntriesEntry> const* GetSoundEntriesStore() { return &sSoundEntriesStore; }
MANGOS_DLL_SPEC DBCStorage <SpellEntry> const* GetSpellStore() { return &sSpellStore; } DBCStorage <SpellEntry> const* GetSpellStore() { return &sSpellStore; }
MANGOS_DLL_SPEC DBCStorage <SpellRangeEntry> const* GetSpellRangeStore() { return &sSpellRangeStore; } DBCStorage <SpellRangeEntry> const* GetSpellRangeStore() { return &sSpellRangeStore; }
MANGOS_DLL_SPEC DBCStorage <FactionEntry> const* GetFactionStore() { return &sFactionStore; } DBCStorage <FactionEntry> const* GetFactionStore() { return &sFactionStore; }
MANGOS_DLL_SPEC DBCStorage <CreatureDisplayInfoEntry> const* GetCreatureDisplayStore() { return &sCreatureDisplayInfoStore; } DBCStorage <CreatureDisplayInfoEntry> const* GetCreatureDisplayStore() { return &sCreatureDisplayInfoStore; }
MANGOS_DLL_SPEC DBCStorage <EmotesEntry> const* GetEmotesStore() { return &sEmotesStore; } DBCStorage <EmotesEntry> const* GetEmotesStore() { return &sEmotesStore; }
MANGOS_DLL_SPEC DBCStorage <EmotesTextEntry> const* GetEmotesTextStore() { return &sEmotesTextStore; } DBCStorage <EmotesTextEntry> const* GetEmotesTextStore() { return &sEmotesTextStore; }

View file

@ -48,8 +48,8 @@ uint32 GetAreaFlagByMapId(uint32 mapid);
WMOAreaTableEntry const* GetWMOAreaTableEntryByTripple(int32 rootid, int32 adtid, int32 groupid); WMOAreaTableEntry const* GetWMOAreaTableEntryByTripple(int32 rootid, int32 adtid, int32 groupid);
MANGOS_DLL_SPEC AreaTableEntry const* GetAreaEntryByAreaID(uint32 area_id); AreaTableEntry const* GetAreaEntryByAreaID(uint32 area_id);
MANGOS_DLL_SPEC AreaTableEntry const* GetAreaEntryByAreaFlagAndMap(uint32 area_flag, uint32 map_id); AreaTableEntry const* GetAreaEntryByAreaFlagAndMap(uint32 area_flag, uint32 map_id);
uint32 GetVirtualMapForMapAndZone(uint32 mapid, uint32 zoneId); uint32 GetVirtualMapForMapAndZone(uint32 mapid, uint32 zoneId);
@ -105,7 +105,7 @@ bool IsPointInAreaTriggerZone(AreaTriggerEntry const* atEntry, uint32 mapid, flo
PvPDifficultyEntry const* GetBattlegroundBracketByLevel(uint32 mapid, uint32 level); PvPDifficultyEntry const* GetBattlegroundBracketByLevel(uint32 mapid, uint32 level);
PvPDifficultyEntry const* GetBattlegroundBracketById(uint32 mapid, BattleGroundBracketId id); PvPDifficultyEntry const* GetBattlegroundBracketById(uint32 mapid, BattleGroundBracketId id);
MANGOS_DLL_SPEC uint32 GetCreatureModelRace(uint32 model_id); uint32 GetCreatureModelRace(uint32 model_id);
float GetCurrencyPrecision(uint32 currencyId); float GetCurrencyPrecision(uint32 currencyId);
@ -259,12 +259,12 @@ extern DBCStorage <WorldPvPAreaEntry> sWorldPvPAreaStore;
void LoadDBCStores(const std::string& dataPath); void LoadDBCStores(const std::string& dataPath);
// script support functions // script support functions
MANGOS_DLL_SPEC DBCStorage <SoundEntriesEntry> const* GetSoundEntriesStore(); DBCStorage <SoundEntriesEntry> const* GetSoundEntriesStore();
MANGOS_DLL_SPEC DBCStorage <SpellEntry> const* GetSpellStore(); DBCStorage <SpellEntry> const* GetSpellStore();
MANGOS_DLL_SPEC DBCStorage <SpellRangeEntry> const* GetSpellRangeStore(); DBCStorage <SpellRangeEntry> const* GetSpellRangeStore();
MANGOS_DLL_SPEC DBCStorage <FactionEntry> const* GetFactionStore(); DBCStorage <FactionEntry> const* GetFactionStore();
MANGOS_DLL_SPEC DBCStorage <CreatureDisplayInfoEntry> const* GetCreatureDisplayStore(); DBCStorage <CreatureDisplayInfoEntry> const* GetCreatureDisplayStore();
MANGOS_DLL_SPEC DBCStorage <EmotesEntry> const* GetEmotesStore(); DBCStorage <EmotesEntry> const* GetEmotesStore();
MANGOS_DLL_SPEC DBCStorage <EmotesTextEntry> const* GetEmotesTextStore(); DBCStorage <EmotesTextEntry> const* GetEmotesTextStore();
#endif #endif

View file

@ -1931,7 +1931,7 @@ struct SpellTotemsEntry
}; };
// Spell.dbc // Spell.dbc
struct MANGOS_DLL_SPEC SpellEntry struct SpellEntry
{ {
uint32 Id; // 0 m_ID uint32 Id; // 0 m_ID
uint32 Attributes; // 1 m_attribute uint32 Attributes; // 1 m_attribute

View file

@ -233,7 +233,7 @@ class WorldSessionFilter : public PacketFilter
}; };
/// Player session in the World /// Player session in the World
class MANGOS_DLL_SPEC WorldSession class WorldSession
{ {
friend class CharacterHandler; friend class CharacterHandler;

View file

@ -69,7 +69,7 @@ enum ChatCommandSearchResult
CHAT_COMMAND_UNKNOWN_SUBCOMMAND, // command found but some level subcommand not find in subcommand list CHAT_COMMAND_UNKNOWN_SUBCOMMAND, // command found but some level subcommand not find in subcommand list
}; };
class MANGOS_DLL_SPEC ChatHandler class ChatHandler
{ {
public: public:
explicit ChatHandler(WorldSession* session); explicit ChatHandler(WorldSession* session);

View file

@ -1033,7 +1033,7 @@ bool GameEventMgr::IsActiveHoliday(HolidayIds id)
return false; return false;
} }
MANGOS_DLL_SPEC bool IsHolidayActive(HolidayIds id) bool IsHolidayActive(HolidayIds id)
{ {
return sGameEventMgr.IsActiveHoliday(id); return sGameEventMgr.IsActiveHoliday(id);
} }

View file

@ -136,6 +136,6 @@ class GameEventMgr
#define sGameEventMgr MaNGOS::Singleton<GameEventMgr>::Instance() #define sGameEventMgr MaNGOS::Singleton<GameEventMgr>::Instance()
MANGOS_DLL_SPEC bool IsHolidayActive(HolidayIds id); bool IsHolidayActive(HolidayIds id);
#endif #endif

View file

@ -161,7 +161,7 @@ struct QuestMenuItem
typedef std::vector<QuestMenuItem> QuestMenuItemList; typedef std::vector<QuestMenuItem> QuestMenuItemList;
class MANGOS_DLL_SPEC GossipMenu class GossipMenu
{ {
public: public:
explicit GossipMenu(WorldSession* session); explicit GossipMenu(WorldSession* session);
@ -249,7 +249,7 @@ class QuestMenu
QuestMenuItemList m_qItems; QuestMenuItemList m_qItems;
}; };
class MANGOS_DLL_SPEC PlayerMenu class PlayerMenu
{ {
private: private:
GossipMenu mGossipMenu; GossipMenu mGossipMenu;

View file

@ -191,7 +191,7 @@ class GridMap
}; };
template<typename Countable> template<typename Countable>
class MANGOS_DLL_SPEC Referencable class Referencable
{ {
public: public:
Referencable() { m_count = 0; } Referencable() { m_count = 0; }
@ -217,7 +217,7 @@ typedef ACE_Atomic_Op<ACE_Thread_Mutex, long> AtomicLong;
#define DEFAULT_WATER_SEARCH 50.0f // default search distance to case detection water level #define DEFAULT_WATER_SEARCH 50.0f // default search distance to case detection water level
// class for sharing and managin GridMap objects // class for sharing and managin GridMap objects
class MANGOS_DLL_SPEC TerrainInfo : public Referencable<AtomicLong> class TerrainInfo : public Referencable<AtomicLong>
{ {
public: public:
TerrainInfo(uint32 mapid); TerrainInfo(uint32 mapid);

View file

@ -214,7 +214,7 @@ struct InstanceGroupBind
/** request member stats checken **/ /** request member stats checken **/
/** todo: uninvite people that not accepted invite **/ /** todo: uninvite people that not accepted invite **/
class MANGOS_DLL_SPEC Group class Group
{ {
public: public:
struct MemberSlot struct MemberSlot

View file

@ -55,7 +55,7 @@ enum InstanceConditionIDs // Suggested values
INSTANCE_CONDITION_ID_ULDUAR = 33113, INSTANCE_CONDITION_ID_ULDUAR = 33113,
}; };
class MANGOS_DLL_SPEC InstanceData class InstanceData
{ {
public: public:

View file

@ -99,7 +99,7 @@ enum LevelRequirementVsMode
#define MIN_UNLOAD_DELAY 1 // immediate unload #define MIN_UNLOAD_DELAY 1 // immediate unload
class MANGOS_DLL_SPEC Map : public GridRefManager<NGridType> class Map : public GridRefManager<NGridType>
{ {
friend class MapReference; friend class MapReference;
friend class ObjectGridLoader; friend class ObjectGridLoader;
@ -384,7 +384,7 @@ class MANGOS_DLL_SPEC Map : public GridRefManager<NGridType>
DynamicMapTree m_dyn_tree; DynamicMapTree m_dyn_tree;
}; };
class MANGOS_DLL_SPEC WorldMap : public Map class WorldMap : public Map
{ {
private: private:
using Map::GetPersistentState; // hide in subclass for overwrite using Map::GetPersistentState; // hide in subclass for overwrite
@ -396,7 +396,7 @@ class MANGOS_DLL_SPEC WorldMap : public Map
WorldPersistentState* GetPersistanceState() const; WorldPersistentState* GetPersistanceState() const;
}; };
class MANGOS_DLL_SPEC DungeonMap : public Map class DungeonMap : public Map
{ {
private: private:
using Map::GetPersistentState; // hide in subclass for overwrite using Map::GetPersistentState; // hide in subclass for overwrite
@ -421,7 +421,7 @@ class MANGOS_DLL_SPEC DungeonMap : public Map
bool m_unloadWhenEmpty; bool m_unloadWhenEmpty;
}; };
class MANGOS_DLL_SPEC BattleGroundMap : public Map class BattleGroundMap : public Map
{ {
private: private:
using Map::GetPersistentState; // hide in subclass for overwrite using Map::GetPersistentState; // hide in subclass for overwrite

View file

@ -582,10 +582,10 @@ bool StartEvents_Event(Map* map, uint32 id, Object* source, Object* target, bool
#define sScriptMgr MaNGOS::Singleton<ScriptMgr>::Instance() #define sScriptMgr MaNGOS::Singleton<ScriptMgr>::Instance()
MANGOS_DLL_SPEC uint32 GetAreaTriggerScriptId(uint32 triggerId); uint32 GetAreaTriggerScriptId(uint32 triggerId);
MANGOS_DLL_SPEC uint32 GetEventIdScriptId(uint32 eventId); uint32 GetEventIdScriptId(uint32 eventId);
MANGOS_DLL_SPEC uint32 GetScriptId(const char* name); uint32 GetScriptId(const char* name);
MANGOS_DLL_SPEC char const* GetScriptName(uint32 id); char const* GetScriptName(uint32 id);
MANGOS_DLL_SPEC uint32 GetScriptIdsCount(); uint32 GetScriptIdsCount();
#endif #endif

View file

@ -433,7 +433,7 @@ class Spell
bool CheckTarget(Unit* target, SpellEffectIndex eff); bool CheckTarget(Unit* target, SpellEffectIndex eff);
bool CanAutoCast(Unit* target); bool CanAutoCast(Unit* target);
static void MANGOS_DLL_SPEC SendCastResult(Player* caster, SpellEntry const* spellInfo, uint8 cast_count, SpellCastResult result, bool isPetCastResult = false); static void SendCastResult(Player* caster, SpellEntry const* spellInfo, uint8 cast_count, SpellCastResult result, bool isPetCastResult = false);
void SendCastResult(SpellCastResult result); void SendCastResult(SpellCastResult result);
void SendSpellStart(); void SendSpellStart();
void SendSpellGo(); void SendSpellGo();

View file

@ -80,7 +80,7 @@ class Aura;
// internal helper // internal helper
struct ReapplyAffectedPassiveAurasHelper; struct ReapplyAffectedPassiveAurasHelper;
class MANGOS_DLL_SPEC SpellAuraHolder class SpellAuraHolder
{ {
public: public:
SpellAuraHolder(SpellEntry const* spellproto, Unit* target, WorldObject* caster, Item* castItem); SpellAuraHolder(SpellEntry const* spellproto, Unit* target, WorldObject* caster, Item* castItem);
@ -243,7 +243,7 @@ typedef void(Aura::*pAuraHandler)(bool Apply, bool Real);
// each setting object update field code line moved under if(Real) check is significant mangos speedup, and less server->client data sends // each setting object update field code line moved under if(Real) check is significant mangos speedup, and less server->client data sends
// each packet sending code moved under if(Real) check is _large_ mangos speedup, and lot less server->client data sends // each packet sending code moved under if(Real) check is _large_ mangos speedup, and lot less server->client data sends
class MANGOS_DLL_SPEC Aura class Aura
{ {
friend struct ReapplyAffectedPassiveAurasHelper; friend struct ReapplyAffectedPassiveAurasHelper;
friend Aura* CreateAura(SpellEntry const* spellproto, SpellEffectIndex eff, int32* currentBasePoints, SpellAuraHolder* holder, Unit* target, Unit* caster, Item* castItem); friend Aura* CreateAura(SpellEntry const* spellproto, SpellEffectIndex eff, int32* currentBasePoints, SpellAuraHolder* holder, Unit* target, Unit* caster, Item* castItem);
@ -538,7 +538,7 @@ class MANGOS_DLL_SPEC Aura
void ReapplyAffectedPassiveAuras(Unit* target, bool owner_mode); void ReapplyAffectedPassiveAuras(Unit* target, bool owner_mode);
}; };
class MANGOS_DLL_SPEC AreaAura : public Aura class AreaAura : public Aura
{ {
public: public:
AreaAura(SpellEntry const* spellproto, SpellEffectIndex eff, int32* currentBasePoints, SpellAuraHolder* holder, Unit* target, Unit* caster = NULL, Item* castItem = NULL); AreaAura(SpellEntry const* spellproto, SpellEffectIndex eff, int32* currentBasePoints, SpellAuraHolder* holder, Unit* target, Unit* caster = NULL, Item* castItem = NULL);
@ -550,7 +550,7 @@ class MANGOS_DLL_SPEC AreaAura : public Aura
AreaAuraType m_areaAuraType; AreaAuraType m_areaAuraType;
}; };
class MANGOS_DLL_SPEC PersistentAreaAura : public Aura class PersistentAreaAura : public Aura
{ {
public: public:
PersistentAreaAura(SpellEntry const* spellproto, SpellEffectIndex eff, int32* currentBasePoints, SpellAuraHolder* holder, Unit* target, Unit* caster = NULL, Item* castItem = NULL); PersistentAreaAura(SpellEntry const* spellproto, SpellEffectIndex eff, int32* currentBasePoints, SpellAuraHolder* holder, Unit* target, Unit* caster = NULL, Item* castItem = NULL);
@ -559,7 +559,7 @@ class MANGOS_DLL_SPEC PersistentAreaAura : public Aura
void Update(uint32 diff) override; void Update(uint32 diff) override;
}; };
class MANGOS_DLL_SPEC SingleEnemyTargetAura : public Aura class SingleEnemyTargetAura : public Aura
{ {
friend Aura* CreateAura(SpellEntry const* spellproto, SpellEffectIndex eff, int32* currentBasePoints, SpellAuraHolder* holder, Unit* target, Unit* caster, Item* castItem); friend Aura* CreateAura(SpellEntry const* spellproto, SpellEffectIndex eff, int32* currentBasePoints, SpellAuraHolder* holder, Unit* target, Unit* caster, Item* castItem);

View file

@ -43,7 +43,7 @@ namespace Movement
* @brief Initializes and launches spline movement * @brief Initializes and launches spline movement
* *
*/ */
class MANGOS_DLL_SPEC MoveSplineInit class MoveSplineInit
{ {
public: public:

View file

@ -31,7 +31,7 @@
class ACE_Configuration_Heap; class ACE_Configuration_Heap;
class MANGOS_DLL_SPEC Config class Config
{ {
public: public:

View file

@ -44,7 +44,7 @@ class Database;
#define MAX_QUERY_LEN (32*1024) #define MAX_QUERY_LEN (32*1024)
// //
class MANGOS_DLL_SPEC SqlConnection class SqlConnection
{ {
public: public:
virtual ~SqlConnection() {} virtual ~SqlConnection() {}
@ -106,7 +106,7 @@ class MANGOS_DLL_SPEC SqlConnection
StmtHolder m_holder; StmtHolder m_holder;
}; };
class MANGOS_DLL_SPEC Database class Database
{ {
public: public:
virtual ~Database(); virtual ~Database();
@ -243,7 +243,7 @@ class MANGOS_DLL_SPEC Database
// factory method to create SqlDelayThread objects // factory method to create SqlDelayThread objects
virtual SqlDelayThread* CreateDelayThread(); virtual SqlDelayThread* CreateDelayThread();
class MANGOS_DLL_SPEC TransHelper class TransHelper
{ {
public: public:
TransHelper() : m_pTrans(NULL) {} TransHelper() : m_pTrans(NULL) {}

View file

@ -41,7 +41,7 @@
#endif #endif
// MySQL prepared statement class // MySQL prepared statement class
class MANGOS_DLL_SPEC MySqlPreparedStatement : public SqlPreparedStatement class MySqlPreparedStatement : public SqlPreparedStatement
{ {
public: public:
MySqlPreparedStatement(const std::string& fmt, SqlConnection& conn, MYSQL* mysql); MySqlPreparedStatement(const std::string& fmt, SqlConnection& conn, MYSQL* mysql);
@ -72,7 +72,7 @@ class MANGOS_DLL_SPEC MySqlPreparedStatement : public SqlPreparedStatement
MYSQL_RES* m_pResultMetadata; MYSQL_RES* m_pResultMetadata;
}; };
class MANGOS_DLL_SPEC MySQLConnection : public SqlConnection class MySQLConnection : public SqlConnection
{ {
public: public:
MySQLConnection(Database& db) : SqlConnection(db), mMysql(NULL) {} MySQLConnection(Database& db) : SqlConnection(db), mMysql(NULL) {}
@ -102,7 +102,7 @@ class MANGOS_DLL_SPEC MySQLConnection : public SqlConnection
MYSQL* mMysql; MYSQL* mMysql;
}; };
class MANGOS_DLL_SPEC DatabaseMysql : public Database class DatabaseMysql : public Database
{ {
friend class MaNGOS::OperatorNew<DatabaseMysql>; friend class MaNGOS::OperatorNew<DatabaseMysql>;

View file

@ -40,7 +40,7 @@
#include <libpq-fe.h> #include <libpq-fe.h>
#endif #endif
class MANGOS_DLL_SPEC PostgreSQLConnection : public SqlConnection class PostgreSQLConnection : public SqlConnection
{ {
public: public:
PostgreSQLConnection() : mPGconn(NULL) {} PostgreSQLConnection() : mPGconn(NULL) {}
@ -65,7 +65,7 @@ class MANGOS_DLL_SPEC PostgreSQLConnection : public SqlConnection
PGconn* mPGconn; PGconn* mPGconn;
}; };
class MANGOS_DLL_SPEC DatabasePostgre : public Database class DatabasePostgre : public Database
{ {
friend class MaNGOS::OperatorNew<DatabasePostgre>; friend class MaNGOS::OperatorNew<DatabasePostgre>;

View file

@ -29,7 +29,7 @@
#include "Errors.h" #include "Errors.h"
#include "Field.h" #include "Field.h"
class MANGOS_DLL_SPEC QueryResult class QueryResult
{ {
public: public:
QueryResult(uint64 rowCount, uint32 fieldCount) QueryResult(uint64 rowCount, uint32 fieldCount)
@ -54,7 +54,7 @@ class MANGOS_DLL_SPEC QueryResult
typedef std::vector<std::string> QueryFieldNames; typedef std::vector<std::string> QueryFieldNames;
class MANGOS_DLL_SPEC QueryNamedResult class QueryNamedResult
{ {
public: public:
explicit QueryNamedResult(QueryResult* query, QueryFieldNames const& names) : mQuery(query), mFieldNames(names) {} explicit QueryNamedResult(QueryResult* query, QueryFieldNames const& names) : mQuery(query), mFieldNames(names) {}

View file

@ -68,7 +68,7 @@ enum SqlStmtFieldType
// templates might be the best choice here // templates might be the best choice here
// but I didn't have time to play with them // but I didn't have time to play with them
class MANGOS_DLL_SPEC SqlStmtFieldData class SqlStmtFieldData
{ {
public: public:
SqlStmtFieldData() : m_type(FIELD_NONE) { m_binaryData.ui64 = 0; } SqlStmtFieldData() : m_type(FIELD_NONE) { m_binaryData.ui64 = 0; }
@ -145,7 +145,7 @@ template<> inline void SqlStmtFieldData::set(const char* val) { m_type = FIELD_S
class SqlStatement; class SqlStatement;
// prepared statement executor // prepared statement executor
class MANGOS_DLL_SPEC SqlStmtParameters class SqlStmtParameters
{ {
public: public:
typedef std::vector<SqlStmtFieldData> ParameterContainer; typedef std::vector<SqlStmtFieldData> ParameterContainer;
@ -194,7 +194,7 @@ class SqlStatementID
}; };
// statement index // statement index
class MANGOS_DLL_SPEC SqlStatement class SqlStatement
{ {
public: public:
~SqlStatement() { delete m_pParams; } ~SqlStatement() { delete m_pParams; }
@ -301,7 +301,7 @@ class MANGOS_DLL_SPEC SqlStatement
}; };
// base prepared statement class // base prepared statement class
class MANGOS_DLL_SPEC SqlPreparedStatement class SqlPreparedStatement
{ {
public: public:
virtual ~SqlPreparedStatement() {} virtual ~SqlPreparedStatement() {}
@ -336,7 +336,7 @@ class MANGOS_DLL_SPEC SqlPreparedStatement
}; };
// prepared statements via plain SQL string requests // prepared statements via plain SQL string requests
class MANGOS_DLL_SPEC SqlPlainPreparedStatement : public SqlPreparedStatement class SqlPlainPreparedStatement : public SqlPreparedStatement
{ {
public: public:
SqlPlainPreparedStatement(const std::string& fmt, SqlConnection& conn); SqlPlainPreparedStatement(const std::string& fmt, SqlConnection& conn);

View file

@ -481,43 +481,43 @@ class Log : public MaNGOS::Singleton<Log, MaNGOS::ClassLevelLockable<Log, ACE_Th
* *
* @param str... * @param str...
*/ */
void MANGOS_DLL_SPEC outstring_log(const char* str, ...) ATTR_PRINTF(1, 2); void outstring_log(const char* str, ...) ATTR_PRINTF(1, 2);
/** /**
* @brief * @brief
* *
* @param str... * @param str...
*/ */
void MANGOS_DLL_SPEC detail_log(const char* str, ...) ATTR_PRINTF(1, 2); void detail_log(const char* str, ...) ATTR_PRINTF(1, 2);
/** /**
* @brief * @brief
* *
* @param str... * @param str...
*/ */
void MANGOS_DLL_SPEC debug_log(const char* str, ...) ATTR_PRINTF(1, 2); void debug_log(const char* str, ...) ATTR_PRINTF(1, 2);
/** /**
* @brief * @brief
* *
* @param str... * @param str...
*/ */
void MANGOS_DLL_SPEC error_log(const char* str, ...) ATTR_PRINTF(1, 2); void error_log(const char* str, ...) ATTR_PRINTF(1, 2);
/** /**
* @brief * @brief
* *
* @param str... * @param str...
*/ */
void MANGOS_DLL_SPEC error_db_log(const char* str, ...) ATTR_PRINTF(1, 2); void error_db_log(const char* str, ...) ATTR_PRINTF(1, 2);
/** /**
* @brief * @brief
* *
* @param fname * @param fname
* @param libName * @param libName
*/ */
void MANGOS_DLL_SPEC setScriptLibraryErrorFile(char const* fname, char const* libName); void setScriptLibraryErrorFile(char const* fname, char const* libName);
/** /**
* @brief * @brief
* *
* @param str... * @param str...
*/ */
void MANGOS_DLL_SPEC script_error_log(const char* str, ...) ATTR_PRINTF(1, 2); void script_error_log(const char* str, ...) ATTR_PRINTF(1, 2);
#endif #endif

View file

@ -31,7 +31,7 @@
* @brief * @brief
* *
*/ */
class MANGOS_DLL_SPEC BarGoLink class BarGoLink
{ {
public: public:
/** /**

View file

@ -68,19 +68,19 @@ class WorldTimer
* *
* @return uint32 * @return uint32
*/ */
static MANGOS_DLL_SPEC uint32 tickTime(); static uint32 tickTime();
/** /**
* @brief get previous world tick time * @brief get previous world tick time
* *
* @return uint32 * @return uint32
*/ */
static MANGOS_DLL_SPEC uint32 tickPrevTime(); static uint32 tickPrevTime();
/** /**
* @brief tick world timer * @brief tick world timer
* *
* @return uint32 * @return uint32
*/ */
static MANGOS_DLL_SPEC uint32 tick(); static uint32 tick();
private: private:
/** /**
@ -103,8 +103,8 @@ class WorldTimer
*/ */
static uint32 getMSTime_internal(bool savetime = false); static uint32 getMSTime_internal(bool savetime = false);
static MANGOS_DLL_SPEC uint32 m_iTime; /**< TODO */ static uint32 m_iTime; /**< TODO */
static MANGOS_DLL_SPEC uint32 m_iPrevTime; /**< TODO */ static uint32 m_iPrevTime; /**< TODO */
}; };
/** /**

View file

@ -114,7 +114,7 @@ inline uint32 secsToTimeBitFields(time_t secs)
* @param max * @param max
* @return int32 * @return int32
*/ */
MANGOS_DLL_SPEC int32 irand(int32 min, int32 max); int32 irand(int32 min, int32 max);
/** /**
* @brief Return a random number in the range min..max (inclusive). * @brief Return a random number in the range min..max (inclusive).
@ -126,7 +126,7 @@ MANGOS_DLL_SPEC int32 irand(int32 min, int32 max);
* @param max * @param max
* @return uint32 * @return uint32
*/ */
MANGOS_DLL_SPEC uint32 urand(uint32 min, uint32 max); uint32 urand(uint32 min, uint32 max);
/** /**
* @brief Return a random number in the range min..max (inclusive). * @brief Return a random number in the range min..max (inclusive).
@ -135,14 +135,14 @@ MANGOS_DLL_SPEC uint32 urand(uint32 min, uint32 max);
* @param max * @param max
* @return float * @return float
*/ */
MANGOS_DLL_SPEC float frand(float min, float max); float frand(float min, float max);
/** /**
* @brief Return a random number in the range 0 .. RAND32_MAX. * @brief Return a random number in the range 0 .. RAND32_MAX.
* *
* @return int32 * @return int32
*/ */
MANGOS_DLL_SPEC int32 rand32(); int32 rand32();
/** /**
* @brief Return a random double from 0.0 to 1.0 (exclusive). * @brief Return a random double from 0.0 to 1.0 (exclusive).
@ -153,14 +153,14 @@ MANGOS_DLL_SPEC int32 rand32();
* *
* @return double * @return double
*/ */
MANGOS_DLL_SPEC double rand_norm(void); double rand_norm(void);
/** /**
* @brief * @brief
* *
* @return float * @return float
*/ */
MANGOS_DLL_SPEC float rand_norm_f(void); float rand_norm_f(void);
/** /**
* @brief Return a random double from 0.0 to 99.9999999999999. * @brief Return a random double from 0.0 to 99.9999999999999.
@ -171,14 +171,14 @@ MANGOS_DLL_SPEC float rand_norm_f(void);
* *
* @return double * @return double
*/ */
MANGOS_DLL_SPEC double rand_chance(void); double rand_chance(void);
/** /**
* @brief * @brief
* *
* @return float * @return float
*/ */
MANGOS_DLL_SPEC float rand_chance_f(void); float rand_chance_f(void);
/** /**
* @brief Return true if a random roll gets above the given chance * @brief Return true if a random roll gets above the given chance