MCPcopy Create free account
hub / github.com/Card-Forge/forge / onCardChanged

Method onCardChanged

forge-gui-mobile/src/forge/card/CardZoom.java:167–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165 }
166
167 private static void onCardChanged() {
168 mutateIconBounds = null;
169 if (activateHandler != null) {
170 currentActivateAction = activateHandler.getActivateAction(currentIndex);
171 }
172 if (MatchController.instance.mayFlip(currentCard)) {
173 flipIconBounds = new Rectangle();
174 } else {
175 flipIconBounds = null;
176 }
177 if (currentCard != null) {
178 if (!currentCard.getMergedCardsCollection().isEmpty())
179 mutateIconBounds = new Rectangle();
180 }
181 showAltState = false;
182 specialize.setVisible(
183 currentCard != null && currentCard.canSpecialize() && currentCard.getCurrentState().getState() == CardStateName.Original
184 );
185 }
186
187 private static CardView getCardView(Object item) {
188 if (item instanceof Entry) {

Callers 2

showMethod · 0.95
incrementCardMethod · 0.95

Calls 8

getActivateActionMethod · 0.65
mayFlipMethod · 0.65
isEmptyMethod · 0.65
setVisibleMethod · 0.65
canSpecializeMethod · 0.45
getStateMethod · 0.45
getCurrentStateMethod · 0.45

Tested by

no test coverage detected