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