MudGame commands are corrected to work with the new abstract BaseCommands class.

This commit is contained in:
Scionwest_cp 2011-09-19 19:15:51 -07:00
parent 974cc0f9b8
commit 16ef50f59a
13 changed files with 13 additions and 13 deletions

View file

@ -14,7 +14,7 @@ public class CommandClear : BaseCommand
/// <summary>
/// Constructor for the class.
/// </summary>
public void Execute(String command, BaseCharacter player)
public override void Execute(String command, BaseCharacter player)
{
//Call the flush method to clear the players console screen of all text.
player.FlushConsole();

View file

@ -19,7 +19,7 @@ public class CommandExit : BaseCommand
/// </summary>
/// <param name="command"></param>
/// <param name="player"></param>
public void Execute(String command, BaseCharacter player)
public override void Execute(String command, BaseCharacter player)
{
//Check if the game is multiplayer.
//Multiplayer games require disconnecting from the server and letting other players in the same Room know

View file

@ -18,7 +18,7 @@ public class CommandGetTime : BaseCommand
/// </summary>
/// <param name="command"></param>
/// <param name="player"></param>
public void Execute(String command, BaseCharacter player)
public override void Execute(String command, BaseCharacter player)
{
//Send the returned String containing the World Time to the player.
player.Send(player.ActiveGame.WorldTime.GetCurrentWorldTime());

View file

@ -18,7 +18,7 @@ public class CommandHelp : BaseCommand
/// <summary>
/// Constructor for the class.
/// </summary>
public void Execute(String command, BaseCharacter player)
public override void Execute(String command, BaseCharacter player)
{
//Check if we have a topic that the player wants help with. If there is nothing after the Help word
//in the command, then the user didn't supply us with a topic.

View file

@ -17,7 +17,7 @@ public class CommandLook : BaseCommand
/// <summary>
/// Constructor for the class.
/// </summary>
public void Execute(String command, BaseCharacter player)
public override void Execute(String command, BaseCharacter player)
{
//If the players Room is null, then we need to let them know that they are
//currently not residing within a Room. If this occures for some reason, the player will

View file

@ -14,7 +14,7 @@ public class CommandSave : BaseCommand
/// <summary>
/// Constructor for the class.
/// </summary>
public void Execute(String command, BaseCharacter player)
public override void Execute(String command, BaseCharacter player)
{
//Save the player to the hard-disk.
player.Save();

View file

@ -17,7 +17,7 @@ public class CommandSay : BaseCommand
/// <summary>
/// Constructor for the class.
/// </summary>
public void Execute(String command, BaseCharacter player)
public override void Execute(String command, BaseCharacter player)
{
//Check if the user only said 'Say ' or 'Say' with no message content.
if (command.Length <= 4)

View file

@ -47,7 +47,7 @@ public class CommandWalk : BaseCommand
/// <summary>
/// Constructor for the class.
/// </summary>
public void Execute(String command, BaseCharacter player)
public override void Execute(String command, BaseCharacter player)
{
//Since the walk command requires a second word (ex: walk north)
//we split the words into an array so they are seperate.