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