Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Skyfire Namespace Reference

Namespaces

namespace  Achievements
namespace  AreaTable
namespace  Asio
namespace  Auth
namespace  BattlePetPackets
namespace  CombatPackets
namespace  Containers
namespace  Currency
namespace  Database
namespace  Diagnostics
namespace  GameObjects
namespace  Honor
namespace  Maps
namespace  Net
namespace  ObjectAccess
namespace  PetTransport
namespace  PlayerDump
namespace  PlayerPackets
namespace  Rest
namespace  ServerRestartSchedule
namespace  SpellBook
namespace  Spells
namespace  WorldShutdown
namespace  XP

Classes

class  AbsorbAuraOrderPred
class  AchievementChatBuilder
struct  AIRelocationNotifier
class  AllCreaturesOfEntryInRange
class  AllFriendlyCreaturesInGrid
class  AllGameObjectsWithEntryInRange
class  AllWorldObjectsInRange
class  AnyAoETargetUnitInObjectRangeCheck
class  AnyAssistCreatureInRangeCheck
struct  AnyDeadUnitCheck
class  AnyDeadUnitObjectInRangeCheck
class  AnyDeadUnitSpellTargetInRangeCheck
class  AnyFriendlyUnitInObjectRangeCheck
class  AnyGroupedUnitInObjectRangeCheck
class  AnyPlayerInObjectRangeCheck
class  AnyUnfriendlyAttackableVisibleUnitInObjectRangeCheck
class  AnyUnfriendlyNoTotemUnitInObjectRangeCheck
class  AnyUnfriendlyUnitInObjectRangeCheck
class  AnyUnitInObjectRangeCheck
class  AutoPtr
class  Battleground2ChatBuilder
class  BattlegroundChatBuilder
class  CallOfHelpCreatureInRangeDo
struct  CreatureLastSearcher
struct  CreatureListSearcher
struct  CreatureRelocationNotifier
struct  CreatureSearcher
class  CreatureWithDbGUIDCheck
struct  CreatureWorker
class  DatabaseQueue
struct  DelayedUnitRelocation
class  EmoteChatBuilder
class  FriendlyCCedInRange
class  FriendlyMissingBuffInRange
class  Future
class  GameObjectFocusCheck
class  GameObjectInRangeCheck
struct  GameObjectLastSearcher
struct  GameObjectListSearcher
struct  GameObjectSearcher
class  GameObjectWithDbGUIDCheck
struct  GameObjectWorker
struct  GMNoteLocation
struct  GMNoteValidation
struct  GridUpdater
class  HealthPctOrderPred
class  HeightDifferenceCheck
class  LocalizedPacketDo
class  LocalizedPacketListDo
class  LockedQueue
struct  MessageDistDeliverer
class  MonsterChatBuilder
class  MonsterCustomChatBuilder
class  MostHPMissingInRange
class  Mutex
class  NearestAssistCreatureInCreatureRangeCheck
class  NearestAttackableUnitInObjectRangeCheck
class  NearestCreatureEntryWithLiveStateInObjectRangeCheck
class  NearestGameObjectCheck
class  NearestGameObjectEntryInObjectRangeCheck
class  NearestGameObjectFishingHole
class  NearestGameObjectTypeInObjectRangeCheck
class  NearestHostileUnitCheck
class  NearestHostileUnitInAggroRangeCheck
class  NearestHostileUnitInAttackDistanceCheck
class  NearestPlayerInObjectRangeCheck
class  NullMutex
class  ObjectDistanceOrderPred
class  ObjectGUIDCheck
class  ObjectTypeIdCheck
struct  ObjectUpdater
class  PacketLogServer
struct  PacketLogServerSessionInfo
class  PlayerAtMinimumRangeAway
struct  PlayerDistWorker
struct  PlayerLastSearcher
struct  PlayerListSearcher
struct  PlayerRelocationNotifier
struct  PlayerSearcher
struct  PlayerWorker
class  PowerPctOrderPred
struct  ProcessMemoryUsage
class  RespawnDo
class  Runnable
class  Singleton
struct  SystemMemoryUsage
class  Thread
class  ThreadPriority
class  ThreatOrderPred
class  UnitAuraCheck
struct  UnitLastSearcher
struct  UnitListSearcher
struct  UnitSearcher
struct  VisibleChangesNotifier
struct  VisibleNotifier
struct  WorldObjectLastSearcher
struct  WorldObjectListSearcher
struct  WorldObjectSearcher
struct  WorldObjectSpellAreaTargetCheck
struct  WorldObjectSpellConeTargetCheck
struct  WorldObjectSpellNearbyTargetCheck
struct  WorldObjectSpellTargetCheck
struct  WorldObjectSpellTrajTargetCheck
struct  WorldObjectWorker
class  WorldWorldTextBuilder

Typedefs

using RecursiveMutex = std::recursive_mutex
using SharedMutex = std::shared_mutex

Enumerations

enum  PacketLogServerDirection { PACKET_LOG_CLIENT_TO_SERVER , PACKET_LOG_SERVER_TO_CLIENT }
enum  Priority {
  Idle , Lowest , Low , Normal ,
  High , Highest , Realtime
}

Functions

void Assert (char const *file, int line, char const *function, char const *message)
template<class RET_TYPE, int CENTER_VAL>
RET_TYPE Compute (float x, float y, float center_offset, float size)
CellCoord ComputeCellCoord (float x, float y)
CellCoord ComputeCellCoord (float x, float y, float &x_off, float &y_off)
GridCoord ComputeGridCoord (float x, float y)
template<class SPECIFIC_TYPE>
size_t Count (const ContainerMapList< SPECIFIC_TYPE > &elements, SPECIFIC_TYPE *)
template<class SPECIFIC_TYPE, class T>
size_t Count (const ContainerMapList< T > &, SPECIFIC_TYPE *)
template<class SPECIFIC_TYPE, class H, class T>
size_t Count (const ContainerMapList< TypeList< H, T > > &elements, SPECIFIC_TYPE *fake)
template<class SPECIFIC_TYPE, class T>
size_t Count (const ContainerMapList< TypeList< SPECIFIC_TYPE, T > > &elements, SPECIFIC_TYPE *fake)
template<class SPECIFIC_TYPE>
size_t Count (const ContainerMapList< TypeNull > &, SPECIFIC_TYPE *)
void Error (char const *file, int line, char const *function, char const *message)
void Fatal (char const *file, int line, char const *function, char const *message)
std::string FormatGMNoteLocation (GMNoteLocation const &location)
std::string FormatMemorySize (uint64 bytes)
std::string FormatMemoryUsageSummary (ProcessMemoryUsage const &processUsage, SystemMemoryUsage const &systemUsage)
std::string FormatProcessMemoryUsage (ProcessMemoryUsage const &usage)
std::string FormatSystemMemoryUsage (SystemMemoryUsage const &usage)
uint32 GetMSTime ()
uint32 GetMSTimeDiff (uint32 oldMSTime, uint32 newMSTime)
uint32 GetMSTimeDiffToNow (uint32 oldMSTime)
bool GetProcessMemoryUsage (ProcessMemoryUsage &usage)
bool GetSystemMemoryUsage (SystemMemoryUsage &usage)
template<class SPECIFIC_TYPE>
SPECIFIC_TYPE * Insert (ContainerMapList< SPECIFIC_TYPE > &elements, SPECIFIC_TYPE *obj)
template<class SPECIFIC_TYPE, class T>
SPECIFIC_TYPE * Insert (ContainerMapList< T > &, SPECIFIC_TYPE *)
template<class SPECIFIC_TYPE, class H, class T>
SPECIFIC_TYPE * Insert (ContainerMapList< TypeList< H, T > > &elements, SPECIFIC_TYPE *obj)
template<class SPECIFIC_TYPE>
SPECIFIC_TYPE * Insert (ContainerMapList< TypeNull > &, SPECIFIC_TYPE *)
bool IsValidMapCoord (float c)
bool IsValidMapCoord (float x, float y)
bool IsValidMapCoord (float x, float y, float z)
bool IsValidMapCoord (float x, float y, float z, float o)
bool LoadOpenSSLProviders (char const *logFilter)
bool LocalTime (time_t const &time, tm &result)
void NormalizeMapCoord (float &c)
void SleepFor (uint32 milliseconds)
void SleepForMicroseconds (uint32 microseconds)
void SleepForMilliseconds (uint32 milliseconds)
void SleepForSeconds (uint32 seconds)
GMNoteValidation ValidateGMNoteText (std::string const &note)
void Warning (char const *file, int line, char const *function, char const *message)

Variables

constexpr size_t GMNoteMaxLength = 255

Typedef Documentation

◆ RecursiveMutex

using Skyfire::RecursiveMutex = std::recursive_mutex

Definition at line 14 of file Threading.h.

◆ SharedMutex

using Skyfire::SharedMutex = std::shared_mutex

Definition at line 15 of file Threading.h.

Enumeration Type Documentation

◆ PacketLogServerDirection

Enumerator
PACKET_LOG_CLIENT_TO_SERVER 
PACKET_LOG_SERVER_TO_CLIENT 

Definition at line 21 of file PacketLogServer.h.

◆ Priority

Enumerator
Idle 
Lowest 
Low 
Normal 
High 
Highest 
Realtime 

Definition at line 34 of file Threading.h.

Function Documentation

◆ Assert()

DECLSPEC_NORETURN void Skyfire::Assert ( char const * file,
int line,
char const * function,
char const * message )

Definition at line 13 of file Errors.cpp.

◆ Compute()

template<class RET_TYPE, int CENTER_VAL>
RET_TYPE Skyfire::Compute ( float x,
float y,
float center_offset,
float size )
inline

Definition at line 163 of file GridDefines.h.

Referenced by ComputeCellCoord(), and ComputeGridCoord().

◆ ComputeCellCoord() [1/2]

CellCoord Skyfire::ComputeCellCoord ( float x,
float y )
inline

Definition at line 179 of file GridDefines.h.

References CENTER_GRID_CELL_OFFSET, Compute(), and SIZE_OF_GRID_CELL.

Referenced by Map::_FindGameObject(), Map::ActiveObjectsNearGrid(), ObjectAccessor::AddCorpse(), ObjectMgr::AddCreatureToGrid(), ObjectMgr::AddGameobjectToGrid(), Map::AddPlayerToMap(), Map::AddToMap(), Map::AddToMap(), WorldObject::BuildUpdate(), Cell::CalculateCellArea(), Creature::CallAssistance(), Creature::CallForHelp(), Cell::Cell(), boss_felmyst::boss_felmystAI::DespawnSummons(), SmartScript::DoFindFriendlyCC(), SmartScript::DoFindFriendlyMissingBuff(), Creature::DoFleeToGetAssistance(), hyjalAI::DoOverrun(), SmartScript::DoSelectLowestHpFriendly(), SmartScript::FindCreatureNear(), SmartScript::FindGameObjectNear(), Unit::GetAttackableUnitListInRange(), WorldObject::GetCreatureListWithEntryInGrid(), WorldObject::GetGameObjectListWithEntryInGrid(), ChatHandler::GetObjectGlobalyWithGuidOrNearWithDbGuid(), ObjectAccessor::GetObjectInWorld(), ScriptedAI::GetPlayerAtMinimumRange(), misc_commandscript::HandleGPSCommand(), mmaps_commandscript::HandleMmapTestArea(), AuraEffect::HandlePeriodicDummyAuraTick(), misc_commandscript::HandleRespawnCommand(), WorldSession::HandleTextEmoteOpcode(), hyjalAI::HideNearPos(), GameObject::LookupFishingHoleAround(), WorldObject::MonsterSay(), WorldObject::MonsterSay(), WorldObject::MonsterTextEmote(), WorldObject::MonsterYell(), WorldObject::MonsterYell(), ObjectAccessor::RemoveCorpse(), ObjectMgr::RemoveCreatureFromGrid(), ObjectMgr::RemoveGameobjectFromGrid(), hyjalAI::RespawnNearPos(), Map::ScriptsProcess(), Spell::SearchTargets(), Creature::SelectNearestTarget(), Creature::SelectNearestTargetInAttackDistance(), AchievementMgr< T >::SendAchievementEarned(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), GameObject::TriggeringLinkedGameObject(), Skyfire::DelayedUnitRelocation::Visit(), Map::VisitAll(), Map::VisitFirstFound(), Map::VisitGrid(), Map::VisitWorld(), and hyjalAI::WaypointReached().

◆ ComputeCellCoord() [2/2]

CellCoord Skyfire::ComputeCellCoord ( float x,
float y,
float & x_off,
float & y_off )
inline

Definition at line 184 of file GridDefines.h.

References CENTER_GRID_CELL_ID, CENTER_GRID_CELL_OFFSET, and SIZE_OF_GRID_CELL.

◆ ComputeGridCoord()

◆ Count() [1/5]

template<class SPECIFIC_TYPE>
size_t Skyfire::Count ( const ContainerMapList< SPECIFIC_TYPE > & elements,
SPECIFIC_TYPE *  )

◆ Count() [2/5]

template<class SPECIFIC_TYPE, class T>
size_t Skyfire::Count ( const ContainerMapList< T > & ,
SPECIFIC_TYPE *  )

Definition at line 33 of file TypeContainerFunctions.h.

◆ Count() [3/5]

template<class SPECIFIC_TYPE, class H, class T>
size_t Skyfire::Count ( const ContainerMapList< TypeList< H, T > > & elements,
SPECIFIC_TYPE * fake )

Definition at line 43 of file TypeContainerFunctions.h.

References Count().

◆ Count() [4/5]

template<class SPECIFIC_TYPE, class T>
size_t Skyfire::Count ( const ContainerMapList< TypeList< SPECIFIC_TYPE, T > > & elements,
SPECIFIC_TYPE * fake )

Definition at line 38 of file TypeContainerFunctions.h.

References Count().

◆ Count() [5/5]

template<class SPECIFIC_TYPE>
size_t Skyfire::Count ( const ContainerMapList< TypeNull > & ,
SPECIFIC_TYPE *  )

Definition at line 28 of file TypeContainerFunctions.h.

◆ Error()

DECLSPEC_NORETURN void Skyfire::Error ( char const * file,
int line,
char const * function,
char const * message )

Definition at line 30 of file Errors.cpp.

◆ Fatal()

DECLSPEC_NORETURN void Skyfire::Fatal ( char const * file,
int line,
char const * function,
char const * message )

Definition at line 21 of file Errors.cpp.

References SleepForSeconds().

◆ FormatGMNoteLocation()

◆ FormatMemorySize()

std::string Skyfire::FormatMemorySize ( uint64 bytes)

Definition at line 265 of file MemoryUsage.cpp.

Referenced by FormatMemoryUsageSummary().

◆ FormatMemoryUsageSummary()

◆ FormatProcessMemoryUsage()

std::string Skyfire::FormatProcessMemoryUsage ( ProcessMemoryUsage const & usage)

Definition at line 286 of file MemoryUsage.cpp.

References usage().

Referenced by FormatMemoryUsageSummary().

◆ FormatSystemMemoryUsage()

std::string Skyfire::FormatSystemMemoryUsage ( SystemMemoryUsage const & usage)

Definition at line 317 of file MemoryUsage.cpp.

References usage().

◆ GetMSTime()

uint32 Skyfire::GetMSTime ( )
inline

Definition at line 17 of file TimeUtils.h.

Referenced by getMSTime(), and GetMSTimeDiffToNow().

◆ GetMSTimeDiff()

uint32 Skyfire::GetMSTimeDiff ( uint32 oldMSTime,
uint32 newMSTime )
inline

Definition at line 24 of file TimeUtils.h.

Referenced by getMSTimeDiff(), and GetMSTimeDiffToNow().

◆ GetMSTimeDiffToNow()

uint32 Skyfire::GetMSTimeDiffToNow ( uint32 oldMSTime)
inline

Definition at line 32 of file TimeUtils.h.

References GetMSTime(), and GetMSTimeDiff().

Referenced by GetMSTimeDiffToNow().

◆ GetProcessMemoryUsage()

bool Skyfire::GetProcessMemoryUsage ( ProcessMemoryUsage & usage)

Definition at line 49 of file MemoryUsage.cpp.

References usage().

Referenced by server_commandscript::HandleServerInfoCommand().

◆ GetSystemMemoryUsage()

bool Skyfire::GetSystemMemoryUsage ( SystemMemoryUsage & usage)

Definition at line 108 of file MemoryUsage.cpp.

References usage().

Referenced by server_commandscript::HandleServerInfoCommand().

◆ Insert() [1/4]

template<class SPECIFIC_TYPE>
SPECIFIC_TYPE * Skyfire::Insert ( ContainerMapList< SPECIFIC_TYPE > & elements,
SPECIFIC_TYPE * obj )

◆ Insert() [2/4]

template<class SPECIFIC_TYPE, class T>
SPECIFIC_TYPE * Skyfire::Insert ( ContainerMapList< T > & ,
SPECIFIC_TYPE *  )

Definition at line 62 of file TypeContainerFunctions.h.

◆ Insert() [3/4]

template<class SPECIFIC_TYPE, class H, class T>
SPECIFIC_TYPE * Skyfire::Insert ( ContainerMapList< TypeList< H, T > > & elements,
SPECIFIC_TYPE * obj )

Definition at line 68 of file TypeContainerFunctions.h.

References Insert().

◆ Insert() [4/4]

template<class SPECIFIC_TYPE>
SPECIFIC_TYPE * Skyfire::Insert ( ContainerMapList< TypeNull > & ,
SPECIFIC_TYPE *  )

Definition at line 56 of file TypeContainerFunctions.h.

◆ IsValidMapCoord() [1/4]

◆ IsValidMapCoord() [2/4]

bool Skyfire::IsValidMapCoord ( float x,
float y )
inline

Definition at line 209 of file GridDefines.h.

References IsValidMapCoord().

◆ IsValidMapCoord() [3/4]

bool Skyfire::IsValidMapCoord ( float x,
float y,
float z )
inline

Definition at line 214 of file GridDefines.h.

References finite, and IsValidMapCoord().

◆ IsValidMapCoord() [4/4]

bool Skyfire::IsValidMapCoord ( float x,
float y,
float z,
float o )
inline

Definition at line 219 of file GridDefines.h.

References finite, and IsValidMapCoord().

◆ LoadOpenSSLProviders()

bool Skyfire::LoadOpenSSLProviders ( char const * logFilter)

Definition at line 59 of file OpenSSLProviders.cpp.

References SF_LOG_INFO.

Referenced by main().

◆ LocalTime()

◆ NormalizeMapCoord()

◆ SleepFor()

void Skyfire::SleepFor ( uint32 milliseconds)
inline

Definition at line 52 of file TimeUtils.h.

References SleepForMilliseconds().

◆ SleepForMicroseconds()

void Skyfire::SleepForMicroseconds ( uint32 microseconds)
inline

Definition at line 37 of file TimeUtils.h.

Referenced by WorldSocket::HandleAuthSession().

◆ SleepForMilliseconds()

void Skyfire::SleepForMilliseconds ( uint32 milliseconds)
inline

Definition at line 42 of file TimeUtils.h.

Referenced by main(), WorldRunnable::Run(), Skyfire::Thread::Sleep(), and SleepFor().

◆ SleepForSeconds()

void Skyfire::SleepForSeconds ( uint32 seconds)
inline

Definition at line 47 of file TimeUtils.h.

Referenced by Fatal(), and FreezeDetectorRunnable::Run().

◆ ValidateGMNoteText()

Skyfire::GMNoteValidation Skyfire::ValidateGMNoteText ( std::string const & note)

Definition at line 11 of file GMNoteUtils.cpp.

References GMNoteMaxLength.

Referenced by gm_commandscript::HandleGMNoteCommand().

◆ Warning()

void Skyfire::Warning ( char const * file,
int line,
char const * function,
char const * message )

Definition at line 38 of file Errors.cpp.

Variable Documentation

◆ GMNoteMaxLength

size_t Skyfire::GMNoteMaxLength = 255
constexpr

Definition at line 32 of file GMNoteUtils.h.

Referenced by ValidateGMNoteText().