TrinityCore
The World

Files

file  Weather.cpp
 
file  Weather.h
 
file  WeatherMgr.cpp
 
file  WeatherMgr.h
 
file  World.cpp
 
file  World.h
 

Namespaces

namespace  WeatherMgr
 

Classes

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

Macros

#define WEATHER_SEASONS   4
 
#define sWorld   World::instance()
 

Typedefs

typedef std::unordered_map< uint32, WorldSession * > SessionMap
 

Enumerations

enum  WeatherState : uint32 {
  WEATHER_STATE_FINE = 0 , WEATHER_STATE_FOG = 1 , WEATHER_STATE_DRIZZLE = 2 , 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  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
}
 
enum  ShutdownMask : uint32 { SHUTDOWN_MASK_RESTART = 1 , SHUTDOWN_MASK_IDLE = 2 , SHUTDOWN_MASK_FORCE = 4 }
 
enum  ShutdownExitCode : uint32 { SHUTDOWN_EXIT_CODE = 0 , ERROR_EXIT_CODE = 1 , RESTART_EXIT_CODE = 2 }
 
enum  WorldTimers {
  WUPDATE_AUCTIONS , WUPDATE_AUCTIONS_PENDING , WUPDATE_UPTIME , WUPDATE_CORPSES ,
  WUPDATE_EVENTS , WUPDATE_CLEANDB , WUPDATE_AUTOBROADCAST , WUPDATE_MAILBOXQUEUE ,
  WUPDATE_DELETECHARS , WUPDATE_AHBOT , WUPDATE_PINGDB , WUPDATE_GUILDSAVE ,
  WUPDATE_BLACKMARKET , WUPDATE_CHECK_FILECHANGES , WUPDATE_WHO_LIST , WUPDATE_CHANNEL_SAVE ,
  WUPDATE_COUNT
}
 Timers for different object refresh rates. More...
 
enum  WorldBoolConfigs {
  CONFIG_DURABILITY_LOSS_IN_PVP = 0 , CONFIG_ADDON_CHANNEL , 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_WEATHER , CONFIG_QUEST_IGNORE_RAID , CONFIG_CHAT_PARTY_RAID_WARNINGS , CONFIG_DETECT_POS_COLLISION ,
  CONFIG_RESTRICTED_LFG_CHANNEL , CONFIG_CHAT_FAKE_MESSAGE_PREVENTING , 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_BATTLEGROUND_STORE_STATISTICS_ENABLE ,
  CONFIG_BG_XP_FOR_KILL , CONFIG_ARENA_QUEUE_ANNOUNCER_ENABLE , 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_PVP_TOKEN_ENABLE , CONFIG_NO_RESET_TALENT_COST , CONFIG_SHOW_KICK_IN_WORLD ,
  CONFIG_SHOW_MUTE_IN_WORLD , CONFIG_SHOW_BAN_IN_WORLD , CONFIG_AUTOBROADCAST , CONFIG_SUPPORT_ENABLED ,
  CONFIG_SUPPORT_TICKETS_ENABLED , CONFIG_SUPPORT_BUGS_ENABLED , CONFIG_SUPPORT_COMPLAINTS_ENABLED , CONFIG_SUPPORT_SUGGESTIONS_ENABLED ,
  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_QUEST_ENABLE_QUEST_TRACKER , CONFIG_WARDEN_ENABLED ,
  CONFIG_ENABLE_MMAPS , CONFIG_WINTERGRASP_ENABLE , CONFIG_TOLBARAD_ENABLE , CONFIG_EVENT_ANNOUNCE ,
  CONFIG_STATS_LIMITS_ENABLE , CONFIG_INSTANCES_RESET_ANNOUNCE , CONFIG_IP_BASED_ACTION_LOGGING , CONFIG_CALCULATE_CREATURE_ZONE_AREA_DATA ,
  CONFIG_CALCULATE_GAMEOBJECT_ZONE_AREA_DATA , CONFIG_FEATURE_SYSTEM_BPAY_STORE_ENABLED , CONFIG_FEATURE_SYSTEM_CHARACTER_UNDELETE_ENABLED , CONFIG_RESET_DUEL_COOLDOWNS ,
  CONFIG_RESET_DUEL_HEALTH_MANA , CONFIG_BASEMAP_LOAD_GRIDS , CONFIG_INSTANCEMAP_LOAD_GRIDS , CONFIG_BLACKMARKET_ENABLED ,
  CONFIG_HOTSWAP_ENABLED , CONFIG_HOTSWAP_RECOMPILER_ENABLED , CONFIG_HOTSWAP_EARLY_TERMINATION_ENABLED , CONFIG_HOTSWAP_BUILD_FILE_RECREATION_ENABLED ,
  CONFIG_HOTSWAP_INSTALL_ENABLED , CONFIG_HOTSWAP_PREFIX_CORRECTION_ENABLED , CONFIG_PREVENT_RENAME_CUSTOMIZATION , CONFIG_CACHE_DATA_QUERIES ,
  CONFIG_CREATURE_CHECK_INVALID_POSITION , CONFIG_GAME_OBJECT_CHECK_INVALID_POSITION , CONFIG_CHECK_GOBJECT_LOS , CONFIG_RESPAWN_DYNAMIC_ESCORTNPC ,
  CONFIG_REGEN_HP_CANNOT_REACH_TARGET_IN_RAID , CONFIG_ALLOW_LOGGING_IP_ADDRESSES_IN_DATABASE , CONFIG_CHARACTER_CREATING_DISABLE_ALLIED_RACE_ACHIEVEMENT_REQUIREMENT , CONFIG_BATTLEGROUNDMAP_LOAD_GRIDS ,
  CONFIG_ENABLE_AE_LOOT , CONFIG_LOAD_LOCALES , BOOL_CONFIG_VALUE_COUNT
}
 Configuration elements. More...
 
enum  WorldFloatConfigs {
  CONFIG_GROUP_XP_DISTANCE = 0 , CONFIG_MAX_RECRUIT_A_FRIEND_DISTANCE , CONFIG_SIGHT_MONSTER , 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_STATS_LIMITS_DODGE , CONFIG_STATS_LIMITS_PARRY , CONFIG_STATS_LIMITS_BLOCK ,
  CONFIG_STATS_LIMITS_CRIT , CONFIG_ARENA_WIN_RATING_MODIFIER_1 , CONFIG_ARENA_WIN_RATING_MODIFIER_2 , CONFIG_ARENA_LOSE_RATING_MODIFIER ,
  CONFIG_ARENA_MATCHMAKER_RATING_MODIFIER , CONFIG_RESPAWN_DYNAMICRATE_CREATURE , CONFIG_RESPAWN_DYNAMICRATE_GAMEOBJECT , CONFIG_CALL_TO_ARMS_5_PCT ,
  CONFIG_CALL_TO_ARMS_10_PCT , CONFIG_CALL_TO_ARMS_20_PCT , FLOAT_CONFIG_VALUE_COUNT
}
 
enum  WorldIntConfigs {
  CONFIG_COMPRESSION = 0 , CONFIG_INTERVAL_SAVE , CONFIG_INTERVAL_GRIDCLEAN , CONFIG_INTERVAL_MAPUPDATE ,
  CONFIG_INTERVAL_CHANGEWEATHER , CONFIG_INTERVAL_DISCONNECT_TOLERANCE , CONFIG_PORT_WORLD , CONFIG_PORT_INSTANCE ,
  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_CLASSMASK ,
  CONFIG_CHARACTERS_PER_ACCOUNT , CONFIG_CHARACTERS_PER_REALM , CONFIG_CHARACTER_CREATING_EVOKERS_PER_REALM , CONFIG_CHARACTER_CREATING_MIN_LEVEL_FOR_DEMON_HUNTER ,
  CONFIG_CHARACTER_CREATING_MIN_LEVEL_FOR_EVOKER , CONFIG_SKIP_CINEMATICS , CONFIG_MAX_PLAYER_LEVEL , CONFIG_MIN_DUALSPEC_LEVEL ,
  CONFIG_START_PLAYER_LEVEL , CONFIG_START_DEATH_KNIGHT_PLAYER_LEVEL , CONFIG_START_DEMON_HUNTER_PLAYER_LEVEL , CONFIG_START_EVOKER_PLAYER_LEVEL ,
  CONFIG_START_ALLIED_RACE_LEVEL , CONFIG_START_PLAYER_MONEY , CONFIG_CURRENCY_START_APEXIS_CRYSTALS , CONFIG_CURRENCY_MAX_APEXIS_CRYSTALS ,
  CONFIG_CURRENCY_START_JUSTICE_POINTS , CONFIG_CURRENCY_MAX_JUSTICE_POINTS , 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_RESET_SCHEDULE_WEEK_DAY ,
  CONFIG_RESET_SCHEDULE_HOUR , CONFIG_INSTANCE_UNLOAD_DELAY , CONFIG_DAILY_QUEST_RESET_TIME_HOUR , CONFIG_WEEKLY_QUEST_RESET_TIME_WDAY ,
  CONFIG_MAX_PRIMARY_TRADE_SKILL , CONFIG_MIN_PETITION_SIGNS , CONFIG_MIN_QUEST_SCALED_XP_RATIO , CONFIG_MIN_CREATURE_SCALED_XP_RATIO ,
  CONFIG_MIN_DISCOVERED_SCALED_XP_RATIO , CONFIG_GM_LOGIN_STATE , CONFIG_GM_VISIBLE_STATE , CONFIG_GM_CHAT ,
  CONFIG_GM_WHISPERING_TO , CONFIG_GM_FREEZE_DURATION , CONFIG_GM_LEVEL_IN_GM_LIST , CONFIG_GM_LEVEL_IN_WHO_LIST ,
  CONFIG_START_GM_LEVEL , CONFIG_FORCE_SHUTDOWN_THRESHOLD , CONFIG_GROUP_VISIBILITY , CONFIG_MAIL_DELIVERY_DELAY ,
  CONFIG_CLEAN_OLD_MAIL_TIME , 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_ADDON_MESSAGE_COUNT , CONFIG_CHATFLOOD_ADDON_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_EMOTE_LEVEL_REQ , CONFIG_CHAT_SAY_LEVEL_REQ ,
  CONFIG_CHAT_YELL_LEVEL_REQ , CONFIG_PARTY_LEVEL_REQ , CONFIG_TRADE_LEVEL_REQ , CONFIG_AUCTION_LEVEL_REQ ,
  CONFIG_MAIL_LEVEL_REQ , CONFIG_CORPSE_DECAY_NORMAL , CONFIG_CORPSE_DECAY_ELITE , CONFIG_CORPSE_DECAY_RAREELITE ,
  CONFIG_CORPSE_DECAY_OBSOLETE , CONFIG_CORPSE_DECAY_RARE , CONFIG_CORPSE_DECAY_TRIVIAL , CONFIG_CORPSE_DECAY_MINUSMOB ,
  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_BATTLEGROUND_REPORT_AFK , 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_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_CALENDAR_DELETE_OLD_EVENTS_HOUR , CONFIG_GUILD_RESET_HOUR ,
  CONFIG_CHARDELETE_KEEP_DAYS , CONFIG_CHARDELETE_METHOD , CONFIG_CHARDELETE_MIN_LEVEL , CONFIG_CHARDELETE_DEATH_KNIGHT_MIN_LEVEL ,
  CONFIG_CHARDELETE_DEMON_HUNTER_MIN_LEVEL , CONFIG_AUTOBROADCAST_CENTER , CONFIG_AUTOBROADCAST_INTERVAL , CONFIG_MAX_RESULTS_LOOKUP_COMMANDS ,
  CONFIG_DB_PING_INTERVAL , CONFIG_PRESERVE_CUSTOM_CHANNEL_DURATION , CONFIG_PRESERVE_CUSTOM_CHANNEL_INTERVAL , CONFIG_PERSISTENT_CHARACTER_CLEAN_FLAGS ,
  CONFIG_LFG_OPTIONSMASK , CONFIG_MAX_INSTANCES_PER_HOUR , CONFIG_XP_BOOST_DAYMASK , CONFIG_WARDEN_CLIENT_RESPONSE_DELAY ,
  CONFIG_WARDEN_CLIENT_CHECK_HOLDOFF , CONFIG_WARDEN_CLIENT_FAIL_ACTION , CONFIG_WARDEN_CLIENT_BAN_DURATION , CONFIG_WARDEN_NUM_INJECT_CHECKS ,
  CONFIG_WARDEN_NUM_LUA_CHECKS , CONFIG_WARDEN_NUM_CLIENT_MOD_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_TOLBARAD_PLR_MAX , CONFIG_TOLBARAD_PLR_MIN , CONFIG_TOLBARAD_PLR_MIN_LVL , CONFIG_TOLBARAD_BATTLETIME ,
  CONFIG_TOLBARAD_BONUSTIME , CONFIG_TOLBARAD_NOBATTLETIME , CONFIG_TOLBARAD_RESTART_AFTER_CRASH , CONFIG_GUILD_SAVE_INTERVAL ,
  CONFIG_PACKET_SPOOF_POLICY , CONFIG_PACKET_SPOOF_BANMODE , CONFIG_PACKET_SPOOF_BANDURATION , CONFIG_ACC_PASSCHANGESEC ,
  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_CREATURE_PICKPOCKET_REFILL , CONFIG_CREATURE_STOP_FOR_PLAYER ,
  CONFIG_AHBOT_UPDATE_INTERVAL , CONFIG_FEATURE_SYSTEM_CHARACTER_UNDELETE_COOLDOWN , CONFIG_CHARTER_COST_GUILD , CONFIG_CHARTER_COST_ARENA_2v2 ,
  CONFIG_CHARTER_COST_ARENA_3v3 , CONFIG_CHARTER_COST_ARENA_5v5 , CONFIG_NO_GRAY_AGGRO_ABOVE , CONFIG_NO_GRAY_AGGRO_BELOW ,
  CONFIG_AUCTION_REPLICATE_DELAY , CONFIG_AUCTION_SEARCH_DELAY , CONFIG_AUCTION_TAINTED_SEARCH_DELAY , CONFIG_TALENTS_INSPECTING ,
  CONFIG_RESPAWN_MINCHECKINTERVALMS , CONFIG_RESPAWN_DYNAMICMODE , CONFIG_RESPAWN_GUIDWARNLEVEL , CONFIG_RESPAWN_GUIDALERTLEVEL ,
  CONFIG_RESPAWN_RESTARTQUIETTIME , CONFIG_RESPAWN_DYNAMICMINIMUM_CREATURE , CONFIG_RESPAWN_DYNAMICMINIMUM_GAMEOBJECT , CONFIG_RESPAWN_GUIDWARNING_FREQUENCY ,
  CONFIG_SOCKET_TIMEOUTTIME_ACTIVE , CONFIG_BLACKMARKET_MAXAUCTIONS , CONFIG_BLACKMARKET_UPDATE_PERIOD , CONFIG_FACTION_BALANCE_LEVEL_CHECK_DIFF ,
  INT_CONFIG_VALUE_COUNT
}
 
enum  WorldInt64Configs { CONFIG_CHARACTER_CREATING_DISABLED_RACEMASK , INT64_CONFIT_VALUE_COUNT }
 
enum  Rates {
  RATE_HEALTH = 0 , RATE_POWER_MANA , RATE_POWER_RAGE_INCOME , RATE_POWER_RAGE_LOSS ,
  RATE_POWER_FOCUS , RATE_POWER_ENERGY , RATE_POWER_COMBO_POINTS_LOSS , RATE_POWER_RUNIC_POWER_INCOME ,
  RATE_POWER_RUNIC_POWER_LOSS , RATE_POWER_SOUL_SHARDS , RATE_POWER_LUNAR_POWER , RATE_POWER_HOLY_POWER ,
  RATE_POWER_MAELSTROM , RATE_POWER_CHI , RATE_POWER_INSANITY , RATE_POWER_ARCANE_CHARGES ,
  RATE_POWER_FURY , RATE_POWER_PAIN , RATE_POWER_ESSENCE , 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_BG_KILL ,
  RATE_XP_QUEST , RATE_XP_GUILD_MODIFIER , RATE_XP_EXPLORE , RATE_REPAIRCOST ,
  RATE_REPUTATION_GAIN , RATE_REPUTATION_LOWLEVEL_KILL , RATE_REPUTATION_LOWLEVEL_QUEST , RATE_REPUTATION_RECRUIT_A_FRIEND_BONUS ,
  RATE_CREATURE_HP_NORMAL , RATE_CREATURE_HP_ELITE , RATE_CREATURE_HP_RAREELITE , RATE_CREATURE_HP_OBSOLETE ,
  RATE_CREATURE_HP_RARE , RATE_CREATURE_HP_TRIVIAL , RATE_CREATURE_HP_MINUSMOB , RATE_CREATURE_DAMAGE_NORMAL ,
  RATE_CREATURE_DAMAGE_ELITE , RATE_CREATURE_DAMAGE_RAREELITE , RATE_CREATURE_DAMAGE_OBSOLETE , RATE_CREATURE_DAMAGE_RARE ,
  RATE_CREATURE_DAMAGE_TRIVIAL , RATE_CREATURE_DAMAGE_MINUSMOB , RATE_CREATURE_SPELLDAMAGE_NORMAL , RATE_CREATURE_SPELLDAMAGE_ELITE ,
  RATE_CREATURE_SPELLDAMAGE_RAREELITE , RATE_CREATURE_SPELLDAMAGE_OBSOLETE , RATE_CREATURE_SPELLDAMAGE_RARE , RATE_CREATURE_SPELLDAMAGE_TRIVIAL ,
  RATE_CREATURE_SPELLDAMAGE_MINUSMOB , 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_TALENT , RATE_CORPSE_DECAY_LOOTED ,
  RATE_INSTANCE_RESET_TIME , RATE_DURABILITY_LOSS_ON_DEATH , RATE_DURABILITY_LOSS_DAMAGE , RATE_DURABILITY_LOSS_PARRY ,
  RATE_DURABILITY_LOSS_ABSORB , RATE_DURABILITY_LOSS_BLOCK , RATE_MOVESPEED , RATE_XP_BOOST ,
  RATE_MONEY_QUEST , RATE_MONEY_MAX_LEVEL_QUEST , MAX_RATES
}
 Server rates. More...
 

Functions

 Weather::Weather (uint32 zoneId, WeatherData const *weatherChances)
 Create the Weather object. More...
 
 Weather::~Weather ()
 
bool Weather::Update (uint32 diff)
 Launch a weather update. More...
 
bool Weather::ReGenerate ()
 Calculate the new weather. More...
 
bool Weather::UpdateWeather ()
 Send the new weather to all players in the zone. More...
 
void Weather::SendWeatherUpdateToPlayer (Player *player)
 
static void Weather::SendFineWeatherUpdateToPlayer (Player *player)
 
void Weather::SetWeather (WeatherType type, float intensity)
 Set the weather. More...
 
WeatherState Weather::GetWeatherState () const
 Get the sound number associated with the current weather. More...
 
uint32 Weather::GetZone () const
 For which zone is this weather? More...
 
uint32 Weather::GetScriptId () const
 
void WeatherMgr::LoadWeatherData ()
 
WeatherData const * WeatherMgr::GetWeatherData (uint32 zone_id)
 
TC_GAME_API uint32 GetVirtualRealmAddress ()
 

Variables

uint32 WeatherSeasonChances::rainChance
 
uint32 WeatherSeasonChances::snowChance
 
uint32 WeatherSeasonChances::stormChance
 
WeatherSeasonChances WeatherData::data [WEATHER_SEASONS]
 
uint32 WeatherData::ScriptId
 
uint32 Weather::m_zone
 
WeatherType Weather::m_type
 
float Weather::m_intensity
 
IntervalTimer Weather::m_timer
 
WeatherData const * Weather::m_weatherChances
 

Detailed Description

Macro Definition Documentation

◆ sWorld

#define sWorld   World::instance()

Definition at line 929 of file World.h.

◆ WEATHER_SEASONS

#define WEATHER_SEASONS   4

Definition at line 31 of file Weather.h.

Typedef Documentation

◆ SessionMap

typedef std::unordered_map<uint32, WorldSession*> SessionMap

Definition at line 559 of file World.h.

Enumeration Type Documentation

◆ Rates

enum Rates

Server rates.

Enumerator
RATE_HEALTH 
RATE_POWER_MANA 
RATE_POWER_RAGE_INCOME 
RATE_POWER_RAGE_LOSS 
RATE_POWER_FOCUS 
RATE_POWER_ENERGY 
RATE_POWER_COMBO_POINTS_LOSS 
RATE_POWER_RUNIC_POWER_INCOME 
RATE_POWER_RUNIC_POWER_LOSS 
RATE_POWER_SOUL_SHARDS 
RATE_POWER_LUNAR_POWER 
RATE_POWER_HOLY_POWER 
RATE_POWER_MAELSTROM 
RATE_POWER_CHI 
RATE_POWER_INSANITY 
RATE_POWER_ARCANE_CHARGES 
RATE_POWER_FURY 
RATE_POWER_PAIN 
RATE_POWER_ESSENCE 
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_BG_KILL 
RATE_XP_QUEST 
RATE_XP_GUILD_MODIFIER 
RATE_XP_EXPLORE 
RATE_REPAIRCOST 
RATE_REPUTATION_GAIN 
RATE_REPUTATION_LOWLEVEL_KILL 
RATE_REPUTATION_LOWLEVEL_QUEST 
RATE_REPUTATION_RECRUIT_A_FRIEND_BONUS 
RATE_CREATURE_HP_NORMAL 
RATE_CREATURE_HP_ELITE 
RATE_CREATURE_HP_RAREELITE 
RATE_CREATURE_HP_OBSOLETE 
RATE_CREATURE_HP_RARE 
RATE_CREATURE_HP_TRIVIAL 
RATE_CREATURE_HP_MINUSMOB 
RATE_CREATURE_DAMAGE_NORMAL 
RATE_CREATURE_DAMAGE_ELITE 
RATE_CREATURE_DAMAGE_RAREELITE 
RATE_CREATURE_DAMAGE_OBSOLETE 
RATE_CREATURE_DAMAGE_RARE 
RATE_CREATURE_DAMAGE_TRIVIAL 
RATE_CREATURE_DAMAGE_MINUSMOB 
RATE_CREATURE_SPELLDAMAGE_NORMAL 
RATE_CREATURE_SPELLDAMAGE_ELITE 
RATE_CREATURE_SPELLDAMAGE_RAREELITE 
RATE_CREATURE_SPELLDAMAGE_OBSOLETE 
RATE_CREATURE_SPELLDAMAGE_RARE 
RATE_CREATURE_SPELLDAMAGE_TRIVIAL 
RATE_CREATURE_SPELLDAMAGE_MINUSMOB 
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_TALENT 
RATE_CORPSE_DECAY_LOOTED 
RATE_INSTANCE_RESET_TIME 
RATE_DURABILITY_LOSS_ON_DEATH 
RATE_DURABILITY_LOSS_DAMAGE 
RATE_DURABILITY_LOSS_PARRY 
RATE_DURABILITY_LOSS_ABSORB 
RATE_DURABILITY_LOSS_BLOCK 
RATE_MOVESPEED 
RATE_XP_BOOST 
RATE_MONEY_QUEST 
RATE_MONEY_MAX_LEVEL_QUEST 
MAX_RATES 

Definition at line 451 of file World.h.

◆ ServerMessageType

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 

Definition at line 47 of file World.h.

◆ ShutdownExitCode

Enumerator
SHUTDOWN_EXIT_CODE 
ERROR_EXIT_CODE 
RESTART_EXIT_CODE 

Definition at line 71 of file World.h.

◆ ShutdownMask

Enumerator
SHUTDOWN_MASK_RESTART 
SHUTDOWN_MASK_IDLE 
SHUTDOWN_MASK_FORCE 

Definition at line 64 of file World.h.

◆ WeatherState

Enumerator
WEATHER_STATE_FINE 
WEATHER_STATE_FOG 
WEATHER_STATE_DRIZZLE 
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 45 of file Weather.h.

◆ WorldBoolConfigs

Configuration elements.

Enumerator
CONFIG_DURABILITY_LOSS_IN_PVP 
CONFIG_ADDON_CHANNEL 
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_WEATHER 
CONFIG_QUEST_IGNORE_RAID 
CONFIG_CHAT_PARTY_RAID_WARNINGS 
CONFIG_DETECT_POS_COLLISION 
CONFIG_RESTRICTED_LFG_CHANNEL 
CONFIG_CHAT_FAKE_MESSAGE_PREVENTING 
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_BATTLEGROUND_STORE_STATISTICS_ENABLE 
CONFIG_BG_XP_FOR_KILL 
CONFIG_ARENA_QUEUE_ANNOUNCER_ENABLE 
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_PVP_TOKEN_ENABLE 
CONFIG_NO_RESET_TALENT_COST 
CONFIG_SHOW_KICK_IN_WORLD 
CONFIG_SHOW_MUTE_IN_WORLD 
CONFIG_SHOW_BAN_IN_WORLD 
CONFIG_AUTOBROADCAST 
CONFIG_SUPPORT_ENABLED 
CONFIG_SUPPORT_TICKETS_ENABLED 
CONFIG_SUPPORT_BUGS_ENABLED 
CONFIG_SUPPORT_COMPLAINTS_ENABLED 
CONFIG_SUPPORT_SUGGESTIONS_ENABLED 
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_QUEST_ENABLE_QUEST_TRACKER 
CONFIG_WARDEN_ENABLED 
CONFIG_ENABLE_MMAPS 
CONFIG_WINTERGRASP_ENABLE 
CONFIG_TOLBARAD_ENABLE 
CONFIG_EVENT_ANNOUNCE 
CONFIG_STATS_LIMITS_ENABLE 
CONFIG_INSTANCES_RESET_ANNOUNCE 
CONFIG_IP_BASED_ACTION_LOGGING 
CONFIG_CALCULATE_CREATURE_ZONE_AREA_DATA 
CONFIG_CALCULATE_GAMEOBJECT_ZONE_AREA_DATA 
CONFIG_FEATURE_SYSTEM_BPAY_STORE_ENABLED 
CONFIG_FEATURE_SYSTEM_CHARACTER_UNDELETE_ENABLED 
CONFIG_RESET_DUEL_COOLDOWNS 
CONFIG_RESET_DUEL_HEALTH_MANA 
CONFIG_BASEMAP_LOAD_GRIDS 
CONFIG_INSTANCEMAP_LOAD_GRIDS 
CONFIG_BLACKMARKET_ENABLED 
CONFIG_HOTSWAP_ENABLED 
CONFIG_HOTSWAP_RECOMPILER_ENABLED 
CONFIG_HOTSWAP_EARLY_TERMINATION_ENABLED 
CONFIG_HOTSWAP_BUILD_FILE_RECREATION_ENABLED 
CONFIG_HOTSWAP_INSTALL_ENABLED 
CONFIG_HOTSWAP_PREFIX_CORRECTION_ENABLED 
CONFIG_PREVENT_RENAME_CUSTOMIZATION 
CONFIG_CACHE_DATA_QUERIES 
CONFIG_CREATURE_CHECK_INVALID_POSITION 
CONFIG_GAME_OBJECT_CHECK_INVALID_POSITION 
CONFIG_CHECK_GOBJECT_LOS 
CONFIG_RESPAWN_DYNAMIC_ESCORTNPC 
CONFIG_REGEN_HP_CANNOT_REACH_TARGET_IN_RAID 
CONFIG_ALLOW_LOGGING_IP_ADDRESSES_IN_DATABASE 
CONFIG_CHARACTER_CREATING_DISABLE_ALLIED_RACE_ACHIEVEMENT_REQUIREMENT 
CONFIG_BATTLEGROUNDMAP_LOAD_GRIDS 
CONFIG_ENABLE_AE_LOOT 
CONFIG_LOAD_LOCALES 
BOOL_CONFIG_VALUE_COUNT 

Definition at line 101 of file World.h.

◆ WorldFloatConfigs

Enumerator
CONFIG_GROUP_XP_DISTANCE 
CONFIG_MAX_RECRUIT_A_FRIEND_DISTANCE 
CONFIG_SIGHT_MONSTER 
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_STATS_LIMITS_DODGE 
CONFIG_STATS_LIMITS_PARRY 
CONFIG_STATS_LIMITS_BLOCK 
CONFIG_STATS_LIMITS_CRIT 
CONFIG_ARENA_WIN_RATING_MODIFIER_1 
CONFIG_ARENA_WIN_RATING_MODIFIER_2 
CONFIG_ARENA_LOSE_RATING_MODIFIER 
CONFIG_ARENA_MATCHMAKER_RATING_MODIFIER 
CONFIG_RESPAWN_DYNAMICRATE_CREATURE 
CONFIG_RESPAWN_DYNAMICRATE_GAMEOBJECT 
CONFIG_CALL_TO_ARMS_5_PCT 
CONFIG_CALL_TO_ARMS_10_PCT 
CONFIG_CALL_TO_ARMS_20_PCT 
FLOAT_CONFIG_VALUE_COUNT 

Definition at line 204 of file World.h.

◆ WorldInt64Configs

Enumerator
CONFIG_CHARACTER_CREATING_DISABLED_RACEMASK 
INT64_CONFIT_VALUE_COUNT 

Definition at line 444 of file World.h.

◆ WorldIntConfigs

Enumerator
CONFIG_COMPRESSION 
CONFIG_INTERVAL_SAVE 
CONFIG_INTERVAL_GRIDCLEAN 
CONFIG_INTERVAL_MAPUPDATE 
CONFIG_INTERVAL_CHANGEWEATHER 
CONFIG_INTERVAL_DISCONNECT_TOLERANCE 
CONFIG_PORT_WORLD 
CONFIG_PORT_INSTANCE 
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_CLASSMASK 
CONFIG_CHARACTERS_PER_ACCOUNT 
CONFIG_CHARACTERS_PER_REALM 
CONFIG_CHARACTER_CREATING_EVOKERS_PER_REALM 
CONFIG_CHARACTER_CREATING_MIN_LEVEL_FOR_DEMON_HUNTER 
CONFIG_CHARACTER_CREATING_MIN_LEVEL_FOR_EVOKER 
CONFIG_SKIP_CINEMATICS 
CONFIG_MAX_PLAYER_LEVEL 
CONFIG_MIN_DUALSPEC_LEVEL 
CONFIG_START_PLAYER_LEVEL 
CONFIG_START_DEATH_KNIGHT_PLAYER_LEVEL 
CONFIG_START_DEMON_HUNTER_PLAYER_LEVEL 
CONFIG_START_EVOKER_PLAYER_LEVEL 
CONFIG_START_ALLIED_RACE_LEVEL 
CONFIG_START_PLAYER_MONEY 
CONFIG_CURRENCY_START_APEXIS_CRYSTALS 
CONFIG_CURRENCY_MAX_APEXIS_CRYSTALS 
CONFIG_CURRENCY_START_JUSTICE_POINTS 
CONFIG_CURRENCY_MAX_JUSTICE_POINTS 
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_RESET_SCHEDULE_WEEK_DAY 
CONFIG_RESET_SCHEDULE_HOUR 
CONFIG_INSTANCE_UNLOAD_DELAY 
CONFIG_DAILY_QUEST_RESET_TIME_HOUR 
CONFIG_WEEKLY_QUEST_RESET_TIME_WDAY 
CONFIG_MAX_PRIMARY_TRADE_SKILL 
CONFIG_MIN_PETITION_SIGNS 
CONFIG_MIN_QUEST_SCALED_XP_RATIO 
CONFIG_MIN_CREATURE_SCALED_XP_RATIO 
CONFIG_MIN_DISCOVERED_SCALED_XP_RATIO 
CONFIG_GM_LOGIN_STATE 
CONFIG_GM_VISIBLE_STATE 
CONFIG_GM_CHAT 
CONFIG_GM_WHISPERING_TO 
CONFIG_GM_FREEZE_DURATION 
CONFIG_GM_LEVEL_IN_GM_LIST 
CONFIG_GM_LEVEL_IN_WHO_LIST 
CONFIG_START_GM_LEVEL 
CONFIG_FORCE_SHUTDOWN_THRESHOLD 
CONFIG_GROUP_VISIBILITY 
CONFIG_MAIL_DELIVERY_DELAY 
CONFIG_CLEAN_OLD_MAIL_TIME 
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_ADDON_MESSAGE_COUNT 
CONFIG_CHATFLOOD_ADDON_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_EMOTE_LEVEL_REQ 
CONFIG_CHAT_SAY_LEVEL_REQ 
CONFIG_CHAT_YELL_LEVEL_REQ 
CONFIG_PARTY_LEVEL_REQ 
CONFIG_TRADE_LEVEL_REQ 
CONFIG_AUCTION_LEVEL_REQ 
CONFIG_MAIL_LEVEL_REQ 
CONFIG_CORPSE_DECAY_NORMAL 
CONFIG_CORPSE_DECAY_ELITE 
CONFIG_CORPSE_DECAY_RAREELITE 
CONFIG_CORPSE_DECAY_OBSOLETE 
CONFIG_CORPSE_DECAY_RARE 
CONFIG_CORPSE_DECAY_TRIVIAL 
CONFIG_CORPSE_DECAY_MINUSMOB 
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_BATTLEGROUND_REPORT_AFK 
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_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_CALENDAR_DELETE_OLD_EVENTS_HOUR 
CONFIG_GUILD_RESET_HOUR 
CONFIG_CHARDELETE_KEEP_DAYS 
CONFIG_CHARDELETE_METHOD 
CONFIG_CHARDELETE_MIN_LEVEL 
CONFIG_CHARDELETE_DEATH_KNIGHT_MIN_LEVEL 
CONFIG_CHARDELETE_DEMON_HUNTER_MIN_LEVEL 
CONFIG_AUTOBROADCAST_CENTER 
CONFIG_AUTOBROADCAST_INTERVAL 
CONFIG_MAX_RESULTS_LOOKUP_COMMANDS 
CONFIG_DB_PING_INTERVAL 
CONFIG_PRESERVE_CUSTOM_CHANNEL_DURATION 
CONFIG_PRESERVE_CUSTOM_CHANNEL_INTERVAL 
CONFIG_PERSISTENT_CHARACTER_CLEAN_FLAGS 
CONFIG_LFG_OPTIONSMASK 
CONFIG_MAX_INSTANCES_PER_HOUR 
CONFIG_XP_BOOST_DAYMASK 
CONFIG_WARDEN_CLIENT_RESPONSE_DELAY 
CONFIG_WARDEN_CLIENT_CHECK_HOLDOFF 
CONFIG_WARDEN_CLIENT_FAIL_ACTION 
CONFIG_WARDEN_CLIENT_BAN_DURATION 
CONFIG_WARDEN_NUM_INJECT_CHECKS 
CONFIG_WARDEN_NUM_LUA_CHECKS 
CONFIG_WARDEN_NUM_CLIENT_MOD_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_TOLBARAD_PLR_MAX 
CONFIG_TOLBARAD_PLR_MIN 
CONFIG_TOLBARAD_PLR_MIN_LVL 
CONFIG_TOLBARAD_BATTLETIME 
CONFIG_TOLBARAD_BONUSTIME 
CONFIG_TOLBARAD_NOBATTLETIME 
CONFIG_TOLBARAD_RESTART_AFTER_CRASH 
CONFIG_GUILD_SAVE_INTERVAL 
CONFIG_PACKET_SPOOF_POLICY 
CONFIG_PACKET_SPOOF_BANMODE 
CONFIG_PACKET_SPOOF_BANDURATION 
CONFIG_ACC_PASSCHANGESEC 
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_CREATURE_PICKPOCKET_REFILL 
CONFIG_CREATURE_STOP_FOR_PLAYER 
CONFIG_AHBOT_UPDATE_INTERVAL 
CONFIG_FEATURE_SYSTEM_CHARACTER_UNDELETE_COOLDOWN 
CONFIG_CHARTER_COST_GUILD 
CONFIG_CHARTER_COST_ARENA_2v2 
CONFIG_CHARTER_COST_ARENA_3v3 
CONFIG_CHARTER_COST_ARENA_5v5 
CONFIG_NO_GRAY_AGGRO_ABOVE 
CONFIG_NO_GRAY_AGGRO_BELOW 
CONFIG_AUCTION_REPLICATE_DELAY 
CONFIG_AUCTION_SEARCH_DELAY 
CONFIG_AUCTION_TAINTED_SEARCH_DELAY 
CONFIG_TALENTS_INSPECTING 
CONFIG_RESPAWN_MINCHECKINTERVALMS 
CONFIG_RESPAWN_DYNAMICMODE 
CONFIG_RESPAWN_GUIDWARNLEVEL 
CONFIG_RESPAWN_GUIDALERTLEVEL 
CONFIG_RESPAWN_RESTARTQUIETTIME 
CONFIG_RESPAWN_DYNAMICMINIMUM_CREATURE 
CONFIG_RESPAWN_DYNAMICMINIMUM_GAMEOBJECT 
CONFIG_RESPAWN_GUIDWARNING_FREQUENCY 
CONFIG_SOCKET_TIMEOUTTIME_ACTIVE 
CONFIG_BLACKMARKET_MAXAUCTIONS 
CONFIG_BLACKMARKET_UPDATE_PERIOD 
CONFIG_FACTION_BALANCE_LEVEL_CHECK_DIFF 
INT_CONFIG_VALUE_COUNT 

Definition at line 231 of file World.h.

◆ WorldTimers

Timers for different object refresh rates.

Enumerator
WUPDATE_AUCTIONS 
WUPDATE_AUCTIONS_PENDING 
WUPDATE_UPTIME 
WUPDATE_CORPSES 
WUPDATE_EVENTS 
WUPDATE_CLEANDB 
WUPDATE_AUTOBROADCAST 
WUPDATE_MAILBOXQUEUE 
WUPDATE_DELETECHARS 
WUPDATE_AHBOT 
WUPDATE_PINGDB 
WUPDATE_GUILDSAVE 
WUPDATE_BLACKMARKET 
WUPDATE_CHECK_FILECHANGES 
WUPDATE_WHO_LIST 
WUPDATE_CHANNEL_SAVE 
WUPDATE_COUNT 

Definition at line 79 of file World.h.

Function Documentation

◆ GetScriptId()

uint32 Weather::GetScriptId ( ) const
inline

Definition at line 83 of file Weather.h.

+ Here is the caller graph for this function:

◆ GetVirtualRealmAddress()

TC_GAME_API uint32 GetVirtualRealmAddress ( )

Definition at line 4008 of file World.cpp.

+ Here is the caller graph for this function:

◆ GetWeatherData()

TC_GAME_API WeatherData const * WeatherMgr::GetWeatherData ( uint32  zone_id)

Definition at line 38 of file WeatherMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetWeatherState()

WeatherState Weather::GetWeatherState ( ) const

Get the sound number associated with the current weather.

Definition at line 285 of file Weather.cpp.

+ Here is the caller graph for this function:

◆ GetZone()

uint32 Weather::GetZone ( ) const
inline

For which zone is this weather?

Definition at line 82 of file Weather.h.

◆ LoadWeatherData()

TC_GAME_API void WeatherMgr::LoadWeatherData ( )

Definition at line 43 of file WeatherMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ReGenerate()

bool Weather::ReGenerate ( )

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 69 of file Weather.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendFineWeatherUpdateToPlayer()

void Weather::SendFineWeatherUpdateToPlayer ( Player player)
static

Definition at line 199 of file Weather.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendWeatherUpdateToPlayer()

void Weather::SendWeatherUpdateToPlayer ( Player player)

Definition at line 193 of file Weather.cpp.

+ Here is the call graph for this function:

◆ SetWeather()

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

Set the weather.

Definition at line 274 of file Weather.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Update()

bool Weather::Update ( uint32  diff)

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 44 of file Weather.cpp.

+ Here is the call graph for this function:

◆ UpdateWeather()

bool Weather::UpdateWeather ( )

Send the new weather to all players in the zone.

  • Send the weather packet to all players in this zone
  • Log the event

Definition at line 206 of file Weather.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Weather()

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

Create the Weather object.

Definition at line 33 of file Weather.cpp.

+ Here is the call graph for this function:

◆ ~Weather()

Weather::~Weather ( )
inline

Definition at line 70 of file Weather.h.

Variable Documentation

◆ data

Definition at line 41 of file Weather.h.

◆ m_intensity

float Weather::m_intensity
private

Definition at line 88 of file Weather.h.

◆ m_timer

IntervalTimer Weather::m_timer
private

Definition at line 89 of file Weather.h.

◆ m_type

WeatherType Weather::m_type
private

Definition at line 87 of file Weather.h.

◆ m_weatherChances

WeatherData const* Weather::m_weatherChances
private

Definition at line 90 of file Weather.h.

◆ m_zone

uint32 Weather::m_zone
private

Definition at line 86 of file Weather.h.

◆ rainChance

uint32 WeatherSeasonChances::rainChance

Definition at line 34 of file Weather.h.

◆ ScriptId

uint32 WeatherData::ScriptId

Definition at line 42 of file Weather.h.

◆ snowChance

uint32 WeatherSeasonChances::snowChance

Definition at line 35 of file Weather.h.

◆ stormChance

uint32 WeatherSeasonChances::stormChance

Definition at line 36 of file Weather.h.