public WearingWithConflictingItemException(Thing item1, Thing item2) : base("You can't wear both " + item1.GetSpecificName() + " and " + item2.GetSpecificName() + " at the same time. You'll have to " + "take off " + item1.GetSpecificName() + " in order to put on " + item2.GetSpecificName() + '.') { }
/// <summary> /// Prints a generic message reporting a simple action with two parameters. /// </summary> /// <param name="actor">the <see cref="Actor"/> performing the action</param> /// <param name="verb">the action being performed</param> /// <param name="item1">the first <see cref="Thing"/> the action is performed on</param> /// <param name="separator">word or phrase separating the two parameters</param> /// <param name="item2">the second <see cref="Thing"/> the action is performed on</param> public static void ReportIfVisible(Actor actor, VerbSet verb, Thing item1, string separator, Thing item2) { ReportIfVisible(actor, StringManipulator.CapitalizeFirstLetter(actor.GetSpecificName()) + ' ' + actor.GetConjugatedVerb(verb) + ' ' + item1.GetSpecificName() + separator + item2.GetSpecificName() + '.'); }