Permalink
Browse files

AdventureSample - handle WEAR using verbRoutines dictionary

  • Loading branch information...
bobbymcr committed May 12, 2018
1 parent f06989c commit 38bdb2976b1e63d1feb38665fe6891f005cf546e
Showing with 1 addition and 4 deletions.
  1. +1 −4 projects/AdventureSample/src/Adventure/adventure.cs
@@ -638,6 +638,7 @@ private int Main()
verbRoutines.Add("LEA", Leave);
verbRoutines.Add("EXI", Leave);
verbRoutines.Add("FIG", Fight);
verbRoutines.Add("WEA", Wear);
return verbRoutines;
}
@@ -649,10 +650,6 @@ private int HandleVerb(Dictionary<string, Func<int>> verbRoutines)
{
return verbRoutine();
}
else if (verb == "WEA")
{
return Wear();
}
else
{
return UnknownVerb();

0 comments on commit 38bdb29

Please sign in to comment.