forked from External/mage
Started to implement a solution for effects that change words in rule text.
This commit is contained in:
parent
e3f6a6b418
commit
66c69e51a3
14 changed files with 441 additions and 40 deletions
32
Mage/src/main/java/mage/abilities/text/TextPartImpl.java
Normal file
32
Mage/src/main/java/mage/abilities/text/TextPartImpl.java
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package mage.abilities.text;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
* @param <E>
|
||||
*/
|
||||
public abstract class TextPartImpl<E> implements TextPart<E> {
|
||||
|
||||
private final UUID id;
|
||||
|
||||
public TextPartImpl() {
|
||||
this.id = UUID.randomUUID();
|
||||
}
|
||||
|
||||
public TextPartImpl(final TextPartImpl textPartimpl) {
|
||||
this.id = textPartimpl.id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue