Exemple #1
0
 public boolean hit() {
   for (GameObject g : touchingObjects) {
     if (!touchingObjectsLast.contains(g)) {
       return true;
     }
   }
   return false;
 }
Exemple #2
0
 public boolean hitComponent(String compName) {
   for (GameObject g : touchingObjects) {
     if (g.components.get(compName) != null && !touchingObjectsLast.contains(g)) return true;
   }
   return false;
 }
Exemple #3
0
 public boolean hitProperty(String propName) {
   for (GameObject g : touchingObjects) {
     if (g.props.containsKey(propName) && !touchingObjectsLast.contains(g)) return true;
   }
   return false;
 }
Exemple #4
0
 public boolean hit(String name) {
   for (GameObject g : touchingObjects) {
     if (g.name().equals(name) && !touchingObjectsLast.contains(g)) return true;
   }
   return false;
 }