Engine:
- Added Character class PlayerBasic for the lowest authorized level - Added Character class PlayerAdmin that will provide some additional higher level authorized commands - Added Character class PlayerGM that will provide high level authorized commands - Added Factions class for future use of factions - Added Class class for future use of classes - Added Race class for future use of Races - Added NPCFriendly class for future use of Friendly NPCs - Added NPCHostile class for future use of Monster NPCs - Added CommandWalk class for future walk command - Added CommandGMTeleport class for future GM teleporting support. - Added Description property to the Door class.
This commit is contained in:
parent
85aae88e34
commit
5f9a707b4c
14 changed files with 180 additions and 4 deletions
42
Mud Designer/MudEngine/GameCommands/CommandGMTeleport.cs
Normal file
42
Mud Designer/MudEngine/GameCommands/CommandGMTeleport.cs
Normal file
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
using MudDesigner.MudEngine.Interfaces;
|
||||
using MudDesigner.MudEngine.Characters.Controlled;
|
||||
|
||||
namespace MudDesigner.MudEngine.GameCommands
|
||||
{
|
||||
public class CommandGMTeleport : IGameCommand
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public bool Override { get; set; }
|
||||
|
||||
public CommandGMTeleport()
|
||||
{
|
||||
Override = true;
|
||||
}
|
||||
|
||||
public object Execute(params object[] parameters)
|
||||
{
|
||||
PlayerGM playerGM = new PlayerGM();
|
||||
bool foundGM = false;
|
||||
|
||||
foreach (object obj in parameters)
|
||||
{
|
||||
if (obj is PlayerGM)
|
||||
{
|
||||
foundGM = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!foundGM)
|
||||
return null;
|
||||
|
||||
//TODO: Find the Realm/Zone/Room that the GM specified to teleport to.
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -35,10 +35,7 @@ namespace MudDesigner.MudEngine.GameCommands
|
|||
{
|
||||
if (door.TravelDirection != MudDesigner.MudEngine.GameObjects.AvailableTravelDirections.Down && door.TravelDirection != MudDesigner.MudEngine.GameObjects.AvailableTravelDirections.Up)
|
||||
{
|
||||
desc.AppendLine("To the ");
|
||||
desc.Append(door.TravelDirection.ToString());
|
||||
desc.Append(" is ");
|
||||
desc.Append(door.ConnectedRoom);
|
||||
desc.AppendLine(door.Description);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
20
Mud Designer/MudEngine/GameCommands/CommandWalk.cs
Normal file
20
Mud Designer/MudEngine/GameCommands/CommandWalk.cs
Normal file
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
using MudDesigner.MudEngine.Interfaces;
|
||||
|
||||
namespace MudDesigner.MudEngine.GameCommands
|
||||
{
|
||||
public class CommandWalk : IGameCommand
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public bool Override { get; set; }
|
||||
|
||||
public object Execute(params object[] parameters)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue