AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
IWorld Class Referenceabstract

#include "IWorld.h"

Inheritance diagram for IWorld:
World WorldMock

Public Member Functions

virtual ~IWorld ()=default
 
virtual WorldSessionFindSession (uint32 id) const =0
 
virtual WorldSessionFindOfflineSession (uint32 id) const =0
 
virtual WorldSessionFindOfflineSessionForCharacterGUID (ObjectGuid::LowType guidLow) const =0
 
virtual void AddSession (WorldSession *s)=0
 
virtual bool KickSession (uint32 id)=0
 
virtual void UpdateMaxSessionCounters ()=0
 
virtual const SessionMapGetAllSessions () const =0
 
virtual uint32 GetActiveAndQueuedSessionCount () const =0
 
virtual uint32 GetActiveSessionCount () const =0
 
virtual uint32 GetQueuedSessionCount () const =0
 
virtual uint32 GetMaxQueuedSessionCount () const =0
 
virtual uint32 GetMaxActiveSessionCount () const =0
 
virtual uint32 GetPlayerCount () const =0
 
virtual uint32 GetMaxPlayerCount () const =0
 
virtual void IncreasePlayerCount ()=0
 
virtual void DecreasePlayerCount ()=0
 
virtual PlayerFindPlayerInZone (uint32 zone)=0
 
virtual bool IsClosed () const =0
 
virtual void SetClosed (bool val)=0
 
virtual AccountTypes GetPlayerSecurityLimit () const =0
 
virtual void SetPlayerSecurityLimit (AccountTypes sec)=0
 
virtual void LoadDBAllowedSecurityLevel ()=0
 
virtual void SetPlayerAmountLimit (uint32 limit)=0
 
virtual uint32 GetPlayerAmountLimit () const =0
 
virtual void AddQueuedPlayer (WorldSession *)=0
 
virtual bool RemoveQueuedPlayer (WorldSession *session)=0
 
virtual int32 GetQueuePos (WorldSession *)=0
 
virtual bool HasRecentlyDisconnected (WorldSession *)=0
 
virtual bool getAllowMovement () const =0
 
virtual void SetAllowMovement (bool allow)=0
 
virtual void SetNewCharString (std::string const &str)=0
 
virtual std::string const & GetNewCharString () const =0
 
virtual LocaleConstant GetDefaultDbcLocale () const =0
 
virtual std::string const & GetDataPath () const =0
 
virtual Seconds GetNextDailyQuestsResetTime () const =0
 
virtual Seconds GetNextWeeklyQuestsResetTime () const =0
 
virtual Seconds GetNextRandomBGResetTime () const =0
 
virtual uint16 GetConfigMaxSkillValue () const =0
 
virtual void SetInitialWorldSettings ()=0
 
virtual void LoadConfigSettings (bool reload=false)=0
 
virtual void SendGlobalMessage (WorldPacket const *packet, WorldSession *self=nullptr, TeamId teamId=TEAM_NEUTRAL)=0
 
virtual void SendGlobalGMMessage (WorldPacket const *packet, WorldSession *self=nullptr, TeamId teamId=TEAM_NEUTRAL)=0
 
virtual bool SendZoneMessage (uint32 zone, WorldPacket const *packet, WorldSession *self=nullptr, TeamId teamId=TEAM_NEUTRAL)=0
 
virtual void SendZoneText (uint32 zone, const char *text, WorldSession *self=nullptr, TeamId teamId=TEAM_NEUTRAL)=0
 
virtual void SendServerMessage (ServerMessageType messageID, std::string stringParam="", Player *player=nullptr)=0
 
virtual bool IsShuttingDown () const =0
 
virtual uint32 GetShutDownTimeLeft () const =0
 
virtual void ShutdownServ (uint32 time, uint32 options, uint8 exitcode, const std::string &reason=std::string())=0
 
virtual void ShutdownCancel ()=0
 
virtual void ShutdownMsg (bool show=false, Player *player=nullptr, const std::string &reason=std::string())=0
 
virtual void Update (uint32 diff)=0
 
virtual void UpdateSessions (uint32 diff)=0
 
virtual void setRate (Rates rate, float value)=0
 
virtual float getRate (Rates rate) const =0
 
virtual void setBoolConfig (WorldBoolConfigs index, bool value)=0
 
virtual bool getBoolConfig (WorldBoolConfigs index) const =0
 
virtual void setFloatConfig (WorldFloatConfigs index, float value)=0
 
virtual float getFloatConfig (WorldFloatConfigs index) const =0
 
virtual void setIntConfig (WorldIntConfigs index, uint32 value)=0
 
virtual uint32 getIntConfig (WorldIntConfigs index) const =0
 
virtual void setWorldState (uint32 index, uint64 value)=0
 
virtual uint64 getWorldState (uint32 index) const =0
 
virtual void LoadWorldStates ()=0
 
virtual bool IsPvPRealm () const =0
 
virtual bool IsFFAPvPRealm () const =0
 
virtual void KickAll ()=0
 
virtual void KickAllLess (AccountTypes sec)=0
 
virtual uint32 GetNextWhoListUpdateDelaySecs ()=0
 
virtual void ProcessCliCommands ()=0
 
virtual void QueueCliCommand (CliCommandHolder *commandHolder)=0
 
virtual void ForceGameEventUpdate ()=0
 
virtual void UpdateRealmCharCount (uint32 accid)=0
 
virtual LocaleConstant GetAvailableDbcLocale (LocaleConstant locale) const =0
 
virtual void LoadDBVersion ()=0
 
virtual char const * GetDBVersion () const =0
 
virtual void UpdateAreaDependentAuras ()=0
 
virtual uint32 GetCleaningFlags () const =0
 
virtual void SetCleaningFlags (uint32 flags)=0
 
virtual void ResetEventSeasonalQuests (uint16 event_id)=0
 
virtual std::string const & GetRealmName () const =0
 
virtual void SetRealmName (std::string name)=0
 
virtual void RemoveOldCorpses ()=0
 
virtual void DoForAllOnlinePlayers (std::function< void(Player *)> exec)=0
 

Detailed Description

Constructor & Destructor Documentation

◆ ~IWorld()

virtual IWorld::~IWorld ( )
virtualdefault

Member Function Documentation

◆ AddQueuedPlayer()

virtual void IWorld::AddQueuedPlayer ( WorldSession )
pure virtual

Implemented in World.

◆ AddSession()

virtual void IWorld::AddSession ( WorldSession s)
pure virtual

Implemented in World.

◆ DecreasePlayerCount()

virtual void IWorld::DecreasePlayerCount ( )
pure virtual

Implemented in World.

◆ DoForAllOnlinePlayers()

virtual void IWorld::DoForAllOnlinePlayers ( std::function< void(Player *)>  exec)
pure virtual

Implemented in World.

◆ FindOfflineSession()

virtual WorldSession * IWorld::FindOfflineSession ( uint32  id) const
pure virtual

Implemented in World.

◆ FindOfflineSessionForCharacterGUID()

virtual WorldSession * IWorld::FindOfflineSessionForCharacterGUID ( ObjectGuid::LowType  guidLow) const
pure virtual

Implemented in World.

◆ FindPlayerInZone()

virtual Player * IWorld::FindPlayerInZone ( uint32  zone)
pure virtual

Implemented in World.

◆ FindSession()

virtual WorldSession * IWorld::FindSession ( uint32  id) const
pure virtual

Implemented in World.

◆ ForceGameEventUpdate()

virtual void IWorld::ForceGameEventUpdate ( )
pure virtual

Implemented in World.

◆ GetActiveAndQueuedSessionCount()

virtual uint32 IWorld::GetActiveAndQueuedSessionCount ( ) const
pure virtual

Implemented in World.

◆ GetActiveSessionCount()

virtual uint32 IWorld::GetActiveSessionCount ( ) const
pure virtual

Implemented in World.

◆ getAllowMovement()

virtual bool IWorld::getAllowMovement ( ) const
pure virtual

Implemented in World.

◆ GetAllSessions()

virtual const SessionMap & IWorld::GetAllSessions ( ) const
pure virtual

Implemented in World.

◆ GetAvailableDbcLocale()

virtual LocaleConstant IWorld::GetAvailableDbcLocale ( LocaleConstant  locale) const
pure virtual

Implemented in World.

◆ getBoolConfig()

virtual bool IWorld::getBoolConfig ( WorldBoolConfigs  index) const
pure virtual

Implemented in World.

◆ GetCleaningFlags()

virtual uint32 IWorld::GetCleaningFlags ( ) const
pure virtual

Implemented in World.

◆ GetConfigMaxSkillValue()

virtual uint16 IWorld::GetConfigMaxSkillValue ( ) const
pure virtual

Implemented in World.

◆ GetDataPath()

virtual std::string const & IWorld::GetDataPath ( ) const
pure virtual

Implemented in World.

◆ GetDBVersion()

virtual char const * IWorld::GetDBVersion ( ) const
pure virtual

Implemented in World.

◆ GetDefaultDbcLocale()

virtual LocaleConstant IWorld::GetDefaultDbcLocale ( ) const
pure virtual

Implemented in World.

◆ getFloatConfig()

virtual float IWorld::getFloatConfig ( WorldFloatConfigs  index) const
pure virtual

Implemented in World.

◆ getIntConfig()

virtual uint32 IWorld::getIntConfig ( WorldIntConfigs  index) const
pure virtual

Implemented in World.

◆ GetMaxActiveSessionCount()

virtual uint32 IWorld::GetMaxActiveSessionCount ( ) const
pure virtual

Implemented in World.

◆ GetMaxPlayerCount()

virtual uint32 IWorld::GetMaxPlayerCount ( ) const
pure virtual

Implemented in World.

◆ GetMaxQueuedSessionCount()

virtual uint32 IWorld::GetMaxQueuedSessionCount ( ) const
pure virtual

Implemented in World.

◆ GetNewCharString()

virtual std::string const & IWorld::GetNewCharString ( ) const
pure virtual

Implemented in World.

◆ GetNextDailyQuestsResetTime()

virtual Seconds IWorld::GetNextDailyQuestsResetTime ( ) const
pure virtual

Implemented in World.

◆ GetNextRandomBGResetTime()

virtual Seconds IWorld::GetNextRandomBGResetTime ( ) const
pure virtual

Implemented in World.

◆ GetNextWeeklyQuestsResetTime()

virtual Seconds IWorld::GetNextWeeklyQuestsResetTime ( ) const
pure virtual

Implemented in World.

◆ GetNextWhoListUpdateDelaySecs()

virtual uint32 IWorld::GetNextWhoListUpdateDelaySecs ( )
pure virtual

Implemented in World.

◆ GetPlayerAmountLimit()

virtual uint32 IWorld::GetPlayerAmountLimit ( ) const
pure virtual

Implemented in World.

◆ GetPlayerCount()

virtual uint32 IWorld::GetPlayerCount ( ) const
pure virtual

Implemented in World.

◆ GetPlayerSecurityLimit()

virtual AccountTypes IWorld::GetPlayerSecurityLimit ( ) const
pure virtual

Implemented in World.

◆ GetQueuedSessionCount()

virtual uint32 IWorld::GetQueuedSessionCount ( ) const
pure virtual

Implemented in World.

◆ GetQueuePos()

virtual int32 IWorld::GetQueuePos ( WorldSession )
pure virtual

Implemented in World.

◆ getRate()

virtual float IWorld::getRate ( Rates  rate) const
pure virtual

Implemented in World.

◆ GetRealmName()

virtual std::string const & IWorld::GetRealmName ( ) const
pure virtual

Implemented in World.

◆ GetShutDownTimeLeft()

virtual uint32 IWorld::GetShutDownTimeLeft ( ) const
pure virtual

Implemented in World.

◆ getWorldState()

virtual uint64 IWorld::getWorldState ( uint32  index) const
pure virtual

Implemented in World.

◆ HasRecentlyDisconnected()

virtual bool IWorld::HasRecentlyDisconnected ( WorldSession )
pure virtual

Implemented in World.

◆ IncreasePlayerCount()

virtual void IWorld::IncreasePlayerCount ( )
pure virtual

Implemented in World.

◆ IsClosed()

virtual bool IWorld::IsClosed ( ) const
pure virtual

Implemented in World.

◆ IsFFAPvPRealm()

virtual bool IWorld::IsFFAPvPRealm ( ) const
pure virtual

Implemented in World.

◆ IsPvPRealm()

virtual bool IWorld::IsPvPRealm ( ) const
pure virtual

Implemented in World.

◆ IsShuttingDown()

virtual bool IWorld::IsShuttingDown ( ) const
pure virtual

Implemented in World.

◆ KickAll()

virtual void IWorld::KickAll ( )
pure virtual

Implemented in World.

◆ KickAllLess()

virtual void IWorld::KickAllLess ( AccountTypes  sec)
pure virtual

Implemented in World.

◆ KickSession()

virtual bool IWorld::KickSession ( uint32  id)
pure virtual

Implemented in World.

◆ LoadConfigSettings()

virtual void IWorld::LoadConfigSettings ( bool  reload = false)
pure virtual

Implemented in World.

◆ LoadDBAllowedSecurityLevel()

virtual void IWorld::LoadDBAllowedSecurityLevel ( )
pure virtual

Implemented in World.

◆ LoadDBVersion()

virtual void IWorld::LoadDBVersion ( )
pure virtual

Implemented in World.

◆ LoadWorldStates()

virtual void IWorld::LoadWorldStates ( )
pure virtual

Implemented in World.

◆ ProcessCliCommands()

virtual void IWorld::ProcessCliCommands ( )
pure virtual

Implemented in World.

◆ QueueCliCommand()

virtual void IWorld::QueueCliCommand ( CliCommandHolder commandHolder)
pure virtual

Implemented in World.

◆ RemoveOldCorpses()

virtual void IWorld::RemoveOldCorpses ( )
pure virtual

Implemented in World.

◆ RemoveQueuedPlayer()

virtual bool IWorld::RemoveQueuedPlayer ( WorldSession session)
pure virtual

Implemented in World.

◆ ResetEventSeasonalQuests()

virtual void IWorld::ResetEventSeasonalQuests ( uint16  event_id)
pure virtual

Implemented in World.

◆ SendGlobalGMMessage()

virtual void IWorld::SendGlobalGMMessage ( WorldPacket const *  packet,
WorldSession self = nullptr,
TeamId  teamId = TEAM_NEUTRAL 
)
pure virtual

Implemented in World.

◆ SendGlobalMessage()

virtual void IWorld::SendGlobalMessage ( WorldPacket const *  packet,
WorldSession self = nullptr,
TeamId  teamId = TEAM_NEUTRAL 
)
pure virtual

Implemented in World.

◆ SendServerMessage()

virtual void IWorld::SendServerMessage ( ServerMessageType  messageID,
std::string  stringParam = "",
Player player = nullptr 
)
pure virtual

Implemented in World.

◆ SendZoneMessage()

virtual bool IWorld::SendZoneMessage ( uint32  zone,
WorldPacket const *  packet,
WorldSession self = nullptr,
TeamId  teamId = TEAM_NEUTRAL 
)
pure virtual

Implemented in World.

◆ SendZoneText()

virtual void IWorld::SendZoneText ( uint32  zone,
const char *  text,
WorldSession self = nullptr,
TeamId  teamId = TEAM_NEUTRAL 
)
pure virtual

Implemented in World.

◆ SetAllowMovement()

virtual void IWorld::SetAllowMovement ( bool  allow)
pure virtual

Implemented in World.

◆ setBoolConfig()

virtual void IWorld::setBoolConfig ( WorldBoolConfigs  index,
bool  value 
)
pure virtual

Implemented in World.

◆ SetCleaningFlags()

virtual void IWorld::SetCleaningFlags ( uint32  flags)
pure virtual

Implemented in World.

◆ SetClosed()

virtual void IWorld::SetClosed ( bool  val)
pure virtual

Implemented in World.

◆ setFloatConfig()

virtual void IWorld::setFloatConfig ( WorldFloatConfigs  index,
float  value 
)
pure virtual

Implemented in World.

◆ SetInitialWorldSettings()

virtual void IWorld::SetInitialWorldSettings ( )
pure virtual

Implemented in World.

◆ setIntConfig()

virtual void IWorld::setIntConfig ( WorldIntConfigs  index,
uint32  value 
)
pure virtual

Implemented in World.

◆ SetNewCharString()

virtual void IWorld::SetNewCharString ( std::string const &  str)
pure virtual

Implemented in World.

◆ SetPlayerAmountLimit()

virtual void IWorld::SetPlayerAmountLimit ( uint32  limit)
pure virtual

Implemented in World.

◆ SetPlayerSecurityLimit()

virtual void IWorld::SetPlayerSecurityLimit ( AccountTypes  sec)
pure virtual

Implemented in World.

◆ setRate()

virtual void IWorld::setRate ( Rates  rate,
float  value 
)
pure virtual

Implemented in World.

◆ SetRealmName()

virtual void IWorld::SetRealmName ( std::string  name)
pure virtual

Implemented in World.

◆ setWorldState()

virtual void IWorld::setWorldState ( uint32  index,
uint64  value 
)
pure virtual

Implemented in World.

◆ ShutdownCancel()

virtual void IWorld::ShutdownCancel ( )
pure virtual

Implemented in World.

◆ ShutdownMsg()

virtual void IWorld::ShutdownMsg ( bool  show = false,
Player player = nullptr,
const std::string &  reason = std::string() 
)
pure virtual

Implemented in World.

◆ ShutdownServ()

virtual void IWorld::ShutdownServ ( uint32  time,
uint32  options,
uint8  exitcode,
const std::string &  reason = std::string() 
)
pure virtual

Implemented in World.

◆ Update()

virtual void IWorld::Update ( uint32  diff)
pure virtual

Implemented in World.

◆ UpdateAreaDependentAuras()

virtual void IWorld::UpdateAreaDependentAuras ( )
pure virtual

Implemented in World.

◆ UpdateMaxSessionCounters()

virtual void IWorld::UpdateMaxSessionCounters ( )
pure virtual

Implemented in World.

◆ UpdateRealmCharCount()

virtual void IWorld::UpdateRealmCharCount ( uint32  accid)
pure virtual

Implemented in World.

◆ UpdateSessions()

virtual void IWorld::UpdateSessions ( uint32  diff)
pure virtual

Implemented in World.