MudEngine:

- Player movement command now fully implemented. 
 - Game.GetRealm() added to retrieve a Realm within the games RealmCollection property
 - Game.End() added to perform game ending duties and shut down the Server
 - Server now loses opened threads.
 - Player.Move() added to move the player from Room to Room.
 - Room.DoorwayExist() tweaked to work with the new way Environments are managed.

MudGame:
 - Now executes the Look command on startup so the player can see where they are located at.
 - Implements the new Game.End() method and fixes the game hanging upon exit.
This commit is contained in:
Scionwest_cp 2010-07-25 18:33:21 -07:00
parent 19e3ec0936
commit 70533582a6
7 changed files with 57 additions and 10 deletions

View file

@ -116,11 +116,11 @@ namespace MudEngine.GameObjects.Environment
IsSafe = false;
}
public bool DoorwayExist(string travelDirection)
public bool DoorwayExist(AvailableTravelDirections travelDirection)
{
foreach (Door door in Doorways)
{
if (door.TravelDirection.ToString().ToLower() == travelDirection.ToLower())
if (door.TravelDirection == travelDirection)
return true;
}