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:
parent
19e3ec0936
commit
70533582a6
7 changed files with 57 additions and 10 deletions
|
@ -68,6 +68,12 @@ namespace MUDGame
|
|||
Console.WriteLine(game.Story);
|
||||
Console.WriteLine();
|
||||
|
||||
//Simple Help info
|
||||
Console.WriteLine("Available Commands are\n Look\n Exit\n Walk 'direction' where direction = north/south/east/west/up/down\n");
|
||||
|
||||
//Invoke the Look command so the player knows whats around him/her
|
||||
Console.WriteLine(player.ExecuteCommand("Look").Result[0]);
|
||||
|
||||
while (game.IsRunning)
|
||||
{
|
||||
Console.Write("Command: ");
|
||||
|
@ -88,6 +94,7 @@ namespace MUDGame
|
|||
}
|
||||
}
|
||||
|
||||
game.End();
|
||||
Console.WriteLine("Press Enter to exit.");
|
||||
Console.ReadKey();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue