rewrote singleton to enum where applicable

This commit is contained in:
ingmargoudt 2017-03-14 16:31:57 +01:00
parent 3b62489ef5
commit 234cfe9519
872 changed files with 1796 additions and 2135 deletions

View file

@ -36,19 +36,9 @@ import mage.game.Game;
*
* @author LevelX2
*/
public class TributeNotPaidCondition implements Condition {
public enum TributeNotPaidCondition implements Condition {
private static TributeNotPaidCondition fInstance = null;
private TributeNotPaidCondition() {
}
public static Condition getInstance() {
if (fInstance == null) {
fInstance = new TributeNotPaidCondition();
}
return fInstance;
}
instance;
@Override
public boolean apply(Game game, Ability source) {