Guest User

Untitled

a guest
Jun 24th, 2018
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.97 KB | None | 0 0
  1. switch (cardinalDirection)
  2. {
  3. case 0:
  4. {
  5.     int num = this.invincibleFromDirection;
  6.     switch (num)
  7.     {
  8.     case 5:
  9.     case 8:
  10.     case 10:
  11.         break;
  12.     default:
  13.         if (num != 1)
  14.         {
  15.             return false;
  16.         }
  17.         break;
  18.     }
  19.     return true;
  20. }
  21. case 1:
  22.     switch (this.invincibleFromDirection)
  23.     {
  24.     case 2:
  25.     case 5:
  26.     case 6:
  27.     case 7:
  28.     case 8:
  29.     case 9:
  30.         return true;
  31.     }
  32.     return false;
  33. case 2:
  34. {
  35.     int num2 = this.invincibleFromDirection;
  36.     switch (num2)
  37.     {
  38.     case 3:
  39.     case 6:
  40.         break;
  41.     default:
  42.         switch (num2)
  43.         {
  44.         case 9:
  45.         case 11:
  46.             return true;
  47.         }
  48.         return false;
  49.     }
  50.     return true;
  51. }
  52. case 3:
  53.     switch (this.invincibleFromDirection)
  54.     {
  55.     case 4:
  56.     case 7:
  57.     case 8:
  58.     case 9:
  59.     case 10:
  60.     case 11:
  61.         return true;
  62.     }
  63.     return false;
  64. default:
  65.     return false;
  66. }
Advertisement
Add Comment
Please, Sign In to add comment