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
|
@ -73,8 +73,19 @@
|
|||
<Compile Include="Designer.Designer.cs">
|
||||
<DependentUpon>Designer.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="MudEngine\Characters\BaseCharacter.cs" />
|
||||
<Compile Include="MudEngine\Characters\CharacterClass.cs" />
|
||||
<Compile Include="MudEngine\Characters\CharacterFaction.cs" />
|
||||
<Compile Include="MudEngine\Characters\CharacterRace.cs" />
|
||||
<Compile Include="MudEngine\Characters\Controlled\PlayerAdmin.cs" />
|
||||
<Compile Include="MudEngine\Characters\Controlled\PlayerGM.cs" />
|
||||
<Compile Include="MudEngine\Characters\Controlled\PlayerBasic.cs" />
|
||||
<Compile Include="MudEngine\Characters\NPC\NPCHostile.cs" />
|
||||
<Compile Include="MudEngine\Characters\NPC\NPCFriendly.cs" />
|
||||
<Compile Include="MudEngine\FileSystem\SaveDataTypes.cs" />
|
||||
<Compile Include="MudEngine\GameCommands\CommandGMTeleport.cs" />
|
||||
<Compile Include="MudEngine\GameCommands\CommandLook.cs" />
|
||||
<Compile Include="MudEngine\GameCommands\CommandWalk.cs" />
|
||||
<Compile Include="MudEngine\GameManagement\GameScript.cs" />
|
||||
<Compile Include="MudEngine\GameObjects\Bag.cs" />
|
||||
<Compile Include="MudEngine\GameObjects\BaseObject.cs" />
|
||||
|
|
14
Mud Designer/MudEngine/Characters/BaseCharacter.cs
Normal file
14
Mud Designer/MudEngine/Characters/BaseCharacter.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
using MudDesigner.MudEngine.Interfaces;
|
||||
using MudDesigner.MudEngine.GameObjects;
|
||||
|
||||
namespace MudDesigner.MudEngine.Characters
|
||||
{
|
||||
public class BaseCharacter : BaseObject
|
||||
{
|
||||
}
|
||||
}
|
11
Mud Designer/MudEngine/Characters/CharacterClass.cs
Normal file
11
Mud Designer/MudEngine/Characters/CharacterClass.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace MudDesigner.MudEngine.Characters
|
||||
{
|
||||
public class CharacterClass
|
||||
{
|
||||
}
|
||||
}
|
11
Mud Designer/MudEngine/Characters/CharacterFaction.cs
Normal file
11
Mud Designer/MudEngine/Characters/CharacterFaction.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace MudDesigner.MudEngine.Characters
|
||||
{
|
||||
public class CharacterFaction
|
||||
{
|
||||
}
|
||||
}
|
11
Mud Designer/MudEngine/Characters/CharacterRace.cs
Normal file
11
Mud Designer/MudEngine/Characters/CharacterRace.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace MudDesigner.MudEngine.Characters
|
||||
{
|
||||
public class CharacterRace : BaseCharacter
|
||||
{
|
||||
}
|
||||
}
|
11
Mud Designer/MudEngine/Characters/Controlled/PlayerAdmin.cs
Normal file
11
Mud Designer/MudEngine/Characters/Controlled/PlayerAdmin.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace MudDesigner.MudEngine.Characters.Controlled
|
||||
{
|
||||
class PlayerAdmin : PlayerBasic
|
||||
{
|
||||
}
|
||||
}
|
11
Mud Designer/MudEngine/Characters/Controlled/PlayerBasic.cs
Normal file
11
Mud Designer/MudEngine/Characters/Controlled/PlayerBasic.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace MudDesigner.MudEngine.Characters.Controlled
|
||||
{
|
||||
public class PlayerBasic
|
||||
{
|
||||
}
|
||||
}
|
11
Mud Designer/MudEngine/Characters/Controlled/PlayerGM.cs
Normal file
11
Mud Designer/MudEngine/Characters/Controlled/PlayerGM.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace MudDesigner.MudEngine.Characters.Controlled
|
||||
{
|
||||
class PlayerGM : PlayerAdmin
|
||||
{
|
||||
}
|
||||
}
|
11
Mud Designer/MudEngine/Characters/NPC/NPCFriendly.cs
Normal file
11
Mud Designer/MudEngine/Characters/NPC/NPCFriendly.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace MudDesigner.MudEngine.Characters.NPC
|
||||
{
|
||||
class NPCFriendly
|
||||
{
|
||||
}
|
||||
}
|
11
Mud Designer/MudEngine/Characters/NPC/NPCHostile.cs
Normal file
11
Mud Designer/MudEngine/Characters/NPC/NPCHostile.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace MudDesigner.MudEngine.Characters.NPC
|
||||
{
|
||||
class NPCHostile
|
||||
{
|
||||
}
|
||||
}
|
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;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -43,6 +43,10 @@ namespace MudDesigner.MudEngine.GameObjects.Environment
|
|||
|
||||
public string ConnectedRoom { get; set; }
|
||||
|
||||
[Category("Environment Information")]
|
||||
[Description("The description displayed to the user when a 'Look' command is used.")]
|
||||
public string Description { get; set; }
|
||||
|
||||
public Door()
|
||||
{
|
||||
LevelRequirement = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue