public Bullets(Context context, float x, float y, boolean autoAdd, int type_direction) { super(x, y, autoAdd); // TODO Auto-generated constructor stub // setBitmapAndAutoChangeWH(BitmapUtil.hand); setBitmapAndFrameWH( BitmapUtil.hand, BitmapUtil.hand.getWidth() / 7, BitmapUtil.hand.getHeight() / 2); addActionFPSFrame( HandAnimaton.Move.getName(), new int[] {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}, HandAnimaton.Move.getFramesTime()); // setX(x - w/2); this.type_direction = type_direction; // if(type_direction == TYPE_TWO_HAND_LEFT_UP || type_direction == TYPE_TWO_HAND_RIGHT_UP){ // reflectCounter++; // } if (type_direction == TYPE_TWO_HAND_LEFT_UP || type_direction == TYPE_TWO_HAND_RIGHT_UP) { if (type == Top) { type = Down; } else { type = Top; } limit = CommonUtil.cat_bg_height; } this.context = context; initCollisiontRectF(); initMove(); }