mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
Start to add builder pattern to some card definition classes
This commit is contained in:
parent
db18af0161
commit
3c91b8d15f
2 changed files with 3 additions and 2 deletions
|
@ -46,7 +46,7 @@ public interface Effect extends Serializable {
|
||||||
UUID getId();
|
UUID getId();
|
||||||
void newId();
|
void newId();
|
||||||
String getText(Mode mode);
|
String getText(Mode mode);
|
||||||
void setText(String staticText);
|
Effect setText(String staticText);
|
||||||
boolean apply(Game game, Ability source);
|
boolean apply(Game game, Ability source);
|
||||||
Outcome getOutcome();
|
Outcome getOutcome();
|
||||||
void setOutcome(Outcome outcome);
|
void setOutcome(Outcome outcome);
|
||||||
|
|
|
@ -85,8 +85,9 @@ public abstract class EffectImpl implements Effect {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setText(String staticText) {
|
public Effect setText(String staticText) {
|
||||||
this.staticText = staticText;
|
this.staticText = staticText;
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue