-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMUD.cs
executable file
·97 lines (89 loc) · 2.15 KB
/
MUD.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#region "GPL License"
// Dragonsong Version 0.0 - General purpose MUD Client
// Copyright (C) 2004 Andy Williams (lolindrath (.a.t.) lolindrath.com)
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#endregion
using System;
using System.Collections;
using System.IO;
namespace Dragonsong
{
/// <summary>
/// This represents an instance
/// of a MUD
/// </summary>
public class Mud
{
private string name;
private string host;
private int port;
private string desc;
private string loginScript;
/// <summary>
/// Creates a new <see cref="Mud"/> instance.
/// </summary>
/// <param name="n">N.</param>
public Mud(string n)
{
name = n;
}
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value></value>
public string Name
{
get { return name; }
set { name = value; }
}
/// <summary>
/// Gets or sets the host.
/// </summary>
/// <value></value>
public string Host
{
get { return host; }
set { host = value; }
}
/// <summary>
/// Gets or sets the port.
/// </summary>
/// <value></value>
public int Port
{
get { return port; }
set { port = value; }
}
/// <summary>
/// Gets or sets the description.
/// </summary>
/// <value></value>
public string Description
{
get { return desc; }
set { desc = value; }
}
/// <summary>
/// Gets or sets the login script.
/// </summary>
/// <value></value>
public string LoginScript
{
get { return loginScript; }
set { loginScript = value; }
}
}
}