public void TellPunchline(IJoker joker, string punchLine) { joker.Ha(); joker.Ha(); joker.Hee(); joker.Ho(); joker.Ho(); joker.Hee(); joker.Hee(); }
public Executor(string joker) { //TODO: Use reflection and find all the classes that implement IJoker. //Built in list of jokers. var jokers = new List<IJoker> { new TRX2Joker.Core.Jokers.TextFile() }; //Select the joker to use. this._joker = jokers.SingleOrDefault(x => x.Name == joker); if (this._joker == null) throw new ArgumentException("Unknown Joker", "joker"); }
public Executor(string joker) { //TODO: Use reflection and find all the classes that implement IJoker. //Built in list of jokers. var jokers = new List <IJoker> { new TRX2Joker.Core.Jokers.TextFile() }; //Select the joker to use. this._joker = jokers.SingleOrDefault(x => x.Name == joker); if (this._joker == null) { throw new ArgumentException("Unknown Joker", "joker"); } }
public void TellFirstName(IJoker joker, string firstName) { joker.Respond(firstName + ", who?"); }
public void KnockKnock(IJoker joker) { joker.Respond("Who's there?"); }