(float x, float y, int count)
| 216 | } |
| 217 | |
| 218 | @Override |
| 219 | public boolean tap(float x, float y, int count) { |
| 220 | if (mutateIconBounds != null && mutateIconBounds.contains(x, y)) { |
| 221 | if (showMerged) { |
| 222 | showMerged = false; |
| 223 | } else { |
| 224 | showMerged = true; |
| 225 | show(currentCard.getMergedCardsCollection(), 0, null); |
| 226 | } |
| 227 | return true; |
| 228 | } |
| 229 | if (flipIconBounds != null && flipIconBounds.contains(x, y)) { |
| 230 | if (currentCard.isFaceDown() && currentCard.getBackup() != null) { |
| 231 | if (currentCard.getBackup().hasBackSide() || currentCard.getBackup().isFlipCard() || currentCard.getBackup().hasSecondaryState()) { |
| 232 | show(currentCard.getBackup()); |
| 233 | return true; |
| 234 | } |
| 235 | } |
| 236 | if (!showBackSide) |
| 237 | showAltState = !showAltState; |
| 238 | else |
| 239 | showBackSide = !showBackSide; |
| 240 | return true; |
| 241 | } |
| 242 | hide(); |
| 243 | showBackSide = false; |
| 244 | showAltState = false; |
| 245 | showMerged = false; |
| 246 | return true; |
| 247 | } |
| 248 | |
| 249 | @Override |
| 250 | public boolean fling(float velocityX, float velocityY) { |
no test coverage detected