Esempio n. 1
0
 public short Height(int x, int y, InterCardinalDirection d)
 {
     if (x < 0 || x >= size.Width || y < 0 || y >= size.Height)
     {
         return(-1);
     }
     else
     {
         return(groundLv);
     }
 }
Esempio n. 2
0
 public static Direction Get(InterCardinalDirection dir)
 {
     return(directions[(int)dir]);
 }