Start to add builder pattern to some card definition classes

This commit is contained in:
Mark Langen 2017-04-16 23:18:35 -06:00
parent db18af0161
commit 3c91b8d15f
2 changed files with 3 additions and 2 deletions

View file

@ -46,7 +46,7 @@ public interface Effect extends Serializable {
UUID getId();
void newId();
String getText(Mode mode);
void setText(String staticText);
Effect setText(String staticText);
boolean apply(Game game, Ability source);
Outcome getOutcome();
void setOutcome(Outcome outcome);

View file

@ -85,8 +85,9 @@ public abstract class EffectImpl implements Effect {
}
@Override
public void setText(String staticText) {
public Effect setText(String staticText) {
this.staticText = staticText;
return this;
}
@Override