Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
ChannelMgr Class Reference

#include <ChannelMgr.h>

Inheritance diagram for ChannelMgr:

Public Member Functions

 ChannelMgr ()
ChannelGetChannel (std::string const &name, Player *p, bool pkt=true)
ChannelGetJoinChannel (std::string const &name, uint32 channel_id)
void LeftChannel (std::string const &name)
void setTeam (uint32 newTeam)
 ~ChannelMgr ()

Static Public Member Functions

static ChannelMgrforTeam (uint32 team)

Private Types

typedef std::map< std::wstring, Channel * > ChannelMap

Private Member Functions

void MakeNotOnPacket (WorldPacket *data, std::string const &name)

Private Attributes

ChannelMap channels
uint32 team

Detailed Description

Definition at line 18 of file ChannelMgr.h.

Member Typedef Documentation

◆ ChannelMap

typedef std::map<std::wstring, Channel*> ChannelMgr::ChannelMap
private

Definition at line 20 of file ChannelMgr.h.

Constructor & Destructor Documentation

◆ ChannelMgr()

ChannelMgr::ChannelMgr ( )
inline

Definition at line 23 of file ChannelMgr.h.

References team.

Referenced by forTeam().

◆ ~ChannelMgr()

ChannelMgr::~ChannelMgr ( )

Definition at line 11 of file ChannelMgr.cpp.

References channels.

Member Function Documentation

◆ forTeam()

◆ GetChannel()

Channel * ChannelMgr::GetChannel ( std::string const & name,
Player * p,
bool pkt = true )

◆ GetJoinChannel()

Channel * ChannelMgr::GetJoinChannel ( std::string const & name,
uint32 channel_id )

Definition at line 31 of file ChannelMgr.cpp.

References channels, team, Utf8toWStr(), and wstrToLower().

Referenced by Player::UpdateLocalChannels().

◆ LeftChannel()

void ChannelMgr::LeftChannel ( std::string const & name)

◆ MakeNotOnPacket()

void ChannelMgr::MakeNotOnPacket ( WorldPacket * data,
std::string const & name )
private

Definition at line 98 of file ChannelMgr.cpp.

References WorldPacket::Initialize(), and SMSG_CHANNEL_NOTIFY.

Referenced by GetChannel().

◆ setTeam()

void ChannelMgr::setTeam ( uint32 newTeam)
inline

Definition at line 29 of file ChannelMgr.h.

References team.

Member Data Documentation

◆ channels

ChannelMap ChannelMgr::channels
private

Definition at line 36 of file ChannelMgr.h.

Referenced by GetChannel(), GetJoinChannel(), LeftChannel(), and ~ChannelMgr().

◆ team

uint32 ChannelMgr::team
private

Definition at line 37 of file ChannelMgr.h.

Referenced by ChannelMgr(), forTeam(), GetJoinChannel(), and setTeam().


The documentation for this class was generated from the following files: