예제 #1
0
 public static boolean Home() {
   for (Key key : Key.keys) {
     if (key.getEffect().equals(HOME)) {
       if (key.down) return true;
     }
   }
   return false;
 }
예제 #2
0
 public static boolean PageUp() {
   for (Key key : Key.keys) {
     if (key.getEffect().equals(PAGE_UP)) {
       if (key.down) return true;
     }
   }
   return false;
 }
예제 #3
0
 public static boolean MoveDown() {
   for (Key key : Key.keys) {
     if (key.getEffect().equals(DOWN)) {
       if (key.down) return true;
     }
   }
   return false;
 }
예제 #4
0
 public static boolean Escape() {
   for (Key key : Key.keys) {
     if (key.getEffect().equals(ESCAPE)) {
       if (key.down) return true;
     }
   }
   return false;
 }
예제 #5
0
 public static boolean Shift() {
   for (Key key : Key.keys) {
     if (key.getEffect().equals(SHIFT)) {
       if (key.down) return true;
     }
   }
   return false;
 }
예제 #6
0
 public static boolean MoveRight() {
   for (Key key : Key.keys) {
     if (key.getEffect().equals(RIGHT)) {
       if (key.down) return true;
     }
   }
   return false;
 }
예제 #7
0
 public static boolean Minimap() {
   for (Key key : Key.keys) {
     if (key.getEffect().equals(MINIMAP)) {
       if (key.down) return true;
     }
   }
   return false;
 }
예제 #8
0
 public static boolean Equipment() {
   for (Key key : Key.keys) {
     if (key.getEffect().equals(EQUIPMENT)) {
       if (key.down) return true;
     }
   }
   return false;
 }
예제 #9
0
 public static boolean Inventory() {
   for (Key key : Key.keys) {
     if (key.getEffect().equals(INVENTORY)) {
       if (key.down) return true;
     }
   }
   return false;
 }
예제 #10
0
 public static boolean Enemy5() {
   for (Key key : Key.keys) {
     if (key.getEffect().equals(FIVE)) {
       if (key.down) return true;
     }
   }
   return false;
 }
예제 #11
0
 public static boolean Enter() {
   for (Key key : Key.keys) {
     if (key.getEffect().equals(ENTER)) {
       if (key.down) return true;
     }
   }
   return false;
 }