checkstyle

This commit is contained in:
jendave
2012-01-03 17:42:34 +00:00
parent e4b929d86e
commit 30f1b373f3
4 changed files with 21 additions and 3 deletions

View File

@@ -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

View File

@@ -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()) {

View File

@@ -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)) {

View File

@@ -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