private string Wear(Command command) { if (_dressHolder.HasOutfit(OutfitType.Pajama)) { throw new PajamaMustTakeOffViolation(); } var outfit = new ClothingFactory(_temperature, _dressHolder).GetClothingInstance(command) .WearAppropriateOutfit(); return(outfit); }
public override void Initialize() { Locale(RMUD.Locale.Interior); SetProperty("ambient light", LightingLevel.Bright); Short = "Palantine Villa - Plato's Closet"; AddScenery(new lamp()); Move(ClothingFactory.Create("pair of jeans", ClothingLayer.Outer, ClothingBodyPart.Legs), this); Move(ClothingFactory.Create("polo shirt", ClothingLayer.Outer, ClothingBodyPart.Torso), this); Move(ClothingFactory.Create("pair of briefs", ClothingLayer.Under, ClothingBodyPart.Legs), this); OpenLink(Direction.WEST, "palantine\\solar"); }