Permalink
Browse files

AdventureSample - extract Fight method

  • Loading branch information...
bobbymcr committed May 6, 2018
1 parent a35b951 commit ee9d1cc00c28c4908494bfeb4826435982c878e3
Showing with 22 additions and 18 deletions.
  1. +22 −18 projects/AdventureSample/src/Adventure/adventure.cs
@@ -1379,6 +1379,28 @@ private int Main()
goto L4900;
}
Fight();
goto L100;
L4900:
;
if ((((verb.CompareTo("WEA")) != (0)) ? (-1) : (0)) != (0))
{
goto L5000;
}
Wear();
goto L100;
L5000:
;
; //
PRINT(("") + ("I DON'T KNOW HOW TO DO THAT"));
goto L100;
}
private void Fight()
{
if ((((noun.CompareTo("")) == (0)) ? (-1) : (0)) != (0))
{
PRINT(("") + ("WHOM DO YOU WANT TO FIGHT?"));
@@ -1402,24 +1424,6 @@ private int Main()
map[(int)(16), (int)(0)] = (17);
objectRooms[(int)(13)] = (0);
}
goto L100;
L4900:
;
if ((((verb.CompareTo("WEA")) != (0)) ? (-1) : (0)) != (0))
{
goto L5000;
}
Wear();
goto L100;
L5000:
;
; //
PRINT(("") + ("I DON'T KNOW HOW TO DO THAT"));
goto L100;
}
private void Wear()

0 comments on commit ee9d1cc

Please sign in to comment.