#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
using Arthea.Collections;
using Arthea.Continents.Areas.Characters;
using Arthea.Continents.Areas.Characters.Enums;
namespace Arthea.Abilities.Skills
{
/// <summary>
/// Implementation of a kick skill.
/// </summary>
public class KickSkill : Skill
{
#region [rgn] Constructors (1)
/// <summary>
/// Initializes a new instance of the <see cref="KickSkill"/> class.
/// </summary>
public KickSkill()
: base("kick", CreateLevels("warrior", 5, "thief", 10),
Position.Standing, 3, 2, "kick", null)
{
}
#endregion [rgn]
#region [rgn] Methods (1)
// [rgn] Public Methods (1)
/// <summary>
/// Processes this ability for a character.
/// </summary>
/// <param name="ch">The character.</param>
/// <param name="argument">The argument.</param>
public override void Process(Character ch, String argument)
{
Character victim;
if (ch.Fighting != null)
{
victim = ch.Fighting;
}
else if ((victim = ch.Room.Characters.FindName(argument)) == null)
{
ch.WriteLine("They aren't here.");
return;
}
Combat.Damage(this, ch, victim, Util.Dice(3, 6));
}
#endregion [rgn]
}
}