/* * Date: 11/27/2005 * Time: 10:19 PM * * Copyright 2005, Static Boy Productions */ using System; using System.Drawing; namespace Jessie.TTY { /// /// jtbvReceivedMessage is used to store information about what the Nethack game sent us. /// public class jtbvReceivedMessage { /// /// The message text that was received. /// public readonly string Text; /// /// The cursor location where the message is to be drawn. /// public readonly Point CursorLoc; public readonly jtbvMessageColor Color; /// /// The time at which this message was received. /// public readonly DateTime ReceiveTime; /// /// The unique ID of this particular received message /// public readonly UInt32 Uid; private static UInt32 uid_counter = 0; public jtbvReceivedMessage(string text, Point cursorLoc, jtbvMessageColor color) { Uid = (uid_counter++); CursorLoc = cursorLoc; Text = text; ReceiveTime = System.DateTime.Now; Color = color; } public override string ToString() { return ("(" + CursorLoc.X.ToString() + "," + CursorLoc.Y.ToString() + ") '" + this.Text + "'"); } } }