muddesigner/MudEngine/WinPC_Engine/Game/Environment/Doorway.cs
Scionwest_cp c40d32e7ae Basic Realm->Zone->Room combination is now created during World.Initialize(). This will be replaced with loading XML instead of hard-coding.
Newly created characters are assigned to the new World.StartLocation.
Rooms can now be connected.
Realms and Zones can create Zones and Rooms accordingly
Force moving of a character is now supported.  Walking has yet to be implemented.
2012-03-04 16:56:04 -08:00

38 lines
1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MudEngine.GameScripts;
namespace MudEngine.Game.Environment
{
public class Doorway
{
public Boolean Locked { get; set; }
public BaseScript RequiredKey { get; private set; }
public Int32 LevelRequirement { get; set; }
public AvailableTravelDirections TravelDirection { get; set; }
public Room ArrivalRoom { get; private set; }
public Room DepartureRoom { get; private set; }
public Doorway(Room arrival, Room departure, AvailableTravelDirections direction)
{
this.TravelDirection = direction;
this.ArrivalRoom = arrival;
this.DepartureRoom = departure;
this.LevelRequirement = 0;
}
public override string ToString()
{
return "{" + this.GetType().Name + "}: " + this.DepartureRoom.Name + "->" + this.TravelDirection.ToString() + "->" + this.ArrivalRoom.Name;
}
}
}