TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Channel.h File Reference
#include "Common.h"
#include "ObjectGuid.h"
#include "WorldPacket.h"
+ Include dependency graph for Channel.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Channel
 
struct  Channel::PlayerInfo
 

Namespaces

 WorldPackets
 
 WorldPackets::Channel
 

Enumerations

enum  ChatNotify {
  CHAT_JOINED_NOTICE = 0x00, CHAT_LEFT_NOTICE = 0x01, CHAT_YOU_JOINED_NOTICE = 0x02, CHAT_YOU_LEFT_NOTICE = 0x03,
  CHAT_WRONG_PASSWORD_NOTICE = 0x04, CHAT_NOT_MEMBER_NOTICE = 0x05, CHAT_NOT_MODERATOR_NOTICE = 0x06, CHAT_PASSWORD_CHANGED_NOTICE = 0x07,
  CHAT_OWNER_CHANGED_NOTICE = 0x08, CHAT_PLAYER_NOT_FOUND_NOTICE = 0x09, CHAT_NOT_OWNER_NOTICE = 0x0A, CHAT_CHANNEL_OWNER_NOTICE = 0x0B,
  CHAT_MODE_CHANGE_NOTICE = 0x0C, CHAT_ANNOUNCEMENTS_ON_NOTICE = 0x0D, CHAT_ANNOUNCEMENTS_OFF_NOTICE = 0x0E, CHAT_MODERATION_ON_NOTICE = 0x0F,
  CHAT_MODERATION_OFF_NOTICE = 0x10, CHAT_MUTED_NOTICE = 0x11, CHAT_PLAYER_KICKED_NOTICE = 0x12, CHAT_BANNED_NOTICE = 0x13,
  CHAT_PLAYER_BANNED_NOTICE = 0x14, CHAT_PLAYER_UNBANNED_NOTICE = 0x15, CHAT_PLAYER_NOT_BANNED_NOTICE = 0x16, CHAT_PLAYER_ALREADY_MEMBER_NOTICE = 0x17,
  CHAT_INVITE_NOTICE = 0x18, CHAT_INVITE_WRONG_FACTION_NOTICE = 0x19, CHAT_WRONG_FACTION_NOTICE = 0x1A, CHAT_INVALID_NAME_NOTICE = 0x1B,
  CHAT_NOT_MODERATED_NOTICE = 0x1C, CHAT_PLAYER_INVITED_NOTICE = 0x1D, CHAT_PLAYER_INVITE_BANNED_NOTICE = 0x1E, CHAT_THROTTLED_NOTICE = 0x1F,
  CHAT_NOT_IN_AREA_NOTICE = 0x20, CHAT_NOT_IN_LFG_NOTICE = 0x21, CHAT_VOICE_ON_NOTICE = 0x22, CHAT_VOICE_OFF_NOTICE = 0x23,
  CHAT_TRIAL_RESTRICTED = 0x24, CHAT_NOT_ALLOWED_IN_CHANNEL = 0x25
}
 
enum  ChannelFlags {
  CHANNEL_FLAG_NONE = 0x00, CHANNEL_FLAG_CUSTOM = 0x01, CHANNEL_FLAG_TRADE = 0x04, CHANNEL_FLAG_NOT_LFG = 0x08,
  CHANNEL_FLAG_GENERAL = 0x10, CHANNEL_FLAG_CITY = 0x20, CHANNEL_FLAG_LFG = 0x40, CHANNEL_FLAG_VOICE = 0x80
}
 
enum  ChannelDBCFlags {
  CHANNEL_DBC_FLAG_NONE = 0x00000, CHANNEL_DBC_FLAG_INITIAL = 0x00001, CHANNEL_DBC_FLAG_ZONE_DEP = 0x00002, CHANNEL_DBC_FLAG_GLOBAL = 0x00004,
  CHANNEL_DBC_FLAG_TRADE = 0x00008, CHANNEL_DBC_FLAG_CITY_ONLY = 0x00010, CHANNEL_DBC_FLAG_CITY_ONLY2 = 0x00020, CHANNEL_DBC_FLAG_DEFENSE = 0x10000,
  CHANNEL_DBC_FLAG_GUILD_REQ = 0x20000, CHANNEL_DBC_FLAG_LFG = 0x40000, CHANNEL_DBC_FLAG_UNK1 = 0x80000
}
 
enum  ChannelMemberFlags {
  MEMBER_FLAG_NONE = 0x00, MEMBER_FLAG_OWNER = 0x01, MEMBER_FLAG_MODERATOR = 0x02, MEMBER_FLAG_VOICED = 0x04,
  MEMBER_FLAG_MUTED = 0x08, MEMBER_FLAG_CUSTOM = 0x10, MEMBER_FLAG_MIC_MUTED = 0x20
}
 

Enumeration Type Documentation

Enumerator
CHANNEL_DBC_FLAG_NONE 
CHANNEL_DBC_FLAG_INITIAL 
CHANNEL_DBC_FLAG_ZONE_DEP 
CHANNEL_DBC_FLAG_GLOBAL 
CHANNEL_DBC_FLAG_TRADE 
CHANNEL_DBC_FLAG_CITY_ONLY 
CHANNEL_DBC_FLAG_CITY_ONLY2 
CHANNEL_DBC_FLAG_DEFENSE 
CHANNEL_DBC_FLAG_GUILD_REQ 
CHANNEL_DBC_FLAG_LFG 
CHANNEL_DBC_FLAG_UNK1 
99 {
100  CHANNEL_DBC_FLAG_NONE = 0x00000,
101  CHANNEL_DBC_FLAG_INITIAL = 0x00001, // General, Trade, LocalDefense, LFG
102  CHANNEL_DBC_FLAG_ZONE_DEP = 0x00002, // General, Trade, LocalDefense, GuildRecruitment
103  CHANNEL_DBC_FLAG_GLOBAL = 0x00004, // WorldDefense
104  CHANNEL_DBC_FLAG_TRADE = 0x00008, // Trade, LFG
105  CHANNEL_DBC_FLAG_CITY_ONLY = 0x00010, // Trade, GuildRecruitment, LFG
106  CHANNEL_DBC_FLAG_CITY_ONLY2 = 0x00020, // Trade, GuildRecruitment, LFG
107  CHANNEL_DBC_FLAG_DEFENSE = 0x10000, // LocalDefense, WorldDefense
108  CHANNEL_DBC_FLAG_GUILD_REQ = 0x20000, // GuildRecruitment
109  CHANNEL_DBC_FLAG_LFG = 0x40000, // LFG
110  CHANNEL_DBC_FLAG_UNK1 = 0x80000 // General
111 };
Definition: Channel.h:102
Definition: Channel.h:106
Definition: Channel.h:109
Definition: Channel.h:108
Definition: Channel.h:105
Definition: Channel.h:101
Definition: Channel.h:103
Definition: Channel.h:107
Definition: Channel.h:104
Definition: Channel.h:110
Definition: Channel.h:100
Enumerator
CHANNEL_FLAG_NONE 
CHANNEL_FLAG_CUSTOM 
CHANNEL_FLAG_TRADE 
CHANNEL_FLAG_NOT_LFG 
CHANNEL_FLAG_GENERAL 
CHANNEL_FLAG_CITY 
CHANNEL_FLAG_LFG 
CHANNEL_FLAG_VOICE 
81 {
82  CHANNEL_FLAG_NONE = 0x00,
83  CHANNEL_FLAG_CUSTOM = 0x01,
84  // 0x02
85  CHANNEL_FLAG_TRADE = 0x04,
86  CHANNEL_FLAG_NOT_LFG = 0x08,
87  CHANNEL_FLAG_GENERAL = 0x10,
88  CHANNEL_FLAG_CITY = 0x20,
89  CHANNEL_FLAG_LFG = 0x40,
90  CHANNEL_FLAG_VOICE = 0x80
91  // General 0x18 = 0x10 | 0x08
92  // Trade 0x3C = 0x20 | 0x10 | 0x08 | 0x04
93  // LocalDefence 0x18 = 0x10 | 0x08
94  // GuildRecruitment 0x38 = 0x20 | 0x10 | 0x08
95  // LookingForGroup 0x50 = 0x40 | 0x10
96 };
Definition: Channel.h:89
Definition: Channel.h:82
Definition: Channel.h:83
Definition: Channel.h:88
Definition: Channel.h:85
Definition: Channel.h:87
Definition: Channel.h:90
Definition: Channel.h:86
Enumerator
MEMBER_FLAG_NONE 
MEMBER_FLAG_OWNER 
MEMBER_FLAG_MODERATOR 
MEMBER_FLAG_VOICED 
MEMBER_FLAG_MUTED 
MEMBER_FLAG_CUSTOM 
MEMBER_FLAG_MIC_MUTED 
114 {
115  MEMBER_FLAG_NONE = 0x00,
116  MEMBER_FLAG_OWNER = 0x01,
117  MEMBER_FLAG_MODERATOR = 0x02,
118  MEMBER_FLAG_VOICED = 0x04,
119  MEMBER_FLAG_MUTED = 0x08,
120  MEMBER_FLAG_CUSTOM = 0x10,
121  MEMBER_FLAG_MIC_MUTED = 0x20
122  // 0x40
123  // 0x80
124 };
Definition: Channel.h:118
Definition: Channel.h:117
Definition: Channel.h:116
Definition: Channel.h:119
Definition: Channel.h:115
Definition: Channel.h:120
Definition: Channel.h:121
enum ChatNotify
Enumerator
CHAT_JOINED_NOTICE 
CHAT_LEFT_NOTICE 
CHAT_YOU_JOINED_NOTICE 
CHAT_YOU_LEFT_NOTICE 
CHAT_WRONG_PASSWORD_NOTICE 
CHAT_NOT_MEMBER_NOTICE 
CHAT_NOT_MODERATOR_NOTICE 
CHAT_PASSWORD_CHANGED_NOTICE 
CHAT_OWNER_CHANGED_NOTICE 
CHAT_PLAYER_NOT_FOUND_NOTICE 
CHAT_NOT_OWNER_NOTICE 
CHAT_CHANNEL_OWNER_NOTICE 
CHAT_MODE_CHANGE_NOTICE 
CHAT_ANNOUNCEMENTS_ON_NOTICE 
CHAT_ANNOUNCEMENTS_OFF_NOTICE 
CHAT_MODERATION_ON_NOTICE 
CHAT_MODERATION_OFF_NOTICE 
CHAT_MUTED_NOTICE 
CHAT_PLAYER_KICKED_NOTICE 
CHAT_BANNED_NOTICE 
CHAT_PLAYER_BANNED_NOTICE 
CHAT_PLAYER_UNBANNED_NOTICE 
CHAT_PLAYER_NOT_BANNED_NOTICE 
CHAT_PLAYER_ALREADY_MEMBER_NOTICE 
CHAT_INVITE_NOTICE 
CHAT_INVITE_WRONG_FACTION_NOTICE 
CHAT_WRONG_FACTION_NOTICE 
CHAT_INVALID_NAME_NOTICE 
CHAT_NOT_MODERATED_NOTICE 
CHAT_PLAYER_INVITED_NOTICE 
CHAT_PLAYER_INVITE_BANNED_NOTICE 
CHAT_THROTTLED_NOTICE 
CHAT_NOT_IN_AREA_NOTICE 
CHAT_NOT_IN_LFG_NOTICE 
CHAT_VOICE_ON_NOTICE 
CHAT_VOICE_OFF_NOTICE 
CHAT_TRIAL_RESTRICTED 
CHAT_NOT_ALLOWED_IN_CHANNEL 
37 {
38  CHAT_JOINED_NOTICE = 0x00, //+ "%s joined channel.";
39  CHAT_LEFT_NOTICE = 0x01, //+ "%s left channel.";
40  //CHAT_SUSPENDED_NOTICE = 0x01, // "%s left channel.";
41  CHAT_YOU_JOINED_NOTICE = 0x02, //+ "Joined Channel: [%s]"; -- You joined
42  //CHAT_YOU_CHANGED_NOTICE = 0x02, // "Changed Channel: [%s]";
43  CHAT_YOU_LEFT_NOTICE = 0x03, //+ "Left Channel: [%s]"; -- You left
44  CHAT_WRONG_PASSWORD_NOTICE = 0x04, //+ "Wrong password for %s.";
45  CHAT_NOT_MEMBER_NOTICE = 0x05, //+ "Not on channel %s.";
46  CHAT_NOT_MODERATOR_NOTICE = 0x06, //+ "Not a moderator of %s.";
47  CHAT_PASSWORD_CHANGED_NOTICE = 0x07, //+ "[%s] Password changed by %s.";
48  CHAT_OWNER_CHANGED_NOTICE = 0x08, //+ "[%s] Owner changed to %s.";
49  CHAT_PLAYER_NOT_FOUND_NOTICE = 0x09, //+ "[%s] Player %s was not found.";
50  CHAT_NOT_OWNER_NOTICE = 0x0A, //+ "[%s] You are not the channel owner.";
51  CHAT_CHANNEL_OWNER_NOTICE = 0x0B, //+ "[%s] Channel owner is %s.";
52  CHAT_MODE_CHANGE_NOTICE = 0x0C, //?
53  CHAT_ANNOUNCEMENTS_ON_NOTICE = 0x0D, //+ "[%s] Channel announcements enabled by %s.";
54  CHAT_ANNOUNCEMENTS_OFF_NOTICE = 0x0E, //+ "[%s] Channel announcements disabled by %s.";
55  CHAT_MODERATION_ON_NOTICE = 0x0F, //+ "[%s] Channel moderation enabled by %s.";
56  CHAT_MODERATION_OFF_NOTICE = 0x10, //+ "[%s] Channel moderation disabled by %s.";
57  CHAT_MUTED_NOTICE = 0x11, //+ "[%s] You do not have permission to speak.";
58  CHAT_PLAYER_KICKED_NOTICE = 0x12, //? "[%s] Player %s kicked by %s.";
59  CHAT_BANNED_NOTICE = 0x13, //+ "[%s] You are bannedStore from that channel.";
60  CHAT_PLAYER_BANNED_NOTICE = 0x14, //? "[%s] Player %s bannedStore by %s.";
61  CHAT_PLAYER_UNBANNED_NOTICE = 0x15, //? "[%s] Player %s unbanned by %s.";
62  CHAT_PLAYER_NOT_BANNED_NOTICE = 0x16, //+ "[%s] Player %s is not bannedStore.";
63  CHAT_PLAYER_ALREADY_MEMBER_NOTICE = 0x17, //+ "[%s] Player %s is already on the channel.";
64  CHAT_INVITE_NOTICE = 0x18, //+ "%2$s has invited you to join the channel '%1$s'.";
65  CHAT_INVITE_WRONG_FACTION_NOTICE = 0x19, //+ "Target is in the wrong alliance for %s.";
66  CHAT_WRONG_FACTION_NOTICE = 0x1A, //+ "Wrong alliance for %s.";
67  CHAT_INVALID_NAME_NOTICE = 0x1B, //+ "Invalid channel name";
68  CHAT_NOT_MODERATED_NOTICE = 0x1C, //+ "%s is not moderated";
69  CHAT_PLAYER_INVITED_NOTICE = 0x1D, //+ "[%s] You invited %s to join the channel";
70  CHAT_PLAYER_INVITE_BANNED_NOTICE = 0x1E, //+ "[%s] %s has been bannedStore.";
71  CHAT_THROTTLED_NOTICE = 0x1F, //+ "[%s] The number of messages that can be sent to this channel is limited, please wait to send another message.";
72  CHAT_NOT_IN_AREA_NOTICE = 0x20, //+ "[%s] You are not in the correct area for this channel."; -- The user is trying to send a chat to a zone specific channel, and they're not physically in that zone.
73  CHAT_NOT_IN_LFG_NOTICE = 0x21, //+ "[%s] You must be queued in looking for group before joining this channel."; -- The user must be in the looking for group system to join LFG chat channels.
74  CHAT_VOICE_ON_NOTICE = 0x22, //+ "[%s] Channel voice enabled by %s.";
75  CHAT_VOICE_OFF_NOTICE = 0x23, //+ "[%s] Channel voice disabled by %s.";
76  CHAT_TRIAL_RESTRICTED = 0x24,
78 };
Definition: Channel.h:74
Definition: Channel.h:62
Definition: Channel.h:56
Definition: Channel.h:52
Definition: Channel.h:48
Definition: Channel.h:70
Definition: Channel.h:53
Definition: Channel.h:60
Definition: Channel.h:69
Definition: Channel.h:72
Definition: Channel.h:41
Definition: Channel.h:73
Definition: Channel.h:38
Definition: Channel.h:71
Definition: Channel.h:76
Definition: Channel.h:75
Definition: Channel.h:54
Definition: Channel.h:67
Definition: Channel.h:45
Definition: Channel.h:68
Definition: Channel.h:44
Definition: Channel.h:65
Definition: Channel.h:49
Definition: Channel.h:64
Definition: Channel.h:47
Definition: Channel.h:58
Definition: Channel.h:55
Definition: Channel.h:77
Definition: Channel.h:57
Definition: Channel.h:46
Definition: Channel.h:61
Definition: Channel.h:51
Definition: Channel.h:66
Definition: Channel.h:43
Definition: Channel.h:39
Definition: Channel.h:50
Definition: Channel.h:63
Definition: Channel.h:59