mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
checkstyle
This commit is contained in:
@@ -105,7 +105,7 @@ public final class AllZone {
|
|||||||
private static DeckManager deckManager;
|
private static DeckManager deckManager;
|
||||||
|
|
||||||
/** Constant <code>CARD_RATINGS</code>. */
|
/** Constant <code>CARD_RATINGS</code>. */
|
||||||
private static CardRatings CARD_RATINGS = new CardRatings();
|
private static CardRatings cardRatings = new CardRatings();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
@@ -717,7 +717,7 @@ public final class AllZone {
|
|||||||
* @return the CardRatings object
|
* @return the CardRatings object
|
||||||
*/
|
*/
|
||||||
public static CardRatings getCardRatings() {
|
public static CardRatings getCardRatings() {
|
||||||
return AllZone.CARD_RATINGS;
|
return AllZone.cardRatings;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // AllZone
|
} // AllZone
|
||||||
|
|||||||
@@ -301,6 +301,12 @@ public final class CardColor implements Comparable<CardColor> {
|
|||||||
CardColor.nullColor = nullColor0;
|
CardColor.nullColor = nullColor0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Shares color with.
|
||||||
|
*
|
||||||
|
* @param ccOther the cc other
|
||||||
|
* @return true, if successful
|
||||||
|
*/
|
||||||
public boolean sharesColorWith(CardColor ccOther) {
|
public boolean sharesColorWith(CardColor ccOther) {
|
||||||
|
|
||||||
if (this.isWhite() && ccOther.isWhite()) {
|
if (this.isWhite() && ccOther.isWhite()) {
|
||||||
|
|||||||
@@ -296,10 +296,21 @@ public final class CardType implements Comparable<CardType> {
|
|||||||
return this.toString().compareTo(o.toString());
|
return this.toString().compareTo(o.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the sub types.
|
||||||
|
*
|
||||||
|
* @return the sub types
|
||||||
|
*/
|
||||||
public List<String> getSubTypes() {
|
public List<String> getSubTypes() {
|
||||||
return this.subType;
|
return this.subType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Shares sub type with.
|
||||||
|
*
|
||||||
|
* @param ctOther the ct other
|
||||||
|
* @return true, if successful
|
||||||
|
*/
|
||||||
public boolean sharesSubTypeWith(CardType ctOther) {
|
public boolean sharesSubTypeWith(CardType ctOther) {
|
||||||
for (String t : ctOther.getSubTypes()) {
|
for (String t : ctOther.getSubTypes()) {
|
||||||
if (this.subTypeContains(t)) {
|
if (this.subTypeContains(t)) {
|
||||||
|
|||||||
@@ -54,7 +54,8 @@ public class ControlHand {
|
|||||||
private MouseAdapter maCardClick;
|
private MouseAdapter maCardClick;
|
||||||
private MouseMotionAdapter maCardMove;
|
private MouseMotionAdapter maCardMove;
|
||||||
|
|
||||||
Observer o1;
|
/** The o1. */
|
||||||
|
private Observer o1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Child controller - handles operations related to cards in user's hand and
|
* Child controller - handles operations related to cards in user's hand and
|
||||||
|
|||||||
Reference in New Issue
Block a user