protected virtual void OnGameEnded(BoggleConnection conn)
 {
     if (GameEnded != null)
     {
         GameEnded(conn);
     }
 }
 /// <summary>
 /// Calls any methods which have registered to be notified of ScoreChanged events
 /// </summary>
 protected virtual void OnScoreChanged(BoggleConnection conn)
 {
     if (ScoreChanged != null)
     {
         ScoreChanged(conn);
     }
 }
 protected virtual void OnServerLost(BoggleConnection conn)
 {
     if (ServerLost != null)
     {
         ServerLost(conn);
     }
 }
 /// <summary>
 /// Calls any methods which have registered to be notified of TimeChanged events
 /// </summary>
 protected virtual void OnTimeChanged(BoggleConnection conn)
 {
     if (TimeChanged != null)
     {
         TimeChanged(conn);
     }
 }
Beispiel #5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="key"> the player's id</param>
        /// <param name="userName"> the user name of the player</param>
        public static void addToDictionary(string userid, string userName)
        {
            BoggleConnection current = new BoggleConnection("localhost", userName);

            lock (thisLock)
            {
                IdsToConnections.Add(userid, current);
            }
        }