Class PeerConnections
In: daimoku-server/peerconnections.rb
Parent: Object

Manages all CharacterProxy objects so that messages can be sent to all or some sockets

CharacterProxy objects are stored in a hash, using the SessionID as the key

The Architect is not part of the peer connections, therefore the Architect does not get socket communications from the Players.

Methods

Public Class methods

Used to report System Events

Public Instance methods

Adds the CharacterProxy that is represented by the characterproxy‘s sessionid

Called by TheReaper, as part of Player death

Removes the CharacterProxy that is represented by the characterproxy‘s sessionid

Say a message to everyone in the PeerConnections

Say a line of code to everyone in the PeerConnections

Say a message to someone privately

[Validate]