#region Arthea License
/***********************************************************************
* Arthea MUD by R. Jennings (2007) http://arthea.googlecode.com/ *
* By using this code you comply with the Artistic and GPLv2 Licenses. *
***********************************************************************/
#endregion
namespace Arthea.Classes
{
/// <summary>
/// Implements a player class
/// </summary>
public abstract class Class
{
#region [rgn] Fields (4)
private int baseAttackMod;
private string description;
private int index;
private string name;
#endregion [rgn]
#region [rgn] Constructors (1)
/// <summary>
/// Initializes a new instance of the <see cref="Class"/> class.
/// </summary>
/// <param name="name">The name.</param>
/// <param name="baseAttackMod">The base attack mod.</param>
public Class(string name, int baseAttackMod)
{
this.name = name;
this.baseAttackMod = baseAttackMod;
}
#endregion [rgn]
#region [rgn] Properties (4)
/// <summary>
/// Gets or sets the base attack mod (should be a percentile).
/// </summary>
/// <value>The base attack mod.</value>
public int BaseAttackMod
{
get { return baseAttackMod; }
set { baseAttackMod = value; }
}
/// <summary>
/// Gets or sets the description.
/// </summary>
/// <value>The description.</value>
public string Description
{
get { return description; }
set { description = value; }
}
/// <summary>
/// Gets or sets the index.
/// </summary>
/// <value>The index.</value>
public int Index
{
get { return index; }
set { index = value; }
}
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name
{
get { return name; }
set { name = value; }
}
#endregion [rgn]
#region [rgn] Methods (1)
// [rgn] Public Methods (1)
/// <summary>
/// Returns a <see cref="T:System.String"></see> that represents the current <see cref="T:System.Object"></see>.
/// </summary>
/// <returns>
/// A <see cref="T:System.String"></see> that represents the current <see cref="T:System.Object"></see>.
/// </returns>
public override string ToString()
{
return name;
}
#endregion [rgn]
}
}