Пример #1
0
 protected virtual void OnGameEnded(BoggleConnection conn)
 {
     if (GameEnded != null)
     {
         GameEnded(conn);
     }
 }
Пример #2
0
 /// <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);
     }
 }
Пример #3
0
 protected virtual void OnServerLost(BoggleConnection conn)
 {
     if (ServerLost != null)
     {
         ServerLost(conn);
     }
 }
Пример #4
0
 /// <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);
     }
 }
Пример #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);
            }
        }