*Merge.
--HG-- branch : trunk
This commit is contained in:
+26
-1
@@ -33,6 +33,7 @@
|
|||||||
#include "SharedDefines.h"
|
#include "SharedDefines.h"
|
||||||
#include "GameSystem/GridRefManager.h"
|
#include "GameSystem/GridRefManager.h"
|
||||||
#include "MapRefManager.h"
|
#include "MapRefManager.h"
|
||||||
|
#include "mersennetwister/MersenneTwister.h"
|
||||||
|
|
||||||
#include <bitset>
|
#include <bitset>
|
||||||
#include <list>
|
#include <list>
|
||||||
@@ -410,10 +411,34 @@ class MANGOS_DLL_SPEC Map : public GridRefManager<NGridType>, public MaNGOS::Obj
|
|||||||
template<class NOTIFIER> void VisitAll(const float &x, const float &y, float radius, NOTIFIER ¬ifier);
|
template<class NOTIFIER> void VisitAll(const float &x, const float &y, float radius, NOTIFIER ¬ifier);
|
||||||
template<class NOTIFIER> void VisitWorld(const float &x, const float &y, float radius, NOTIFIER ¬ifier);
|
template<class NOTIFIER> void VisitWorld(const float &x, const float &y, float radius, NOTIFIER ¬ifier);
|
||||||
template<class NOTIFIER> void VisitGrid(const float &x, const float &y, float radius, NOTIFIER ¬ifier);
|
template<class NOTIFIER> void VisitGrid(const float &x, const float &y, float radius, NOTIFIER ¬ifier);
|
||||||
|
CreatureGroupHolderType CreatureGroupHolder;
|
||||||
|
MTRand mtRand;
|
||||||
|
|
||||||
TempSummon *SummonCreature(uint32 entry, float x, float y, float z, float angle, SummonPropertiesEntry const *properties = NULL, uint32 duration = 0, Unit *summoner = NULL);
|
TempSummon *SummonCreature(uint32 entry, float x, float y, float z, float angle, SummonPropertiesEntry const *properties = NULL, uint32 duration = 0, Unit *summoner = NULL);
|
||||||
|
int32 irand(int32 min, int32 max)
|
||||||
|
{
|
||||||
|
return int32 (mtRand.randInt(max - min)) + min;
|
||||||
|
}
|
||||||
|
|
||||||
CreatureGroupHolderType CreatureGroupHolder;
|
uint32 urand(uint32 min, uint32 max)
|
||||||
|
{
|
||||||
|
return mtRand.randInt(max - min) + min;
|
||||||
|
}
|
||||||
|
|
||||||
|
int32 rand32()
|
||||||
|
{
|
||||||
|
return mtRand.randInt();
|
||||||
|
}
|
||||||
|
|
||||||
|
double rand_norm(void)
|
||||||
|
{
|
||||||
|
return mtRand.randExc();
|
||||||
|
}
|
||||||
|
|
||||||
|
double rand_chance(void)
|
||||||
|
{
|
||||||
|
return mtRand.randExc(100.0);
|
||||||
|
}
|
||||||
|
|
||||||
Creature* GetCreature(uint64 guid);
|
Creature* GetCreature(uint64 guid);
|
||||||
GameObject* GetGameObject(uint64 guid);
|
GameObject* GetGameObject(uint64 guid);
|
||||||
|
|||||||
Reference in New Issue
Block a user