Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
The World

Files

file  src/server/game/Weather/Weather.cpp
file  src/server/game/Weather/Weather.h
file  src/server/game/Weather/WeatherMgr.cpp
file  src/server/game/Weather/WeatherMgr.h
file  src/server/game/World/World.cpp
file  src/server/game/World/World.h

Namespaces

namespace  WeatherMgr

Classes

struct  CharacterNameData
struct  CliCommandHolder
 Storage class for commands issued for delayed execution. More...
class  Weather
 Weather for one zone. More...
struct  WeatherData
struct  WeatherSeasonChances
class  World
 The World. More...

Macros

#define sWorld   Skyfire::Singleton<World, Skyfire::NullMutex>::instance()
#define WEATHER_SEASONS   4

Typedefs

typedef std::map< uint32, std::string > RealmNameMap
typedef UNORDERED_MAP< uint32, WorldSession * > SessionMap

Enumerations

enum  BillingPlanFlags {
  SESSION_NONE = 0x00 , SESSION_UNUSED = 0x01 , SESSION_RECURRING_BILL = 0x02 , SESSION_FREE_TRIAL = 0x04 ,
  SESSION_IGR = 0x08 , SESSION_USAGE = 0x10 , SESSION_TIME_MIXTURE = 0x20 , SESSION_RESTRICTED = 0x40 ,
  SESSION_ENABLE_CAIS = 0x80
}
 Can be used in SMSG_AUTH_RESPONSE packet. More...
enum class  Rates {
  Rates::RATE_HEALTH = 0 , Rates::RATE_POWER_MANA , Rates::RATE_POWER_RAGE_INCOME , Rates::RATE_POWER_RAGE_LOSS ,
  Rates::RATE_POWER_RUNICPOWER_INCOME , Rates::RATE_POWER_RUNICPOWER_LOSS , Rates::RATE_POWER_DEMONICFURY_LOSS , Rates::RATE_POWER_FOCUS ,
  Rates::RATE_POWER_ENERGY , Rates::RATE_POWER_CHI , Rates::RATE_SKILL_DISCOVERY , Rates::RATE_DROP_ITEM_POOR ,
  Rates::RATE_DROP_ITEM_NORMAL , Rates::RATE_DROP_ITEM_UNCOMMON , Rates::RATE_DROP_ITEM_RARE , Rates::RATE_DROP_ITEM_EPIC ,
  Rates::RATE_DROP_ITEM_LEGENDARY , Rates::RATE_DROP_ITEM_ARTIFACT , Rates::RATE_DROP_ITEM_REFERENCED , Rates::RATE_DROP_ITEM_REFERENCED_AMOUNT ,
  Rates::RATE_DROP_MONEY , Rates::RATE_XP_KILL , Rates::RATE_XP_QUEST , Rates::RATE_XP_GUILD_MODIFIER ,
  Rates::RATE_XP_EXPLORE , Rates::RATE_REPAIRCOST , Rates::RATE_REPUTATION_GAIN , Rates::RATE_REPUTATION_LFG_BONUS ,
  Rates::RATE_REPUTATION_LOWLEVEL_KILL , Rates::RATE_REPUTATION_LOWLEVEL_QUEST , Rates::RATE_REPUTATION_RECRUIT_A_FRIEND_BONUS , Rates::RATE_CREATURE_NORMAL_HP ,
  Rates::RATE_CREATURE_ELITE_ELITE_HP , Rates::RATE_CREATURE_ELITE_RAREELITE_HP , Rates::RATE_CREATURE_ELITE_WORLDBOSS_HP , Rates::RATE_CREATURE_ELITE_RARE_HP ,
  Rates::RATE_CREATURE_NORMAL_DAMAGE , Rates::RATE_CREATURE_ELITE_ELITE_DAMAGE , Rates::RATE_CREATURE_ELITE_RAREELITE_DAMAGE , Rates::RATE_CREATURE_ELITE_WORLDBOSS_DAMAGE ,
  Rates::RATE_CREATURE_ELITE_RARE_DAMAGE , Rates::RATE_CREATURE_NORMAL_SPELLDAMAGE , Rates::RATE_CREATURE_ELITE_ELITE_SPELLDAMAGE , Rates::RATE_CREATURE_ELITE_RAREELITE_SPELLDAMAGE ,
  Rates::RATE_CREATURE_ELITE_WORLDBOSS_SPELLDAMAGE , Rates::RATE_CREATURE_ELITE_RARE_SPELLDAMAGE , Rates::RATE_CREATURE_AGGRO , Rates::RATE_REST_INGAME ,
  Rates::RATE_REST_OFFLINE_IN_TAVERN_OR_CITY , Rates::RATE_REST_OFFLINE_IN_WILDERNESS , Rates::RATE_DAMAGE_FALL , Rates::RATE_AUCTION_TIME ,
  Rates::RATE_AUCTION_DEPOSIT , Rates::RATE_AUCTION_CUT , Rates::RATE_HONOR , Rates::RATE_CORPSE_DECAY_LOOTED ,
  Rates::RATE_INSTANCE_RESET_TIME , Rates::RATE_TARGET_POS_RECALCULATION_RANGE , Rates::RATE_DURABILITY_LOSS_ON_DEATH , Rates::RATE_DURABILITY_LOSS_DAMAGE ,
  Rates::RATE_DURABILITY_LOSS_PARRY , Rates::RATE_DURABILITY_LOSS_ABSORB , Rates::RATE_DURABILITY_LOSS_BLOCK , Rates::RATE_MOVESPEED ,
  Rates::MAX_RATES
}
 Server rates. More...
enum  RealmType {
  REALM_TYPE_NORMAL = 0 , REALM_TYPE_PVP = 1 , REALM_TYPE_NORMAL2 = 4 , REALM_TYPE_RP = 6 ,
  REALM_TYPE_RPPVP = 8 , REALM_TYPE_FFA_PVP = 16
}
 Type of server, this is values from second column of Cfg_Configs.dbc. More...
enum  RealmZone {
  REALM_ZONE_UNKNOWN = 0 , REALM_ZONE_DEVELOPMENT = 1 , REALM_ZONE_UNITED_STATES = 2 , REALM_ZONE_OCEANIC = 3 ,
  REALM_ZONE_LATIN_AMERICA = 4 , REALM_ZONE_TOURNAMENT_5 = 5 , REALM_ZONE_KOREA = 6 , REALM_ZONE_TOURNAMENT_7 = 7 ,
  REALM_ZONE_ENGLISH = 8 , REALM_ZONE_GERMAN = 9 , REALM_ZONE_FRENCH = 10 , REALM_ZONE_SPANISH = 11 ,
  REALM_ZONE_RUSSIAN = 12 , REALM_ZONE_TOURNAMENT_13 = 13 , REALM_ZONE_TAIWAN = 14 , REALM_ZONE_TOURNAMENT_15 = 15 ,
  REALM_ZONE_CHINA = 16 , REALM_ZONE_CN1 = 17 , REALM_ZONE_CN2 = 18 , REALM_ZONE_CN3 = 19 ,
  REALM_ZONE_CN4 = 20 , REALM_ZONE_CN5 = 21 , REALM_ZONE_CN6 = 22 , REALM_ZONE_CN7 = 23 ,
  REALM_ZONE_CN8 = 24 , REALM_ZONE_TOURNAMENT_25 = 25 , REALM_ZONE_TEST_SERVER = 26 , REALM_ZONE_TOURNAMENT_27 = 27 ,
  REALM_ZONE_QA_SERVER = 28 , REALM_ZONE_CN9 = 29 , REALM_ZONE_TEST_SERVER_2 = 30 , REALM_ZONE_CN10 = 31 ,
  REALM_ZONE_CTC = 32 , REALM_ZONE_CNC = 33 , REALM_ZONE_CN1_4 = 34 , REALM_ZONE_CN2_6_9 = 35 ,
  REALM_ZONE_CN3_7 = 36 , REALM_ZONE_CN5_8 = 37
}
enum  ServerMessageType {
  SERVER_MSG_SHUTDOWN_TIME = 1 , SERVER_MSG_RESTART_TIME = 2 , SERVER_MSG_STRING = 3 , SERVER_MSG_SHUTDOWN_CANCELLED = 4 ,
  SERVER_MSG_RESTART_CANCELLED = 5 , SERVER_MSG_BG_SHUTDOWN_TIME = 6 , SERVER_MSG_BG_RESTART_TIME = 7 , SERVER_MSG_INSTANCE_SHUTDOWN_TIME = 8 ,
  SERVER_MSG_INSTANCE_RESTART_TIME = 9 , SERVER_MSG_CONTENT_READY = 10 , SERVER_MSG_TICKET_SERVICED_SOON = 11 , SERVER_MSG_WAIT_TIME_UNAVAILABLE = 12 ,
  SERVER_MSG_TICKET_WAIT_TIME = 13 , SERVER_MSG_CONTENT_LAUNCHED = 14 , SERVER_MSG_CONTENT_LAUNCH_H = 15 , SERVER_MSG_CONTENT_LAUNCH_A = 16 ,
  SERVER_MSG_CROSS_REALM_SHUTDOWN = 17 , SERVER_MSG_CROSS_REALM_RESTART = 18
}
enum  ShutdownExitCode { SHUTDOWN_EXIT_CODE = 0 , ERROR_EXIT_CODE = 1 , RESTART_EXIT_CODE = 2 }
enum  ShutdownMask { SHUTDOWN_MASK_RESTART = 1 , SHUTDOWN_MASK_IDLE = 2 }
enum  WeatherState {
  WEATHER_STATE_FINE = 0 , WEATHER_STATE_FOG = 1 , WEATHER_STATE_LIGHT_RAIN = 3 , WEATHER_STATE_MEDIUM_RAIN = 4 ,
  WEATHER_STATE_HEAVY_RAIN = 5 , WEATHER_STATE_LIGHT_SNOW = 6 , WEATHER_STATE_MEDIUM_SNOW = 7 , WEATHER_STATE_HEAVY_SNOW = 8 ,
  WEATHER_STATE_LIGHT_SANDSTORM = 22 , WEATHER_STATE_MEDIUM_SANDSTORM = 41 , WEATHER_STATE_HEAVY_SANDSTORM = 42 , WEATHER_STATE_THUNDERS = 86 ,
  WEATHER_STATE_BLACKRAIN = 90 , WEATHER_STATE_BLACKSNOW = 106
}
enum class  WorldBoolConfigs {
  WorldBoolConfigs::CONFIG_DURABILITY_LOSS_IN_PVP = 0 , WorldBoolConfigs::CONFIG_ADDON_CHANNEL , WorldBoolConfigs::CONFIG_ALLOW_PLAYER_COMMANDS , WorldBoolConfigs::CONFIG_CLEAN_CHARACTER_DB ,
  WorldBoolConfigs::CONFIG_GRID_UNLOAD , WorldBoolConfigs::CONFIG_STATS_SAVE_ONLY_ON_LOGOUT , WorldBoolConfigs::CONFIG_ALLOW_TWO_SIDE_INTERACTION_CALENDAR , WorldBoolConfigs::CONFIG_ALLOW_TWO_SIDE_INTERACTION_CHANNEL ,
  WorldBoolConfigs::CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP , WorldBoolConfigs::CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD , WorldBoolConfigs::CONFIG_ALLOW_TWO_SIDE_INTERACTION_AUCTION , WorldBoolConfigs::CONFIG_ALLOW_TWO_SIDE_TRADE ,
  WorldBoolConfigs::CONFIG_ALL_TAXI_PATHS , WorldBoolConfigs::CONFIG_INSTANT_TAXI , WorldBoolConfigs::CONFIG_INSTANCE_IGNORE_LEVEL , WorldBoolConfigs::CONFIG_INSTANCE_IGNORE_RAID ,
  WorldBoolConfigs::CONFIG_CAST_UNSTUCK , WorldBoolConfigs::CONFIG_ALLOW_GM_GROUP , WorldBoolConfigs::CONFIG_GM_LOWER_SECURITY , WorldBoolConfigs::CONFIG_SKILL_PROSPECTING ,
  WorldBoolConfigs::CONFIG_SKILL_MILLING , WorldBoolConfigs::CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY , WorldBoolConfigs::CONFIG_WEATHER , WorldBoolConfigs::CONFIG_QUEST_IGNORE_RAID ,
  WorldBoolConfigs::CONFIG_DETECT_POS_COLLISION , WorldBoolConfigs::CONFIG_RESTRICTED_LFG_CHANNEL , WorldBoolConfigs::CONFIG_TALENTS_INSPECTING , WorldBoolConfigs::CONFIG_CHAT_FAKE_MESSAGE_PREVENTING ,
  WorldBoolConfigs::CONFIG_CHAT_GM_WHISPER_FILTER_BYPASS , WorldBoolConfigs::CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVP , WorldBoolConfigs::CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVE , WorldBoolConfigs::CONFIG_DEATH_BONES_WORLD ,
  WorldBoolConfigs::CONFIG_DEATH_BONES_BG_OR_ARENA , WorldBoolConfigs::CONFIG_DIE_COMMAND_MODE , WorldBoolConfigs::CONFIG_DECLINED_NAMES_USED , WorldBoolConfigs::CONFIG_BATTLEGROUND_CAST_DESERTER ,
  WorldBoolConfigs::CONFIG_BATTLEGROUND_QUEUE_ANNOUNCER_ENABLE , WorldBoolConfigs::CONFIG_BATTLEGROUND_QUEUE_ANNOUNCER_PLAYERONLY , WorldBoolConfigs::CONFIG_BG_XP_FOR_KILL , WorldBoolConfigs::CONFIG_ARENA_QUEUE_ANNOUNCER_ENABLE ,
  WorldBoolConfigs::CONFIG_ARENA_QUEUE_ANNOUNCER_PLAYERONLY , WorldBoolConfigs::CONFIG_ARENA_SEASON_IN_PROGRESS , WorldBoolConfigs::CONFIG_ARENA_LOG_EXTENDED_INFO , WorldBoolConfigs::CONFIG_OFFHAND_CHECK_AT_SPELL_UNLEARN ,
  WorldBoolConfigs::CONFIG_VMAP_INDOOR_CHECK , WorldBoolConfigs::CONFIG_START_ALL_SPELLS , WorldBoolConfigs::CONFIG_START_ALL_EXPLORED , WorldBoolConfigs::CONFIG_START_ALL_REP ,
  WorldBoolConfigs::CONFIG_ALWAYS_MAXSKILL , WorldBoolConfigs::CONFIG_PVP_TOKEN_ENABLE , WorldBoolConfigs::CONFIG_NO_RESET_TALENT_COST , WorldBoolConfigs::CONFIG_SHOW_KICK_IN_WORLD ,
  WorldBoolConfigs::CONFIG_CHATLOG_CHANNEL , WorldBoolConfigs::CONFIG_CHATLOG_WHISPER , WorldBoolConfigs::CONFIG_CHATLOG_SYSCHAN , WorldBoolConfigs::CONFIG_CHATLOG_PARTY ,
  WorldBoolConfigs::CONFIG_CHATLOG_RAID , WorldBoolConfigs::CONFIG_CHATLOG_GUILD , WorldBoolConfigs::CONFIG_CHATLOG_PUBLIC , WorldBoolConfigs::CONFIG_CHATLOG_ADDON ,
  WorldBoolConfigs::CONFIG_CHATLOG_BGROUND , WorldBoolConfigs::CONFIG_AUTOBROADCAST , WorldBoolConfigs::CONFIG_DBC_ENFORCE_ITEM_ATTRIBUTES , WorldBoolConfigs::CONFIG_PRESERVE_CUSTOM_CHANNELS ,
  WorldBoolConfigs::CONFIG_PDUMP_NO_PATHS , WorldBoolConfigs::CONFIG_PDUMP_NO_OVERWRITE , WorldBoolConfigs::CONFIG_QUEST_IGNORE_AUTO_ACCEPT , WorldBoolConfigs::CONFIG_QUEST_IGNORE_AUTO_COMPLETE ,
  WorldBoolConfigs::CONFIG_WARDEN_ENABLED , WorldBoolConfigs::CONFIG_ENABLE_MMAPS , WorldBoolConfigs::CONFIG_WINTERGRASP_ENABLE , WorldBoolConfigs::CONFIG_GUILD_LEVELING_ENABLED ,
  WorldBoolConfigs::CONFIG_UI_QUESTLEVELS_IN_DIALOGS , WorldBoolConfigs::CONFIG_EVENT_ANNOUNCE , WorldBoolConfigs::CONFIG_STATS_LIMITS_ENABLE , WorldBoolConfigs::CONFIG_INSTANCES_RESET_ANNOUNCE ,
  WorldBoolConfigs::CONFIG_BLACK_MARKET_OPEN , WorldBoolConfigs::CONFIG_TICKETS_GM_ENABLED , WorldBoolConfigs::CONFIG_TICKETS_FEEDBACK_SYSTEM_ENABLED , WorldBoolConfigs::CONFIG_BOOST_NEW_ACCOUNT ,
  WorldBoolConfigs::BOOL_CONFIG_VALUE_COUNT
}
 Configuration elements. More...
enum class  WorldFloatConfigs {
  WorldFloatConfigs::CONFIG_GROUP_XP_DISTANCE = 0 , WorldFloatConfigs::CONFIG_MAX_RECRUIT_A_FRIEND_DISTANCE , WorldFloatConfigs::CONFIG_LOOT_AOE_RADIUS , WorldFloatConfigs::CONFIG_SIGHT_MONSTER ,
  WorldFloatConfigs::CONFIG_SIGHT_GUARDER , WorldFloatConfigs::CONFIG_LISTEN_RANGE_SAY , WorldFloatConfigs::CONFIG_LISTEN_RANGE_TEXTEMOTE , WorldFloatConfigs::CONFIG_LISTEN_RANGE_YELL ,
  WorldFloatConfigs::CONFIG_CREATURE_FAMILY_FLEE_ASSISTANCE_RADIUS , WorldFloatConfigs::CONFIG_CREATURE_FAMILY_ASSISTANCE_RADIUS , WorldFloatConfigs::CONFIG_THREAT_RADIUS , WorldFloatConfigs::CONFIG_CHANCE_OF_GM_SURVEY ,
  WorldFloatConfigs::CONFIG_STATS_LIMITS_DODGE , WorldFloatConfigs::CONFIG_STATS_LIMITS_PARRY , WorldFloatConfigs::CONFIG_STATS_LIMITS_BLOCK , WorldFloatConfigs::CONFIG_STATS_LIMITS_CRIT ,
  WorldFloatConfigs::FLOAT_CONFIG_VALUE_COUNT
}
enum class  WorldIntConfigs {
  WorldIntConfigs::CONFIG_COMPRESSION = 0 , WorldIntConfigs::CONFIG_INTERVAL_SAVE , WorldIntConfigs::CONFIG_INTERVAL_GRIDCLEAN , WorldIntConfigs::CONFIG_INTERVAL_MAPUPDATE ,
  WorldIntConfigs::CONFIG_INTERVAL_CHANGEWEATHER , WorldIntConfigs::CONFIG_INTERVAL_DISCONNECT_TOLERANCE , WorldIntConfigs::CONFIG_PORT_WORLD , WorldIntConfigs::CONFIG_SOCKET_TIMEOUTTIME ,
  WorldIntConfigs::CONFIG_SESSION_ADD_DELAY , WorldIntConfigs::CONFIG_GAME_TYPE , WorldIntConfigs::CONFIG_REALM_ZONE , WorldIntConfigs::CONFIG_STRICT_PLAYER_NAMES ,
  WorldIntConfigs::CONFIG_STRICT_CHARTER_NAMES , WorldIntConfigs::CONFIG_STRICT_PET_NAMES , WorldIntConfigs::CONFIG_MIN_PLAYER_NAME , WorldIntConfigs::CONFIG_MIN_CHARTER_NAME ,
  WorldIntConfigs::CONFIG_MIN_PET_NAME , WorldIntConfigs::CONFIG_CHARACTER_CREATING_DISABLED , WorldIntConfigs::CONFIG_CHARACTER_CREATING_DISABLED_RACEMASK , WorldIntConfigs::CONFIG_CHARACTER_CREATING_DISABLED_CLASSMASK ,
  WorldIntConfigs::CONFIG_CHARACTERS_PER_ACCOUNT , WorldIntConfigs::CONFIG_CHARACTERS_PER_REALM , WorldIntConfigs::CONFIG_HEROIC_CHARACTERS_PER_REALM , WorldIntConfigs::CONFIG_CHARACTER_CREATING_MIN_LEVEL_FOR_HEROIC_CHARACTER ,
  WorldIntConfigs::CONFIG_SKIP_CINEMATICS , WorldIntConfigs::CONFIG_MAX_PLAYER_LEVEL , WorldIntConfigs::CONFIG_START_PETBAR_LEVEL , WorldIntConfigs::CONFIG_MIN_DUALSPEC_LEVEL ,
  WorldIntConfigs::CONFIG_START_PLAYER_LEVEL , WorldIntConfigs::CONFIG_START_HEROIC_PLAYER_LEVEL , WorldIntConfigs::CONFIG_START_PLAYER_MONEY , WorldIntConfigs::CONFIG_CURRENCY_START_JUSTICE_POINTS ,
  WorldIntConfigs::CONFIG_CURRENCY_MAX_JUSTICE_POINTS , WorldIntConfigs::CONFIG_CURRENCY_START_HONOR_POINTS , WorldIntConfigs::CONFIG_CURRENCY_MAX_HONOR_POINTS , WorldIntConfigs::CONFIG_CURRENCY_START_CONQUEST_POINTS ,
  WorldIntConfigs::CONFIG_CURRENCY_CONQUEST_POINTS_WEEK_CAP , WorldIntConfigs::CONFIG_CURRENCY_CONQUEST_POINTS_ARENA_REWARD , WorldIntConfigs::CONFIG_CURRENCY_RESET_HOUR , WorldIntConfigs::CONFIG_CURRENCY_RESET_DAY ,
  WorldIntConfigs::CONFIG_CURRENCY_RESET_INTERVAL , WorldIntConfigs::CONFIG_MAX_RECRUIT_A_FRIEND_BONUS_PLAYER_LEVEL , WorldIntConfigs::CONFIG_MAX_RECRUIT_A_FRIEND_BONUS_PLAYER_LEVEL_DIFFERENCE , WorldIntConfigs::CONFIG_INSTANCE_RESET_TIME_HOUR ,
  WorldIntConfigs::CONFIG_INSTANCE_UNLOAD_DELAY , WorldIntConfigs::CONFIG_MAX_PRIMARY_TRADE_SKILL , WorldIntConfigs::CONFIG_MIN_PETITION_SIGNS , WorldIntConfigs::CONFIG_GM_LOGIN_STATE ,
  WorldIntConfigs::CONFIG_GM_VISIBLE_STATE , WorldIntConfigs::CONFIG_GM_ACCEPT_TICKETS , WorldIntConfigs::CONFIG_GM_CHAT , WorldIntConfigs::CONFIG_GM_WHISPERING_TO ,
  WorldIntConfigs::CONFIG_GM_LEVEL_IN_GM_LIST , WorldIntConfigs::CONFIG_GM_LEVEL_IN_WHO_LIST , WorldIntConfigs::CONFIG_START_GM_LEVEL , WorldIntConfigs::CONFIG_GROUP_VISIBILITY ,
  WorldIntConfigs::CONFIG_MAIL_DELIVERY_DELAY , WorldIntConfigs::CONFIG_UPTIME_UPDATE , WorldIntConfigs::CONFIG_SKILL_CHANCE_ORANGE , WorldIntConfigs::CONFIG_SKILL_CHANCE_YELLOW ,
  WorldIntConfigs::CONFIG_SKILL_CHANCE_GREEN , WorldIntConfigs::CONFIG_SKILL_CHANCE_GREY , WorldIntConfigs::CONFIG_SKILL_CHANCE_MINING_STEPS , WorldIntConfigs::CONFIG_SKILL_CHANCE_SKINNING_STEPS ,
  WorldIntConfigs::CONFIG_SKILL_GAIN_CRAFTING , WorldIntConfigs::CONFIG_SKILL_GAIN_GATHERING , WorldIntConfigs::CONFIG_MAX_OVERSPEED_PINGS , WorldIntConfigs::CONFIG_EXPANSION ,
  WorldIntConfigs::CONFIG_CHATFLOOD_MESSAGE_COUNT , WorldIntConfigs::CONFIG_CHATFLOOD_MESSAGE_DELAY , WorldIntConfigs::CONFIG_CHATFLOOD_MUTE_TIME , WorldIntConfigs::CONFIG_CREATURE_FAMILY_ASSISTANCE_DELAY ,
  WorldIntConfigs::CONFIG_CREATURE_FAMILY_FLEE_DELAY , WorldIntConfigs::CONFIG_WORLD_BOSS_LEVEL_DIFF , WorldIntConfigs::CONFIG_QUEST_LOW_LEVEL_HIDE_DIFF , WorldIntConfigs::CONFIG_QUEST_HIGH_LEVEL_HIDE_DIFF ,
  WorldIntConfigs::CONFIG_CHAT_STRICT_LINK_CHECKING_SEVERITY , WorldIntConfigs::CONFIG_CHAT_STRICT_LINK_CHECKING_KICK , WorldIntConfigs::CONFIG_CHAT_CHANNEL_LEVEL_REQ , WorldIntConfigs::CONFIG_CHAT_WHISPER_LEVEL_REQ ,
  WorldIntConfigs::CONFIG_CHAT_SAY_LEVEL_REQ , WorldIntConfigs::CONFIG_TRADE_LEVEL_REQ , WorldIntConfigs::CONFIG_TICKET_LEVEL_REQ , WorldIntConfigs::CONFIG_AUCTION_LEVEL_REQ ,
  WorldIntConfigs::CONFIG_MAIL_LEVEL_REQ , WorldIntConfigs::CONFIG_CORPSE_DECAY_NORMAL , WorldIntConfigs::CONFIG_CORPSE_DECAY_RARE , WorldIntConfigs::CONFIG_CORPSE_DECAY_ELITE ,
  WorldIntConfigs::CONFIG_CORPSE_DECAY_RAREELITE , WorldIntConfigs::CONFIG_CORPSE_DECAY_WORLDBOSS , WorldIntConfigs::CONFIG_DEATH_SICKNESS_LEVEL , WorldIntConfigs::CONFIG_INSTANT_LOGOUT ,
  WorldIntConfigs::CONFIG_DISABLE_BREATHING , WorldIntConfigs::CONFIG_BATTLEGROUND_INVITATION_TYPE , WorldIntConfigs::CONFIG_BATTLEGROUND_PREMATURE_FINISH_TIMER , WorldIntConfigs::CONFIG_BATTLEGROUND_PREMADE_GROUP_WAIT_FOR_MATCH ,
  WorldIntConfigs::CONFIG_ARENA_MAX_RATING_DIFFERENCE , WorldIntConfigs::CONFIG_ARENA_RATING_DISCARD_TIMER , WorldIntConfigs::CONFIG_ARENA_RATED_UPDATE_TIMER , WorldIntConfigs::CONFIG_ARENA_SEASON_ID ,
  WorldIntConfigs::CONFIG_ARENA_START_RATING , WorldIntConfigs::CONFIG_ARENA_START_PERSONAL_RATING , WorldIntConfigs::CONFIG_ARENA_START_MATCHMAKER_RATING , WorldIntConfigs::CONFIG_MAX_WHO ,
  WorldIntConfigs::CONFIG_HONOR_AFTER_DUEL , WorldIntConfigs::CONFIG_PVP_TOKEN_MAP_TYPE , WorldIntConfigs::CONFIG_PVP_TOKEN_ID , WorldIntConfigs::CONFIG_PVP_TOKEN_COUNT ,
  WorldIntConfigs::CONFIG_INTERVAL_LOG_UPDATE , WorldIntConfigs::CONFIG_MIN_LOG_UPDATE , WorldIntConfigs::CONFIG_ENABLE_SINFO_LOGIN , WorldIntConfigs::CONFIG_PLAYER_ALLOW_COMMANDS ,
  WorldIntConfigs::CONFIG_NUMTHREADS , WorldIntConfigs::CONFIG_LOGDB_CLEARINTERVAL , WorldIntConfigs::CONFIG_LOGDB_CLEARTIME , WorldIntConfigs::CONFIG_CLIENTCACHE_VERSION ,
  WorldIntConfigs::CONFIG_GUILD_NEWS_LOG_COUNT , WorldIntConfigs::CONFIG_GUILD_EVENT_LOG_COUNT , WorldIntConfigs::CONFIG_GUILD_BANK_EVENT_LOG_COUNT , WorldIntConfigs::CONFIG_MIN_LEVEL_STAT_SAVE ,
  WorldIntConfigs::CONFIG_RANDOM_BG_RESET_HOUR , WorldIntConfigs::CONFIG_GUILD_RESET_HOUR , WorldIntConfigs::CONFIG_CHARDELETE_KEEP_DAYS , WorldIntConfigs::CONFIG_CHARDELETE_METHOD ,
  WorldIntConfigs::CONFIG_CHARDELETE_MIN_LEVEL , WorldIntConfigs::CONFIG_CHARDELETE_HEROIC_MIN_LEVEL , WorldIntConfigs::CONFIG_AUTOBROADCAST_CENTER , WorldIntConfigs::CONFIG_AUTOBROADCAST_INTERVAL ,
  WorldIntConfigs::CONFIG_MAX_RESULTS_LOOKUP_COMMANDS , WorldIntConfigs::CONFIG_DB_PING_INTERVAL , WorldIntConfigs::CONFIG_PRESERVE_CUSTOM_CHANNEL_DURATION , WorldIntConfigs::CONFIG_PERSISTENT_CHARACTER_CLEAN_FLAGS ,
  WorldIntConfigs::CONFIG_LFG_OPTIONSMASK , WorldIntConfigs::CONFIG_MAX_INSTANCES_PER_HOUR , WorldIntConfigs::CONFIG_WARDEN_CLIENT_RESPONSE_DELAY , WorldIntConfigs::CONFIG_WARDEN_CLIENT_CHECK_HOLDOFF ,
  WorldIntConfigs::CONFIG_WARDEN_CLIENT_FAIL_ACTION , WorldIntConfigs::CONFIG_WARDEN_CLIENT_BAN_DURATION , WorldIntConfigs::CONFIG_WARDEN_NUM_MEM_CHECKS , WorldIntConfigs::CONFIG_WARDEN_NUM_OTHER_CHECKS ,
  WorldIntConfigs::CONFIG_WINTERGRASP_PLR_MAX , WorldIntConfigs::CONFIG_WINTERGRASP_PLR_MIN , WorldIntConfigs::CONFIG_WINTERGRASP_PLR_MIN_LVL , WorldIntConfigs::CONFIG_WINTERGRASP_BATTLETIME ,
  WorldIntConfigs::CONFIG_WINTERGRASP_NOBATTLETIME , WorldIntConfigs::CONFIG_WINTERGRASP_RESTART_AFTER_CRASH , WorldIntConfigs::CONFIG_GUILD_SAVE_INTERVAL , WorldIntConfigs::CONFIG_GUILD_MAX_LEVEL ,
  WorldIntConfigs::CONFIG_GUILD_UNDELETABLE_LEVEL , WorldIntConfigs::CONFIG_GUILD_DAILY_XP_CAP , WorldIntConfigs::CONFIG_GUILD_WEEKLY_REP_CAP , WorldIntConfigs::CONFIG_PACKET_SPOOF_POLICY ,
  WorldIntConfigs::CONFIG_PACKET_SPOOF_BANMODE , WorldIntConfigs::CONFIG_PACKET_SPOOF_BANDURATION , WorldIntConfigs::CONFIG_ACC_PASSCHANGESEC , WorldIntConfigs::CONFIG_RBAC_FREE_PERMISSION_MODE ,
  WorldIntConfigs::CONFIG_BG_REWARD_WINNER_HONOR_FIRST , WorldIntConfigs::CONFIG_BG_REWARD_WINNER_HONOR_LAST , WorldIntConfigs::CONFIG_BG_REWARD_LOSER_HONOR_FIRST , WorldIntConfigs::CONFIG_BG_REWARD_LOSER_HONOR_LAST ,
  WorldIntConfigs::CONFIG_BG_REWARD_WINNER_CONQUEST_FIRST , WorldIntConfigs::CONFIG_BG_REWARD_WINNER_CONQUEST_LAST , WorldIntConfigs::CONFIG_BATTLE_PET_LOADOUT_UNLOCK_COUNT , WorldIntConfigs::CONFIG_BATTLE_PET_INITIAL_LEVEL ,
  WorldIntConfigs::CONFIG_BATTLE_PET_WILD_SPAWN_MIN_COUNT , WorldIntConfigs::CONFIG_BLACK_MARKET_MAX_AUCTIONS , WorldIntConfigs::CONFIG_BLACK_MARKET_AUCTION_DELAY , WorldIntConfigs::CONFIG_BLACK_MARKET_AUCTION_DELAY_MOD ,
  WorldIntConfigs::CONFIG_BOOST_START_MONEY , WorldIntConfigs::CONFIG_BOOST_START_LEVEL , WorldIntConfigs::INT_CONFIG_VALUE_COUNT
}
enum  WorldStates {
  WS_WEEKLY_QUEST_RESET_TIME = 20002 , WS_BG_DAILY_RESET_TIME = 20003 , WS_CLEANING_FLAGS = 20004 , WS_GUILD_DAILY_RESET_TIME = 20006 ,
  WS_MONTHLY_QUEST_RESET_TIME = 20007 , WS_GUILD_WEEKLY_RESET_TIME = 20050
}
enum  WorldTimers {
  WUPDATE_AUCTIONS , WUPDATE_WEATHERS , WUPDATE_UPTIME , WUPDATE_CORPSES ,
  WUPDATE_EVENTS , WUPDATE_CLEANDB , WUPDATE_AUTOBROADCAST , WUPDATE_MAILBOXQUEUE ,
  WUPDATE_DELETECHARS , WUPDATE_PINGDB , WUPDATE_GUILDSAVE , WUPDATE_BLACK_MARKET ,
  WUPDATE_COUNT
}
 Timers for different object refresh rates. More...

Functions

WeatherWeatherMgr::AddWeather (uint32 zone_id)
 Add a Weather object to the list.
WeatherWeatherMgr::FindWeather (uint32 id)
 Find a Weather object by the given zoneid.
uint32 Weather::GetScriptId () const
WeatherState Weather::GetWeatherState () const
 Get the sound number associated with the current weather.
uint32 Weather::GetZone () const
 For which zone is this weather?
void WeatherMgr::LoadWeatherData ()
bool Weather::ReGenerate ()
 Calculate the new weather.
void WeatherMgr::RemoveWeather (uint32 id)
 Remove a Weather object for the given zoneid.
void WeatherMgr::SendFineWeatherUpdateToPlayer (Player *player)
void Weather::SendWeatherUpdateToPlayer (Player *player)
void Weather::SetWeather (WeatherType type, float grade)
 Set the weather.
bool Weather::Update (uint32 diff)
 Launch a weather update.
void WeatherMgr::Update (uint32 diff)
bool Weather::UpdateWeather ()
 Send the new weather to all players in the zone.
 Weather::Weather (uint32 zone, WeatherData const *weatherChances)
 Create the Weather object.
 Weather::~Weather ()

Variables

WeatherSeasonChances WeatherData::data [WEATHER_SEASONS]
float Weather::m_grade
IntervalTimer Weather::m_timer
WeatherType Weather::m_type
WeatherData const * Weather::m_weatherChances
uint32 Weather::m_zone
uint32 WeatherSeasonChances::rainChance
uint32 realmID
 Id of the realm.
RealmNameMap realmNameStore
uint32 WeatherData::ScriptId
uint32 WeatherSeasonChances::snowChance
uint32 WeatherSeasonChances::stormChance

Detailed Description

Macro Definition Documentation

◆ sWorld

#define sWorld   Skyfire::Singleton<World, Skyfire::NullMutex>::instance()

#include <World.h>

Definition at line 910 of file World.h.

Referenced by Guild::_CreateLogHolders(), Player::_GetCurrencyWeekCap(), Creature::_GetDamageMod(), Creature::_GetHealthMod(), Player::_LoadQuestStatus(), Player::_LoadSkills(), Battleground::_ProcessJoin(), Battleground::_ProcessOfflineQueue(), InstanceSaveManager::_ResetOrWarnAll(), CharacterBooster::_SaveBoostedChar(), Player::_SaveQuestStatus(), Player::_SaveStats(), Master::_StartDB(), Player::ActivateTaxiPathTo(), BattlegroundQueue::AddGroup(), World::AddSession_(), Creature::AllLootRemovedFromCorpse(), GameEventMgr::ApplyNewEvent(), ArenaTeam::ArenaTeam(), BattlegroundMgr::BattlegroundMgr(), SocialMgr::BroadcastToFriendListers(), BattlegroundMgr::BuildBattlegroundListPacket(), Player::BuildEnumData(), ObjectMgr::BuildPlayerLevelInfo(), Unit::BuildValuesUpdate(), Player::BuyItemFromVendorSlot(), Player::CalculateReputationGain(), Creature::CallAssistance(), Creature::CanCreatureAttack(), MapManager::CanPlayerEnter(), Player::CanSeeStartQuest(), Creature::CanStartAttack(), OPvPCapturePointHP::ChangeState(), OPvPCapturePointTF::ChangeState(), OPvPCapturePointZM_Beacon::ChangeState(), Player::CheckAreaExploreAndOutdoor(), Player::CheckInstanceCount(), BattlegroundQueue::CheckNormalMatch(), ObjectMgr::CheckPetName(), ObjectMgr::CheckPlayerName(), BattlegroundQueue::CheckPremadeMatch(), CharacterDatabaseCleaner::CleanDatabase(), Channel::CleanOldChannelsInDB(), ObjectAccessor::ConvertCorpseForPlayer(), BattlePetMgr::Create(), Creature::Create(), Player::Create(), AccountMgr::CreateAccount(), BlackMarketMgr::CreateAuctions(), GameObject::CreateModel(), Creature::Creature(), Unit::DealDamage(), AuctionHouseMgr::DeleteExpiredAuctionsAtStartup(), Player::DeleteFromDB(), Player::DeleteOldCharacters(), MapInstanced::DestroyInstance(), boss_ignis::boss_ignis_AI::DoAction(), boss_magus_telestra::boss_magus_telestraAI::DoAction(), Spell::DoCreateItem(), Creature::DoFleeToGetAssistance(), WorldSession::DosProtection::DosProtection(), TargetedMovementGeneratorMedium< T, D >::DoUpdate(), Player::DuelComplete(), Player::DurabilityRepair(), Spell::EffectBattlePetsUnlock(), Spell::EffectMilling(), Spell::EffectProspecting(), Spell::EffectStuck(), Battleground::EndBattleground(), Map::EnsureGridCreated_i(), WorldSession::DosProtection::EvaluateOpcode(), Battleground::EventPlayerLoggedOut(), Map::ExistMap(), Map::ExistVMap(), OPvPCapturePointNA::FactionTakeOver(), BattlegroundQueue::FillPlayersToBG(), AssistanceMovementGenerator::Finalize(), ChannelMgr::forTeam(), Skyfire::XP::Gain(), Loot::generateMoneyLoot(), ObjectMgr::GeneratePetName(), Creature::GetAttackDistance(), AuctionEntry::GetAuctionCut(), AuctionHouseMgr::GetAuctionDeposit(), AuctionHouseMgr::GetAuctionHouseEntry(), AuctionHouseMgr::GetAuctionsMap(), MembershipRequest::GetClass(), Player::GetCorpseReclaimDelay(), Player::GetCurrencyTotalCap(), WorldSession::getDialogStatus(), SocialMgr::GetFriendInfo(), LuaGlobalFunctions::GetGameTime(), MembershipRequest::GetLevel(), Creature::getLevelForTarget(), ReputationMgr::GetLFGBonus(), BattlegroundMgr::GetMaxRatingDifference(), Player::getMaxTimer(), LuaGuild::GetMembers(), MembershipRequest::GetName(), Player::GetNextResetSpecializationCost(), Player::GetNextResetTalentsCost(), ObjectMgr::GetPetLevelInfo(), ObjectMgr::GetPlayerClassLevelInfo(), LuaGlobalFunctions::GetPlayerCount(), LuaGlobalFunctions::GetPlayersInWorld(), BattlegroundMgr::GetPrematureFinishTime(), CreatureTextMgr::GetRangeForChatType(), BattlegroundMgr::GetRatingDiscardTimer(), GetRealmLanguageType(), Quest::GetRewMoney(), CliHandler::GetSessionDbcLocale(), GetSkillDiscoverySpell(), Creature::GetSpellDamageMod(), Player::GetsRecruitAFriendBonus(), Player::GiveLevel(), Pet::GivePetXP(), Guild::GiveXP(), LuaPlayer::GiveXP(), Player::GiveXP(), Group::GroupLoot(), RASocket::handle_credentials(), Guild::HandleAcceptMember(), account_commandscript::HandleAccountAddonCommand(), account_commandscript::HandleAccountCommand(), account_commandscript::HandleAccountPasswordCommand(), account_commandscript::HandleAccountSetAddonCommand(), WorldSession::HandleAddonMessagechatOpcode(), message_commandscript::HandleAnnounceCommand(), OutdoorPvPSI::HandleAreaTrigger(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleAuctionSellItem(), WorldSocket::HandleAuthSession(), ban_commandscript::HandleBanCharacterCommand(), ban_commandscript::HandleBanHelper(), WorldSession::HandleCalendarEventInvite(), WorldSession::HandleChangePlayerNameOpcodeCallBack(), misc_commandscript::HandleChangeWeather(), character_commandscript::HandleCharacterDeletedOldCommand(), character_commandscript::HandleCharacterDeletedRestoreHelper(), character_commandscript::HandleCharacterRenameCommand(), WorldSession::HandleCharCreateCallback(), WorldSession::HandleCharCreateOpcode(), WorldSession::HandleCharCustomize(), WorldSession::HandleCharEnum(), WorldSession::HandleCharEnumOpcode(), WorldSession::HandleCharFactionOrRaceChange(), WardenWin::HandleData(), misc_commandscript::HandleDieCommand(), Player::HandleFall(), message_commandscript::HandleGMAnnounceCommand(), gm_commandscript::HandleGMListIngameCommand(), message_commandscript::HandleGMNameAnnounceCommand(), message_commandscript::HandleGMNotifyCommand(), WorldSession::HandleGMResponseResolve(), WorldSession::HandleGMTicketCreateOpcode(), WorldSession::HandleGMTicketDeleteOpcode(), WorldSession::HandleGMTicketUpdateOpcode(), WorldSession::HandleGrantLevel(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleGuildFinderBrowse(), WorldSession::HandleGuildRequestMaxDailyXP(), WorldSession::HandleInitiateTradeOpcode(), Guild::HandleInviteMember(), misc_commandscript::HandleKickPlayerCommand(), Guild::HandleLeaveMember(), lookup_commandscript::HandleLookupAreaCommand(), lookup_commandscript::HandleLookupCreatureCommand(), lookup_commandscript::HandleLookupEventCommand(), lookup_commandscript::HandleLookupFactionCommand(), lookup_commandscript::HandleLookupItemCommand(), lookup_commandscript::HandleLookupItemSetCommand(), lookup_commandscript::HandleLookupMapCommand(), lookup_commandscript::HandleLookupObjectCommand(), lookup_commandscript::HandleLookupQuestCommand(), lookup_commandscript::HandleLookupSkillCommand(), lookup_commandscript::HandleLookupSpellCommand(), lookup_commandscript::HandleLookupTaxiNodeCommand(), lookup_commandscript::HandleLookupTeleCommand(), lookup_commandscript::HandleLookupTitleCommand(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleLootOpcode(), WorldSession::HandleMessagechatOpcode(), misc_commandscript::HandleMuteCommand(), message_commandscript::HandleNameAnnounceCommand(), message_commandscript::HandleNotifyCommand(), npc_commandscript::HandleNpcSetAllowMovementCommand(), npc_commandscript::HandleNpcSetLevelCommand(), WorldSession::HandleOfferPetitionOpcode(), OPvPCapturePointZM_GraveYard::HandleOpenGo(), WorldSession::HandlePetitionSignOpcode(), misc_commandscript::HandlePInfoCommand(), WorldSocket::HandlePing(), misc_commandscript::HandlePlayAllCommand(), WorldSession::HandlePlayerLogin(), GameEventMgr::HandleQuestComplete(), reload_commandscript::HandleReloadAutobroadcastCommand(), reload_commandscript::HandleReloadConfigCommand(), reload_commandscript::HandleReloadRBACCommand(), reload_commandscript::HandleReloadWardenactionCommand(), reset_commandscript::HandleResetAllCommand(), reset_commandscript::HandleResetLevelCommand(), Guild::HandleRoster(), misc_commandscript::HandleSaveCommand(), WorldSession::HandleSendMail(), server_commandscript::HandleServerIdleRestartCommand(), server_commandscript::HandleServerIdleShutDownCommand(), server_commandscript::HandleServerInfoCommand(), server_commandscript::HandleServerMotdCommand(), server_commandscript::HandleServerPLimitCommand(), server_commandscript::HandleServerRestartCommand(), server_commandscript::HandleServerRestartTimeCommand(), server_commandscript::HandleServerSetClosedCommand(), server_commandscript::HandleServerSetDiffTimeCommand(), server_commandscript::HandleServerSetMotdCommand(), server_commandscript::HandleServerShutDownCancelCommand(), server_commandscript::HandleServerShutDownCommand(), server_commandscript::HandleServerUptimeCommand(), WorldSession::HandleSubmitBugOpcode(), WorldSession::HandleSubmitSuggestOpcode(), WorldSession::HandleTextEmoteOpcode(), ticket_commandscript::HandleToggleGMTicketSystem(), WorldSession::HandleTurnInPetitionOpcode(), ban_commandscript::HandleUnBanCharacterCommand(), ban_commandscript::HandleUnBanHelper(), misc_commandscript::HandleUnmuteCommand(), WorldSession::HandleWhoOpcode(), ChatHandler::HasLowerSecurityAccount(), rbac::RBACData::HasPermission(), BfWGGameObjectBuilding::Init(), World::InitCurrencyResetTime(), World::InitGuildResetTime(), LoginQueryHolder::Initialize(), MapManager::Initialize(), TicketMgr::Initialize(), World::InitMonthlyQuestResetTime(), Player::InitPrimaryProfessions(), World::InitRandomBGResetTime(), Player::InitStatsForLevel(), World::InitWeeklyQuestResetTime(), InstanceMap::InstanceMap(), Quest::IsAllowedInRaid(), Player::IsAtGroupRewardDistance(), Player::IsAtRecruitAFriendDistance(), Quest::IsAutoAccept(), Quest::IsAutoComplete(), BlackMarketMgr::isBlackMarketOpen(), ConditionMgr::isConditionTypeValid(), Player::IsGroupVisibleFor(), MMAP::MMapFactory::IsPathfindingEnabled(), ObjectMgr::IsValidCharterName(), ChatHandler::isValidChatMessage(), Channel::JoinChannel(), Unit::Kill(), Player::LeaveBattleground(), lfg::LFGMgr::LFGMgr(), Channel::List(), CinematicSequenceMgr::Load(), World::LoadConfigSettings(), LoadDB2(), PlayerDumpReader::LoadDump(), Player::LoadFromDB(), GuildMgr::LoadGuilds(), GuildMgr::LoadGuildXpForLevel(), ObjectMgr::LoadItemTemplates(), Map::LoadMap(), MMAP::MMapManager::loadMap(), MMAP::MMapManager::loadMapData(), Map::LoadMMap(), ObjectMgr::LoadPetLevelInfo(), ObjectMgr::LoadPlayerCreateLevelStatsData(), ObjectMgr::LoadPlayerCreateSpellsData(), ObjectMgr::LoadPlayerCreateXpData(), ObjectMgr::LoadQuests(), InstanceSaveManager::LoadResetTimes(), lfg::LFGMgr::LoadRewards(), MMAP::MMapManager::LoadTile(), Map::LoadVMap(), WardenCheckMgr::LoadWardenChecks(), WardenCheckMgr::LoadWardenOverrides(), lookup_commandscript::LookupPlayerSearchCommand(), MapManager::MapManager(), Group::MasterLoot(), Condition::Meets(), WorldObject::MonsterSay(), WorldObject::MonsterSay(), WorldObject::MonsterTextEmote(), WorldObject::MonsterTextEmote(), WorldObject::MonsterYell(), WorldObject::MonsterYell(), Group::NeedBeforeGreed(), ns1__executeCommand(), ChatLogScript::OnChat(), ChatLogScript::OnChat(), ChatLogScript::OnChat(), ChatLogScript::OnChat(), ChatLogScript::OnChat(), npc_rogue_trainer::OnGossipHello(), npc_rogue_trainer::OnGossipSelect(), Player::OnGossipSelect(), AreaTrigger_at_area_52_entrance::OnTrigger(), AreaTrigger_at_brewfest::OnTrigger(), Warden::Penalty(), Player::PetSpellInitialize(), Player::Player(), Player::PrepareGossipMenu(), LootTemplate::Process(), Weather::ReGenerate(), Creature::Regenerate(), Player::Regenerate(), Creature::RegenerateHealth(), Player::RegenerateHealth(), Creature::RegenerateMana(), Map::RemoveFromMap(), Map::RemoveFromMap(), InstanceMap::RemovePlayerFromMap(), World::RemoveQueuedPlayer(), Player::removeSpell(), WardenWin::RequestData(), World::ResetCurrencyWeekCap(), World::ResetGuildCap(), Group::ResetInstances(), World::ResetMonthlyQuests(), World::ResetRandomBG(), Player::ResetTalents(), WorldSession::ResetTimeOutTime(), World::ResetWeeklyQuests(), Player::ResurrectPlayer(), Player::RewardHonor(), Player::RewardQuest(), Unit::RewardRage(), Battleground::RewardXPAtKill(), LootStoreItem::Roll(), CliRunnable::Run(), Master::Run(), WorldRunnable::Run(), Player::Satisfy(), BfWGGameObjectBuilding::Save(), WGWorkshop::Save(), WintergraspWorkshopData::Save(), Player::SaveToDB(), Channel::Say(), Player::Say(), Map::ScriptCommandStart(), Map::ScriptsProcess(), Map::ScriptsStart(), AchievementMgr< T >::SendAchievementEarned(), AchievementMgr< Guild >::SendAchievementEarned(), WorldSession::SendAuctionHello(), AuctionHouseMgr::SendAuctionSuccessfulMail(), World::SendAutoBroadcast(), Player::SendBattlefieldWorldStates(), CreatureTextMgr::SendChatPacket(), Player::SendCorpseReclaimDelay(), ChatHandler::SendGlobalGMSysMessage(), ChatHandler::SendGlobalSysMessage(), PlayerMenu::SendGossipMenu(), Guild::SendGuildReputationWeeklyCap(), Player::SendInitialPacketsBeforeAddToMap(), Guild::SendLoginInfo(), Player::SendLoot(), MailDraft::SendMailTo(), WorldSession::SendNameQueryOpcode(), CreatureTextMgr::SendNonChatPacket(), WorldSession::SendPetitionQueryOpcode(), WorldSession::SendQueryTimeResponse(), PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverQuestDetails(), PlayerMenu::SendQuestGiverQuestList(), PlayerMenu::SendQuestGiverRequestItems(), PlayerMenu::SendQuestQueryResponse(), Player::SendQuestReward(), MailDraft::SendReturnToSender(), Player::SendTalentWipeConfirm(), LuaGlobalFunctions::SendWorldMessage(), Creature::SendZoneUnderAttackMessage(), InstanceScript::ServerAllowsTwoSideGroups(), Creature::setDeathState(), Unit::SetFeared(), Player::SetGameMaster(), Player::SetInGuild(), Unit::SetLevel(), ReputationMgr::SetOneFactionReputation(), Player::SetRestBonus(), lfg::LFGMgr::SetTeam(), BattlefieldWG::SetupBattlefield(), SkillGainChance(), RASocket::start_command(), GameEventMgr::StartArenaSeason(), GameEventMgr::StartEvent(), Player::StoreLootItem(), Spell::TakeRunePower(), Player::TextEmote(), BattlegroundMgr::ToggleArenaTesting(), BattlegroundMgr::ToggleTesting(), AuctionHouseObject::Update(), BattlefieldWG::Update(), BattlegroundMgr::Update(), BlackMarketMgr::Update(), GameObject::Update(), Player::Update(), Warden::Update(), World::Update(), AchievementMgr< T >::UpdateAchievementCriteria(), Player::UpdateBlockPercentage(), Player::UpdateCorpseReclaimDelay(), Player::UpdateCraftSkill(), Player::UpdateCritPercentage(), Player::UpdateDodgePercentage(), Player::UpdateFishingSkill(), Player::UpdateGatherSkill(), Group::UpdateLooterGuid(), Player::UpdateParryPercentage(), Player::UpdatePvPState(), Player::UpdateRestAreaState(), Player::UpdateSpeakTime(), Weather::UpdateWeather(), GameEventMgr::UpdateWorldStates(), Player::UpdateZone(), GameObject::Use(), Player::VehicleSpellInitialize(), ObjectGridUnloader::Visit(), Weather::Weather(), WorldSession::WorldSession(), PlayerDumpWriter::WriteDump(), Player::Yell(), and Player::~Player().

◆ WEATHER_SEASONS

#define WEATHER_SEASONS   4

#include <Weather.h>

Definition at line 19 of file Weather.h.

Referenced by WeatherMgr::LoadWeatherData(), and Weather::ReGenerate().

Typedef Documentation

◆ RealmNameMap

typedef std::map<uint32, std::string> RealmNameMap

#include <World.h>

Definition at line 905 of file World.h.

◆ SessionMap

#include <World.h>

Definition at line 543 of file World.h.

Enumeration Type Documentation

◆ BillingPlanFlags

#include <World.h>

Can be used in SMSG_AUTH_RESPONSE packet.

Enumerator
SESSION_NONE 
SESSION_UNUSED 
SESSION_RECURRING_BILL 
SESSION_FREE_TRIAL 
SESSION_IGR 
SESSION_USAGE 
SESSION_TIME_MIXTURE 
SESSION_RESTRICTED 
SESSION_ENABLE_CAIS 

Definition at line 444 of file World.h.

◆ Rates

enum class Rates
strong

#include <World.h>

Server rates.

Enumerator
RATE_HEALTH 
RATE_POWER_MANA 
RATE_POWER_RAGE_INCOME 
RATE_POWER_RAGE_LOSS 
RATE_POWER_RUNICPOWER_INCOME 
RATE_POWER_RUNICPOWER_LOSS 
RATE_POWER_DEMONICFURY_LOSS 
RATE_POWER_FOCUS 
RATE_POWER_ENERGY 
RATE_POWER_CHI 
RATE_SKILL_DISCOVERY 
RATE_DROP_ITEM_POOR 
RATE_DROP_ITEM_NORMAL 
RATE_DROP_ITEM_UNCOMMON 
RATE_DROP_ITEM_RARE 
RATE_DROP_ITEM_EPIC 
RATE_DROP_ITEM_LEGENDARY 
RATE_DROP_ITEM_ARTIFACT 
RATE_DROP_ITEM_REFERENCED 
RATE_DROP_ITEM_REFERENCED_AMOUNT 
RATE_DROP_MONEY 
RATE_XP_KILL 
RATE_XP_QUEST 
RATE_XP_GUILD_MODIFIER 
RATE_XP_EXPLORE 
RATE_REPAIRCOST 
RATE_REPUTATION_GAIN 
RATE_REPUTATION_LFG_BONUS 
RATE_REPUTATION_LOWLEVEL_KILL 
RATE_REPUTATION_LOWLEVEL_QUEST 
RATE_REPUTATION_RECRUIT_A_FRIEND_BONUS 
RATE_CREATURE_NORMAL_HP 
RATE_CREATURE_ELITE_ELITE_HP 
RATE_CREATURE_ELITE_RAREELITE_HP 
RATE_CREATURE_ELITE_WORLDBOSS_HP 
RATE_CREATURE_ELITE_RARE_HP 
RATE_CREATURE_NORMAL_DAMAGE 
RATE_CREATURE_ELITE_ELITE_DAMAGE 
RATE_CREATURE_ELITE_RAREELITE_DAMAGE 
RATE_CREATURE_ELITE_WORLDBOSS_DAMAGE 
RATE_CREATURE_ELITE_RARE_DAMAGE 
RATE_CREATURE_NORMAL_SPELLDAMAGE 
RATE_CREATURE_ELITE_ELITE_SPELLDAMAGE 
RATE_CREATURE_ELITE_RAREELITE_SPELLDAMAGE 
RATE_CREATURE_ELITE_WORLDBOSS_SPELLDAMAGE 
RATE_CREATURE_ELITE_RARE_SPELLDAMAGE 
RATE_CREATURE_AGGRO 
RATE_REST_INGAME 
RATE_REST_OFFLINE_IN_TAVERN_OR_CITY 
RATE_REST_OFFLINE_IN_WILDERNESS 
RATE_DAMAGE_FALL 
RATE_AUCTION_TIME 
RATE_AUCTION_DEPOSIT 
RATE_AUCTION_CUT 
RATE_HONOR 
RATE_CORPSE_DECAY_LOOTED 
RATE_INSTANCE_RESET_TIME 
RATE_TARGET_POS_RECALCULATION_RANGE 
RATE_DURABILITY_LOSS_ON_DEATH 
RATE_DURABILITY_LOSS_DAMAGE 
RATE_DURABILITY_LOSS_PARRY 
RATE_DURABILITY_LOSS_ABSORB 
RATE_DURABILITY_LOSS_BLOCK 
RATE_MOVESPEED 
MAX_RATES 

Definition at line 374 of file World.h.

◆ RealmType

enum RealmType

#include <World.h>

Type of server, this is values from second column of Cfg_Configs.dbc.

Enumerator
REALM_TYPE_NORMAL 
REALM_TYPE_PVP 
REALM_TYPE_NORMAL2 
REALM_TYPE_RP 
REALM_TYPE_RPPVP 
REALM_TYPE_FFA_PVP 

Definition at line 458 of file World.h.

◆ RealmZone

enum RealmZone

#include <World.h>

Enumerator
REALM_ZONE_UNKNOWN 
REALM_ZONE_DEVELOPMENT 
REALM_ZONE_UNITED_STATES 
REALM_ZONE_OCEANIC 
REALM_ZONE_LATIN_AMERICA 
REALM_ZONE_TOURNAMENT_5 
REALM_ZONE_KOREA 
REALM_ZONE_TOURNAMENT_7 
REALM_ZONE_ENGLISH 
REALM_ZONE_GERMAN 
REALM_ZONE_FRENCH 
REALM_ZONE_SPANISH 
REALM_ZONE_RUSSIAN 
REALM_ZONE_TOURNAMENT_13 
REALM_ZONE_TAIWAN 
REALM_ZONE_TOURNAMENT_15 
REALM_ZONE_CHINA 
REALM_ZONE_CN1 
REALM_ZONE_CN2 
REALM_ZONE_CN3 
REALM_ZONE_CN4 
REALM_ZONE_CN5 
REALM_ZONE_CN6 
REALM_ZONE_CN7 
REALM_ZONE_CN8 
REALM_ZONE_TOURNAMENT_25 
REALM_ZONE_TEST_SERVER 
REALM_ZONE_TOURNAMENT_27 
REALM_ZONE_QA_SERVER 
REALM_ZONE_CN9 
REALM_ZONE_TEST_SERVER_2 
REALM_ZONE_CN10 
REALM_ZONE_CTC 
REALM_ZONE_CNC 
REALM_ZONE_CN1_4 
REALM_ZONE_CN2_6_9 
REALM_ZONE_CN3_7 
REALM_ZONE_CN5_8 

Definition at line 469 of file World.h.

◆ ServerMessageType

#include <World.h>

Enumerator
SERVER_MSG_SHUTDOWN_TIME 
SERVER_MSG_RESTART_TIME 
SERVER_MSG_STRING 
SERVER_MSG_SHUTDOWN_CANCELLED 
SERVER_MSG_RESTART_CANCELLED 
SERVER_MSG_BG_SHUTDOWN_TIME 
SERVER_MSG_BG_RESTART_TIME 
SERVER_MSG_INSTANCE_SHUTDOWN_TIME 
SERVER_MSG_INSTANCE_RESTART_TIME 
SERVER_MSG_CONTENT_READY 
SERVER_MSG_TICKET_SERVICED_SOON 
SERVER_MSG_WAIT_TIME_UNAVAILABLE 
SERVER_MSG_TICKET_WAIT_TIME 
SERVER_MSG_CONTENT_LAUNCHED 
SERVER_MSG_CONTENT_LAUNCH_H 
SERVER_MSG_CONTENT_LAUNCH_A 
SERVER_MSG_CROSS_REALM_SHUTDOWN 
SERVER_MSG_CROSS_REALM_RESTART 

Definition at line 34 of file World.h.

◆ ShutdownExitCode

#include <World.h>

Enumerator
SHUTDOWN_EXIT_CODE 
ERROR_EXIT_CODE 
RESTART_EXIT_CODE 

Definition at line 62 of file World.h.

◆ ShutdownMask

#include <World.h>

Enumerator
SHUTDOWN_MASK_RESTART 
SHUTDOWN_MASK_IDLE 

Definition at line 56 of file World.h.

◆ WeatherState

#include <Weather.h>

Enumerator
WEATHER_STATE_FINE 
WEATHER_STATE_FOG 
WEATHER_STATE_LIGHT_RAIN 
WEATHER_STATE_MEDIUM_RAIN 
WEATHER_STATE_HEAVY_RAIN 
WEATHER_STATE_LIGHT_SNOW 
WEATHER_STATE_MEDIUM_SNOW 
WEATHER_STATE_HEAVY_SNOW 
WEATHER_STATE_LIGHT_SANDSTORM 
WEATHER_STATE_MEDIUM_SANDSTORM 
WEATHER_STATE_HEAVY_SANDSTORM 
WEATHER_STATE_THUNDERS 
WEATHER_STATE_BLACKRAIN 
WEATHER_STATE_BLACKSNOW 

Definition at line 33 of file Weather.h.

◆ WorldBoolConfigs

enum class WorldBoolConfigs
strong

#include <World.h>

Configuration elements.

Enumerator
CONFIG_DURABILITY_LOSS_IN_PVP 
CONFIG_ADDON_CHANNEL 
CONFIG_ALLOW_PLAYER_COMMANDS 
CONFIG_CLEAN_CHARACTER_DB 
CONFIG_GRID_UNLOAD 
CONFIG_STATS_SAVE_ONLY_ON_LOGOUT 
CONFIG_ALLOW_TWO_SIDE_INTERACTION_CALENDAR 
CONFIG_ALLOW_TWO_SIDE_INTERACTION_CHANNEL 
CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP 
CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD 
CONFIG_ALLOW_TWO_SIDE_INTERACTION_AUCTION 
CONFIG_ALLOW_TWO_SIDE_TRADE 
CONFIG_ALL_TAXI_PATHS 
CONFIG_INSTANT_TAXI 
CONFIG_INSTANCE_IGNORE_LEVEL 
CONFIG_INSTANCE_IGNORE_RAID 
CONFIG_CAST_UNSTUCK 
CONFIG_ALLOW_GM_GROUP 
CONFIG_GM_LOWER_SECURITY 
CONFIG_SKILL_PROSPECTING 
CONFIG_SKILL_MILLING 
CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY 
CONFIG_WEATHER 
CONFIG_QUEST_IGNORE_RAID 
CONFIG_DETECT_POS_COLLISION 
CONFIG_RESTRICTED_LFG_CHANNEL 
CONFIG_TALENTS_INSPECTING 
CONFIG_CHAT_FAKE_MESSAGE_PREVENTING 
CONFIG_CHAT_GM_WHISPER_FILTER_BYPASS 
CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVP 
CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVE 
CONFIG_DEATH_BONES_WORLD 
CONFIG_DEATH_BONES_BG_OR_ARENA 
CONFIG_DIE_COMMAND_MODE 
CONFIG_DECLINED_NAMES_USED 
CONFIG_BATTLEGROUND_CAST_DESERTER 
CONFIG_BATTLEGROUND_QUEUE_ANNOUNCER_ENABLE 
CONFIG_BATTLEGROUND_QUEUE_ANNOUNCER_PLAYERONLY 
CONFIG_BG_XP_FOR_KILL 
CONFIG_ARENA_QUEUE_ANNOUNCER_ENABLE 
CONFIG_ARENA_QUEUE_ANNOUNCER_PLAYERONLY 
CONFIG_ARENA_SEASON_IN_PROGRESS 
CONFIG_ARENA_LOG_EXTENDED_INFO 
CONFIG_OFFHAND_CHECK_AT_SPELL_UNLEARN 
CONFIG_VMAP_INDOOR_CHECK 
CONFIG_START_ALL_SPELLS 
CONFIG_START_ALL_EXPLORED 
CONFIG_START_ALL_REP 
CONFIG_ALWAYS_MAXSKILL 
CONFIG_PVP_TOKEN_ENABLE 
CONFIG_NO_RESET_TALENT_COST 
CONFIG_SHOW_KICK_IN_WORLD 
CONFIG_CHATLOG_CHANNEL 
CONFIG_CHATLOG_WHISPER 
CONFIG_CHATLOG_SYSCHAN 
CONFIG_CHATLOG_PARTY 
CONFIG_CHATLOG_RAID 
CONFIG_CHATLOG_GUILD 
CONFIG_CHATLOG_PUBLIC 
CONFIG_CHATLOG_ADDON 
CONFIG_CHATLOG_BGROUND 
CONFIG_AUTOBROADCAST 
CONFIG_DBC_ENFORCE_ITEM_ATTRIBUTES 
CONFIG_PRESERVE_CUSTOM_CHANNELS 
CONFIG_PDUMP_NO_PATHS 
CONFIG_PDUMP_NO_OVERWRITE 
CONFIG_QUEST_IGNORE_AUTO_ACCEPT 
CONFIG_QUEST_IGNORE_AUTO_COMPLETE 
CONFIG_WARDEN_ENABLED 
CONFIG_ENABLE_MMAPS 
CONFIG_WINTERGRASP_ENABLE 
CONFIG_GUILD_LEVELING_ENABLED 
CONFIG_UI_QUESTLEVELS_IN_DIALOGS 
CONFIG_EVENT_ANNOUNCE 
CONFIG_STATS_LIMITS_ENABLE 
CONFIG_INSTANCES_RESET_ANNOUNCE 
CONFIG_BLACK_MARKET_OPEN 
CONFIG_TICKETS_GM_ENABLED 
CONFIG_TICKETS_FEEDBACK_SYSTEM_ENABLED 
CONFIG_BOOST_NEW_ACCOUNT 
BOOL_CONFIG_VALUE_COUNT 

Definition at line 88 of file World.h.

◆ WorldFloatConfigs

enum class WorldFloatConfigs
strong

#include <World.h>

Enumerator
CONFIG_GROUP_XP_DISTANCE 
CONFIG_MAX_RECRUIT_A_FRIEND_DISTANCE 
CONFIG_LOOT_AOE_RADIUS 
CONFIG_SIGHT_MONSTER 
CONFIG_SIGHT_GUARDER 
CONFIG_LISTEN_RANGE_SAY 
CONFIG_LISTEN_RANGE_TEXTEMOTE 
CONFIG_LISTEN_RANGE_YELL 
CONFIG_CREATURE_FAMILY_FLEE_ASSISTANCE_RADIUS 
CONFIG_CREATURE_FAMILY_ASSISTANCE_RADIUS 
CONFIG_THREAT_RADIUS 
CONFIG_CHANCE_OF_GM_SURVEY 
CONFIG_STATS_LIMITS_DODGE 
CONFIG_STATS_LIMITS_PARRY 
CONFIG_STATS_LIMITS_BLOCK 
CONFIG_STATS_LIMITS_CRIT 
FLOAT_CONFIG_VALUE_COUNT 

Definition at line 176 of file World.h.

◆ WorldIntConfigs

enum class WorldIntConfigs
strong

#include <World.h>

Enumerator
CONFIG_COMPRESSION 
CONFIG_INTERVAL_SAVE 
CONFIG_INTERVAL_GRIDCLEAN 
CONFIG_INTERVAL_MAPUPDATE 
CONFIG_INTERVAL_CHANGEWEATHER 
CONFIG_INTERVAL_DISCONNECT_TOLERANCE 
CONFIG_PORT_WORLD 
CONFIG_SOCKET_TIMEOUTTIME 
CONFIG_SESSION_ADD_DELAY 
CONFIG_GAME_TYPE 
CONFIG_REALM_ZONE 
CONFIG_STRICT_PLAYER_NAMES 
CONFIG_STRICT_CHARTER_NAMES 
CONFIG_STRICT_PET_NAMES 
CONFIG_MIN_PLAYER_NAME 
CONFIG_MIN_CHARTER_NAME 
CONFIG_MIN_PET_NAME 
CONFIG_CHARACTER_CREATING_DISABLED 
CONFIG_CHARACTER_CREATING_DISABLED_RACEMASK 
CONFIG_CHARACTER_CREATING_DISABLED_CLASSMASK 
CONFIG_CHARACTERS_PER_ACCOUNT 
CONFIG_CHARACTERS_PER_REALM 
CONFIG_HEROIC_CHARACTERS_PER_REALM 
CONFIG_CHARACTER_CREATING_MIN_LEVEL_FOR_HEROIC_CHARACTER 
CONFIG_SKIP_CINEMATICS 
CONFIG_MAX_PLAYER_LEVEL 
CONFIG_START_PETBAR_LEVEL 
CONFIG_MIN_DUALSPEC_LEVEL 
CONFIG_START_PLAYER_LEVEL 
CONFIG_START_HEROIC_PLAYER_LEVEL 
CONFIG_START_PLAYER_MONEY 
CONFIG_CURRENCY_START_JUSTICE_POINTS 
CONFIG_CURRENCY_MAX_JUSTICE_POINTS 
CONFIG_CURRENCY_START_HONOR_POINTS 
CONFIG_CURRENCY_MAX_HONOR_POINTS 
CONFIG_CURRENCY_START_CONQUEST_POINTS 
CONFIG_CURRENCY_CONQUEST_POINTS_WEEK_CAP 
CONFIG_CURRENCY_CONQUEST_POINTS_ARENA_REWARD 
CONFIG_CURRENCY_RESET_HOUR 
CONFIG_CURRENCY_RESET_DAY 
CONFIG_CURRENCY_RESET_INTERVAL 
CONFIG_MAX_RECRUIT_A_FRIEND_BONUS_PLAYER_LEVEL 
CONFIG_MAX_RECRUIT_A_FRIEND_BONUS_PLAYER_LEVEL_DIFFERENCE 
CONFIG_INSTANCE_RESET_TIME_HOUR 
CONFIG_INSTANCE_UNLOAD_DELAY 
CONFIG_MAX_PRIMARY_TRADE_SKILL 
CONFIG_MIN_PETITION_SIGNS 
CONFIG_GM_LOGIN_STATE 
CONFIG_GM_VISIBLE_STATE 
CONFIG_GM_ACCEPT_TICKETS 
CONFIG_GM_CHAT 
CONFIG_GM_WHISPERING_TO 
CONFIG_GM_LEVEL_IN_GM_LIST 
CONFIG_GM_LEVEL_IN_WHO_LIST 
CONFIG_START_GM_LEVEL 
CONFIG_GROUP_VISIBILITY 
CONFIG_MAIL_DELIVERY_DELAY 
CONFIG_UPTIME_UPDATE 
CONFIG_SKILL_CHANCE_ORANGE 
CONFIG_SKILL_CHANCE_YELLOW 
CONFIG_SKILL_CHANCE_GREEN 
CONFIG_SKILL_CHANCE_GREY 
CONFIG_SKILL_CHANCE_MINING_STEPS 
CONFIG_SKILL_CHANCE_SKINNING_STEPS 
CONFIG_SKILL_GAIN_CRAFTING 
CONFIG_SKILL_GAIN_GATHERING 
CONFIG_MAX_OVERSPEED_PINGS 
CONFIG_EXPANSION 
CONFIG_CHATFLOOD_MESSAGE_COUNT 
CONFIG_CHATFLOOD_MESSAGE_DELAY 
CONFIG_CHATFLOOD_MUTE_TIME 
CONFIG_CREATURE_FAMILY_ASSISTANCE_DELAY 
CONFIG_CREATURE_FAMILY_FLEE_DELAY 
CONFIG_WORLD_BOSS_LEVEL_DIFF 
CONFIG_QUEST_LOW_LEVEL_HIDE_DIFF 
CONFIG_QUEST_HIGH_LEVEL_HIDE_DIFF 
CONFIG_CHAT_STRICT_LINK_CHECKING_SEVERITY 
CONFIG_CHAT_STRICT_LINK_CHECKING_KICK 
CONFIG_CHAT_CHANNEL_LEVEL_REQ 
CONFIG_CHAT_WHISPER_LEVEL_REQ 
CONFIG_CHAT_SAY_LEVEL_REQ 
CONFIG_TRADE_LEVEL_REQ 
CONFIG_TICKET_LEVEL_REQ 
CONFIG_AUCTION_LEVEL_REQ 
CONFIG_MAIL_LEVEL_REQ 
CONFIG_CORPSE_DECAY_NORMAL 
CONFIG_CORPSE_DECAY_RARE 
CONFIG_CORPSE_DECAY_ELITE 
CONFIG_CORPSE_DECAY_RAREELITE 
CONFIG_CORPSE_DECAY_WORLDBOSS 
CONFIG_DEATH_SICKNESS_LEVEL 
CONFIG_INSTANT_LOGOUT 
CONFIG_DISABLE_BREATHING 
CONFIG_BATTLEGROUND_INVITATION_TYPE 
CONFIG_BATTLEGROUND_PREMATURE_FINISH_TIMER 
CONFIG_BATTLEGROUND_PREMADE_GROUP_WAIT_FOR_MATCH 
CONFIG_ARENA_MAX_RATING_DIFFERENCE 
CONFIG_ARENA_RATING_DISCARD_TIMER 
CONFIG_ARENA_RATED_UPDATE_TIMER 
CONFIG_ARENA_SEASON_ID 
CONFIG_ARENA_START_RATING 
CONFIG_ARENA_START_PERSONAL_RATING 
CONFIG_ARENA_START_MATCHMAKER_RATING 
CONFIG_MAX_WHO 
CONFIG_HONOR_AFTER_DUEL 
CONFIG_PVP_TOKEN_MAP_TYPE 
CONFIG_PVP_TOKEN_ID 
CONFIG_PVP_TOKEN_COUNT 
CONFIG_INTERVAL_LOG_UPDATE 
CONFIG_MIN_LOG_UPDATE 
CONFIG_ENABLE_SINFO_LOGIN 
CONFIG_PLAYER_ALLOW_COMMANDS 
CONFIG_NUMTHREADS 
CONFIG_LOGDB_CLEARINTERVAL 
CONFIG_LOGDB_CLEARTIME 
CONFIG_CLIENTCACHE_VERSION 
CONFIG_GUILD_NEWS_LOG_COUNT 
CONFIG_GUILD_EVENT_LOG_COUNT 
CONFIG_GUILD_BANK_EVENT_LOG_COUNT 
CONFIG_MIN_LEVEL_STAT_SAVE 
CONFIG_RANDOM_BG_RESET_HOUR 
CONFIG_GUILD_RESET_HOUR 
CONFIG_CHARDELETE_KEEP_DAYS 
CONFIG_CHARDELETE_METHOD 
CONFIG_CHARDELETE_MIN_LEVEL 
CONFIG_CHARDELETE_HEROIC_MIN_LEVEL 
CONFIG_AUTOBROADCAST_CENTER 
CONFIG_AUTOBROADCAST_INTERVAL 
CONFIG_MAX_RESULTS_LOOKUP_COMMANDS 
CONFIG_DB_PING_INTERVAL 
CONFIG_PRESERVE_CUSTOM_CHANNEL_DURATION 
CONFIG_PERSISTENT_CHARACTER_CLEAN_FLAGS 
CONFIG_LFG_OPTIONSMASK 
CONFIG_MAX_INSTANCES_PER_HOUR 
CONFIG_WARDEN_CLIENT_RESPONSE_DELAY 
CONFIG_WARDEN_CLIENT_CHECK_HOLDOFF 
CONFIG_WARDEN_CLIENT_FAIL_ACTION 
CONFIG_WARDEN_CLIENT_BAN_DURATION 
CONFIG_WARDEN_NUM_MEM_CHECKS 
CONFIG_WARDEN_NUM_OTHER_CHECKS 
CONFIG_WINTERGRASP_PLR_MAX 
CONFIG_WINTERGRASP_PLR_MIN 
CONFIG_WINTERGRASP_PLR_MIN_LVL 
CONFIG_WINTERGRASP_BATTLETIME 
CONFIG_WINTERGRASP_NOBATTLETIME 
CONFIG_WINTERGRASP_RESTART_AFTER_CRASH 
CONFIG_GUILD_SAVE_INTERVAL 
CONFIG_GUILD_MAX_LEVEL 
CONFIG_GUILD_UNDELETABLE_LEVEL 
CONFIG_GUILD_DAILY_XP_CAP 
CONFIG_GUILD_WEEKLY_REP_CAP 
CONFIG_PACKET_SPOOF_POLICY 
CONFIG_PACKET_SPOOF_BANMODE 
CONFIG_PACKET_SPOOF_BANDURATION 
CONFIG_ACC_PASSCHANGESEC 
CONFIG_RBAC_FREE_PERMISSION_MODE 
CONFIG_BG_REWARD_WINNER_HONOR_FIRST 
CONFIG_BG_REWARD_WINNER_HONOR_LAST 
CONFIG_BG_REWARD_LOSER_HONOR_FIRST 
CONFIG_BG_REWARD_LOSER_HONOR_LAST 
CONFIG_BG_REWARD_WINNER_CONQUEST_FIRST 
CONFIG_BG_REWARD_WINNER_CONQUEST_LAST 
CONFIG_BATTLE_PET_LOADOUT_UNLOCK_COUNT 
CONFIG_BATTLE_PET_INITIAL_LEVEL 
CONFIG_BATTLE_PET_WILD_SPAWN_MIN_COUNT 
CONFIG_BLACK_MARKET_MAX_AUCTIONS 
CONFIG_BLACK_MARKET_AUCTION_DELAY 
CONFIG_BLACK_MARKET_AUCTION_DELAY_MOD 
CONFIG_BOOST_START_MONEY 
CONFIG_BOOST_START_LEVEL 
INT_CONFIG_VALUE_COUNT 

Definition at line 197 of file World.h.

◆ WorldStates

#include <World.h>

Enumerator
WS_WEEKLY_QUEST_RESET_TIME 
WS_BG_DAILY_RESET_TIME 
WS_CLEANING_FLAGS 
WS_GUILD_DAILY_RESET_TIME 
WS_MONTHLY_QUEST_RESET_TIME 
WS_GUILD_WEEKLY_RESET_TIME 

Definition at line 511 of file World.h.

◆ WorldTimers

#include <World.h>

Timers for different object refresh rates.

Enumerator
WUPDATE_AUCTIONS 
WUPDATE_WEATHERS 
WUPDATE_UPTIME 
WUPDATE_CORPSES 
WUPDATE_EVENTS 
WUPDATE_CLEANDB 
WUPDATE_AUTOBROADCAST 
WUPDATE_MAILBOXQUEUE 
WUPDATE_DELETECHARS 
WUPDATE_PINGDB 
WUPDATE_GUILDSAVE 
WUPDATE_BLACK_MARKET 
WUPDATE_COUNT 

Definition at line 70 of file World.h.

Function Documentation

◆ AddWeather()

Weather * WeatherMgr::AddWeather ( uint32 zone_id)

◆ FindWeather()

Weather * WeatherMgr::FindWeather ( uint32 id)

#include <WeatherMgr.cpp>

Find a Weather object by the given zoneid.

Definition at line 38 of file WeatherMgr.cpp.

Referenced by AuraEffect::HandleAuraForceWeather(), misc_commandscript::HandleChangeWeather(), and Player::UpdateZone().

◆ GetScriptId()

uint32 Weather::GetScriptId ( ) const
inline

#include <Weather.h>

Definition at line 67 of file Weather.h.

References m_weatherChances.

Referenced by LuaWeather::GetScriptId(), ScriptMgr::OnWeatherChange(), and ScriptMgr::OnWeatherUpdate().

◆ GetWeatherState()

◆ GetZone()

uint32 Weather::GetZone ( ) const
inline

#include <Weather.h>

For which zone is this weather?

Definition at line 66 of file Weather.h.

References m_zone.

Referenced by WeatherMgr::AddWeather(), LuaWeather::GetZoneId(), and HookMgr::OnChange().

◆ LoadWeatherData()

◆ ReGenerate()

bool Weather::ReGenerate ( )

#include <Weather.h>

Calculate the new weather.

Weather statistics:

  • 30% - no change
  • 30% - weather gets better (if not fine) or change weather type
  • 30% - weather worsens (if not fine)
  • 10% - radical change (if not fine)

Radical change:

  • if light -> heavy
  • if medium -> change weather type
  • if heavy -> 50% light, 50% change weather type

New weather statistics (if not fine):

  • 85% light
  • 7% medium
  • 7% heavy If fine 100% sun (no fog)

Definition at line 59 of file Weather.cpp.

References Skyfire::LocalTime(), m_grade, m_type, m_weatherChances, m_zone, rand_norm(), SF_LOG_INFO, sWorld, WEATHER_SEASONS, WEATHER_TYPE_FINE, WEATHER_TYPE_RAIN, WEATHER_TYPE_SNOW, and WEATHER_TYPE_STORM.

Referenced by WeatherMgr::AddWeather(), LuaWeather::Regenerate(), and Update().

◆ RemoveWeather()

void WeatherMgr::RemoveWeather ( uint32 id)

#include <WeatherMgr.cpp>

Remove a Weather object for the given zoneid.

Definition at line 45 of file WeatherMgr.cpp.

◆ SendFineWeatherUpdateToPlayer()

void WeatherMgr::SendFineWeatherUpdateToPlayer ( Player * player)

◆ SendWeatherUpdateToPlayer()

void Weather::SendWeatherUpdateToPlayer ( Player * player)

◆ SetWeather()

void Weather::SetWeather ( WeatherType type,
float grade )

#include <Weather.h>

Set the weather.

Definition at line 267 of file Weather.cpp.

References m_grade, m_type, and UpdateWeather().

Referenced by misc_commandscript::HandleChangeWeather(), and LuaWeather::SetWeather().

◆ Update() [1/2]

bool Weather::Update ( uint32 diff)

#include <Weather.h>

Launch a weather update.

  • If the timer has passed, ReGenerate the weather
  • Weather will be removed if not updated (no players in zone anymore)

Definition at line 34 of file Weather.cpp.

References m_timer, ReGenerate(), sScriptMgr, and UpdateWeather().

◆ Update() [2/2]

void WeatherMgr::Update ( uint32 diff)

#include <WeatherMgr.cpp>

  • Send an update signal to Weather objects
  • and remove Weather objects for zones with no player

Definition at line 141 of file WeatherMgr.cpp.

Referenced by World::Update().

◆ UpdateWeather()

◆ Weather()

Weather::Weather ( uint32 zone,
WeatherData const * weatherChances )

◆ ~Weather()

Weather::~Weather ( )
inline

#include <Weather.h>

Definition at line 56 of file Weather.h.

Variable Documentation

◆ data

Definition at line 29 of file Weather.h.

Referenced by WeatherMgr::LoadWeatherData().

◆ m_grade

float Weather::m_grade
private

◆ m_timer

IntervalTimer Weather::m_timer
private

Definition at line 74 of file Weather.h.

Referenced by Update(), and Weather().

◆ m_type

WeatherType Weather::m_type
private

Definition at line 72 of file Weather.h.

Referenced by GetWeatherState(), ReGenerate(), SetWeather(), and Weather().

◆ m_weatherChances

WeatherData const* Weather::m_weatherChances
private

Definition at line 75 of file Weather.h.

Referenced by GetScriptId(), ReGenerate(), and Weather().

◆ m_zone

uint32 Weather::m_zone
private

Definition at line 71 of file Weather.h.

Referenced by GetZone(), ReGenerate(), UpdateWeather(), and Weather().

◆ rainChance

uint32 WeatherSeasonChances::rainChance

Definition at line 22 of file Weather.h.

Referenced by WeatherMgr::LoadWeatherData().

◆ realmID

◆ realmNameStore

◆ ScriptId

uint32 WeatherData::ScriptId

Definition at line 30 of file Weather.h.

Referenced by WeatherMgr::LoadWeatherData().

◆ snowChance

uint32 WeatherSeasonChances::snowChance

Definition at line 23 of file Weather.h.

Referenced by WeatherMgr::LoadWeatherData().

◆ stormChance

uint32 WeatherSeasonChances::stormChance

Definition at line 24 of file Weather.h.

Referenced by WeatherMgr::LoadWeatherData().