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