171 std::string
const&
GetName()
const {
return _name; }
177 void SetPassword(std::string
const& npassword) { _password = npassword; }
183 void JoinChannel(
Player* player, std::string
const& pass);
184 void LeaveChannel(
Player* player,
bool send =
true);
185 void KickOrBan(
Player const* player, std::string
const& badname,
bool ban);
186 void Kick(
Player const* player, std::string
const& badname) { KickOrBan(player, badname,
false); }
187 void Ban(
Player const* player, std::string
const& badname) { KickOrBan(player, badname,
true); }
188 void UnBan(
Player const* player, std::string
const& badname);
189 void Password(
Player const* player, std::string
const& pass);
190 void SetMode(
Player const* player, std::string
const& p2n,
bool mod,
bool set);
191 void SetOwner(
ObjectGuid const& guid,
bool exclaim =
true);
192 void SetOwner(
Player const* player, std::string
const& name);
193 void SendWhoOwner(
Player const* player);
194 void SetModerator(
Player const* player, std::string
const& newname) { SetMode(player, newname,
true,
true); }
195 void UnsetModerator(
Player const* player, std::string
const& newname) { SetMode(player, newname,
true,
false); }
196 void SetMute(
Player const* player, std::string
const& newname) { SetMode(player, newname,
false,
true); }
197 void UnsetMute(
Player const* player, std::string
const& newname) { SetMode(player, newname,
false,
false); }
198 void SilenceAll(
Player const* player, std::string
const& name);
199 void SilenceVoice(
Player const* player, std::string
const& name);
200 void UnsilenceAll(
Player const* player, std::string
const& name);
201 void UnsilenceVoice(
Player const* player, std::string
const& name);
202 void List(
Player const* player);
203 void Announce(
Player const* player);
205 void DeclineInvite(
Player const* player);
206 void Invite(
Player const* player, std::string
const& newp);
207 void Voice(
Player const* player);
208 void DeVoice(
Player const* player);
209 void JoinNotify(
Player const* player);
210 void LeaveNotify(
Player const* player);
212 static void CleanOldChannelsInDB();
257 bool IsOn(
ObjectGuid const& who)
const {
return _playersStore.find(who) != _playersStore.end(); }
258 bool IsBanned(
ObjectGuid const& guid)
const {
return _bannedStore.find(guid) != _bannedStore.end(); }
260 void UpdateChannelInDB()
const;
261 void UpdateChannelUseageInDB()
const;
265 PlayerContainer::const_iterator itr = _playersStore.find(guid);
266 return itr != _playersStore.end() ? itr->second.GetFlags() : 0;
269 void SetModerator(
ObjectGuid const& guid,
bool set);
270 void SetMute(
ObjectGuid const& guid,
bool set);
Definition: Channel.h:102
BannedContainer _bannedStore
Definition: Channel.h:285
std::map< ObjectGuid, PlayerInfo > PlayerContainer
Definition: Channel.h:272
Definition: Channel.h:118
Definition: Channel.h:106
uint32 GetChannelId() const
Definition: Channel.h:172
uint8 GetPlayerFlags(ObjectGuid const &guid) const
Definition: Channel.h:263
Definition: Channel.h:109
void SetAnnounce(bool nannounce)
Definition: Channel.h:178
static ObjectGuid const Empty
Definition: ObjectGuid.h:196
Definition: Channel.h:117
void UnsetModerator(Player const *player, std::string const &newname)
Definition: Channel.h:195
void SetPassword(std::string const &npassword)
Definition: Channel.h:177
std::string _name
Definition: Channel.h:282
void RemoveFlag(uint8 flag)
Definition: Channel.h:135
Definition: ChannelPackets.h:52
bool IsBanned(ObjectGuid const &guid) const
Definition: Channel.h:258
uint8 _flags
Definition: Channel.h:278
ObjectGuid PlayerGuid
Definition: Channel.h:130
GuidSet BannedContainer
Definition: Channel.h:273
Definition: Channel.h:126
bool HasFlag(uint8 flag) const
Definition: Channel.h:133
Definition: Channel.h:128
Definition: Channel.h:108
bool IsAnnounce() const
Definition: Channel.h:174
ChatNotify
Definition: Channel.h:36
void SetMute(Player const *player, std::string const &newname)
Definition: Channel.h:196
std::string const & GetPassword() const
Definition: Channel.h:176
uint8 GetFlags() const
Definition: Channel.h:132
bool _ownership
Definition: Channel.h:276
void SetModerator(Player const *player, std::string const &newname)
Definition: Channel.h:194
Team
Definition: SharedDefines.h:997
Definition: Channel.h:105
Definition: Channel.h:101
bool IsOwner() const
Definition: Channel.h:137
bool HasFlag(uint8 flag) const
Definition: Channel.h:181
void SetOwnership(bool ownership)
Definition: Channel.h:211
void SetModerator(bool state)
Definition: Channel.h:147
uint32 GetNumPlayers() const
Definition: Channel.h:179
ChannelFlags
Definition: Channel.h:80
void Ban(Player const *player, std::string const &badname)
Definition: Channel.h:187
void Kick(Player const *player, std::string const &badname)
Definition: Channel.h:186
bool IsModerator() const
Definition: Channel.h:146
Definition: Channel.h:116
bool IsConstant() const
Definition: Channel.h:173
Definition: Channel.h:103
uint32_t uint32
Definition: Define.h:150
Definition: Channel.h:119
Definition: Channel.h:107
void UnsetMute(Player const *player, std::string const &newname)
Definition: Channel.h:197
void SetMuted(bool state)
Definition: Channel.h:156
ChannelMemberFlags
Definition: Channel.h:113
Definition: Channel.h:104
Definition: BattlegroundMgr.h:57
std::string _password
Definition: Channel.h:283
bool _announce
Definition: Channel.h:275
uint32 _channelId
Definition: Channel.h:279
Definition: Channel.h:115
std::set< ObjectGuid > GuidSet
Definition: ObjectGuid.h:332
bool IsLFG() const
Definition: Channel.h:175
#define TC_GAME_API
Definition: Define.h:134
Definition: Channel.h:110
ChannelDBCFlags
Definition: Channel.h:98
PlayerContainer _playersStore
Definition: Channel.h:284
uint8_t uint8
Definition: Define.h:152
bool IsMuted() const
Definition: Channel.h:155
void SetOwner(bool state)
Definition: Channel.h:138
std::string const & GetName() const
Definition: Channel.h:171
Definition: ObjectGuid.h:189
void SetFlag(uint8 flag)
Definition: Channel.h:134
uint32_t uint32
Definition: g3dmath.h:168
ObjectGuid _ownerGUID
Definition: Channel.h:281
bool IsOn(ObjectGuid const &who) const
Definition: Channel.h:257
Say
Definition: boss_broodlord_lashlayer.cpp:23
uint8 GetFlags() const
Definition: Channel.h:180
Definition: WorldPacket.h:26
Definition: Channel.h:120
Definition: Channel.h:100
Definition: Channel.h:121
bool _IsSaved
Definition: Channel.h:277
uint32 _team
Definition: Channel.h:280