+++ /dev/null
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-using Microsoft.Xna.Framework.Net;\r
-\r
-namespace CS_3505_Project_06\r
-{\r
- /// <summary>\r
- /// Small container class for the information concerning a chat packet.\r
- /// It is immutable.\r
- /// </summary>\r
- public class ChatPacket\r
- {\r
- // Private member variables\r
- #region Instance Variables\r
-\r
- NetworkGamer mSender;\r
- String mMessage;\r
-\r
- #endregion\r
-\r
-\r
- /// <summary>\r
- /// Get the game who sent the chat packet.\r
- /// </summary>\r
- public NetworkGamer Sender\r
- {\r
- get { return mSender; }\r
- }\r
-\r
- /// <summary>\r
- /// Get the message that was sent by the sender.\r
- /// </summary>\r
- public String Message\r
- {\r
- get { return mMessage; }\r
- }\r
-\r
-\r
- /// <summary>\r
- /// Construct a chat packet with contents.\r
- /// </summary>\r
- /// <param name="sender">The chat sender.</param>\r
- /// <param name="message">The chat message.</param>\r
- public ChatPacket(NetworkGamer sender, String message)\r
- {\r
- mSender = sender;\r
- mMessage = message;\r
- }\r
- }\r
-}\r