Message Manager
C4Messages.h

class Channel

Represents a unidirectional voice chat channel.
Definition

Channel : public GraphEdge<Player, Channel>

Constructor

Channel(Player *sender, Player *receiver);

Parameters
head The player that sends voice chat on the channel.
tail The player that receives voice chat on the channel.
Description
A Channel object represents a connection between two players, a sender and a receiver, through which voice chat is sent. The connection is unidirectional, so the player specified by the receiver parameter receives voice chat from the player specified by the sender parameter, but the reverse is not true unless another Channel object exists corresponding to the opposite direction. The creation of a Channel object itself establishes the connection in the player chat graph. Nothing needs to be done with the pointer to the object after the new operator has been used to construct it. For example, the following single line of code is sufficient for creating a channel leading from player p1 to player p2.

new Channel(p1, p2);

A channel object is automatically deleted if the player object at either end is deleted.
Base Classes
GraphEdge<Player, Channel> A Channel object corresponds to an edge in the player chat graph.
See Also
Player