muddesigner/MudEngine/WinPC_Engine/Core/BaseCommand.cs
Scionwest_cp 3d8051c995 Initial Check-in for Alpha 2.0 source code.
Includes working Telnet server, working command engine and Character code.
2012-02-28 20:11:10 -08:00

47 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using MudEngine.Game.Characters;
using MudEngine.Core.Interface;
namespace MudEngine.Core
{
public abstract class BaseCommand : ICommand
{
/// <summary>
/// Gets or Sets a collection of help topics related to this command.
/// </summary>
[Browsable(false)]
public List<string> Help { get; set; }
public BaseCommand()
{
Help = new List<string>();
this.Name = this.GetType().Name.Substring("Command".Length);
}
/// <summary>
/// Executes the command for the character supplied.
/// </summary>
/// <param name="command"></param>
/// <param name="character"></param>
public abstract void Execute(string command, StandardCharacter character);
public string Name {get;set;}
public string Description
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}
}
}
}