mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +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();
|
||||
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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue