removed constructor, standarized accessibility of constants

master
melvin 2013-07-08 11:47:53 +08:00
parent 485af57e16
commit c749846931
1 changed files with 4 additions and 8 deletions

View File

@ -9,19 +9,15 @@ public class MagicLoseGameAction extends MagicAction {
public static final String LIFE_REASON = " lost the game.";
public static final String POISON_REASON = " lost the game because of poisoning.";
static final String DRAW_REASON = " lost the game because of an attempt to draw from an empty library.";
public static final String DRAW_REASON = " lost the game because of an attempt to draw from an empty library.";
private final MagicPlayer player;
private final String reason;
private MagicPlayer oldLosingPlayer = MagicPlayer.NONE;
public MagicLoseGameAction(final MagicPlayer player,final String reason) {
this.player=player;
this.reason=reason;
}
public MagicLoseGameAction(final MagicPlayer player) {
this(player, LIFE_REASON);
public MagicLoseGameAction(final MagicPlayer aPlayer,final String aReason) {
player = aPlayer;
reason = aReason;
}
@Override