예제 #1
0
 private static boolean postMessage(MotionEvent event) {
   AirStrikeObject obj;
   for (int i = 0; i < mObjects.getSize(); i++) {
     obj = mObjects.getObject(i);
     if (obj.getState() != ObjectState.stop) ((TouchListener) obj).onTouchEvent(event);
   }
   return true;
 }
예제 #2
0
 public static void delTouchListener(String name) {
   AirStrikeObject obj;
   for (int i = 0; i < mObjects.getSize(); i++) {
     obj = mObjects.getObject(i);
     if (obj.mName == name) {
       mObjects.delObjectByID(obj.mID);
       break;
     }
   }
 }
예제 #3
0
 public static void delTouchListener(int id) {
   mObjects.delObjectByID(id);
 }
예제 #4
0
 public static void addTouchListener(AirStrikeObject obj) {
   mObjects.addObject(obj);
 }