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; }
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; } } }
public static void delTouchListener(int id) { mObjects.delObjectByID(id); }
public static void addTouchListener(AirStrikeObject obj) { mObjects.addObject(obj); }