forked from External/mage
- added tokens support in test render dialog; - improved PT drawing; - fixed broken second side switch button (related to #10231); - fixed miss override in TokenImpl (all override with backFace must be removed, see todo);
71 lines
1.8 KiB
Java
71 lines
1.8 KiB
Java
package mage.game.permanent.token;
|
|
|
|
import mage.MageObject;
|
|
import mage.ObjectColor;
|
|
import mage.abilities.Ability;
|
|
import mage.cards.Card;
|
|
import mage.game.Game;
|
|
|
|
import java.util.List;
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* @author ArcadeMode
|
|
*/
|
|
public interface Token extends MageObject {
|
|
|
|
@Override
|
|
Token copy();
|
|
|
|
String getDescription();
|
|
|
|
List<UUID> getLastAddedTokenIds();
|
|
|
|
void addAbility(Ability ability);
|
|
|
|
void removeAbility(Ability abilityToRemove);
|
|
|
|
void removeAbilities(List<Ability> abilitiesToRemove);
|
|
|
|
boolean putOntoBattlefield(int amount, Game game, Ability source);
|
|
|
|
boolean putOntoBattlefield(int amount, Game game, Ability source, UUID controllerId);
|
|
|
|
boolean putOntoBattlefield(int amount, Game game, Ability source, UUID controllerId, boolean tapped, boolean attacking);
|
|
|
|
boolean putOntoBattlefield(int amount, Game game, Ability source, UUID controllerId, boolean tapped, boolean attacking, UUID attackedPlayer);
|
|
|
|
boolean putOntoBattlefield(int amount, Game game, Ability source, UUID controllerId, boolean tapped, boolean attacking, UUID attackedPlayer, boolean created);
|
|
|
|
int getTokenType();
|
|
|
|
void setPower(int power);
|
|
|
|
void setToughness(int toughness);
|
|
|
|
void setTokenType(int tokenType);
|
|
|
|
String getOriginalCardNumber();
|
|
|
|
void setOriginalCardNumber(String originalCardNumber);
|
|
|
|
String getOriginalExpansionSetCode();
|
|
|
|
void setOriginalExpansionSetCode(String originalExpansionSetCode);
|
|
|
|
Card getCopySourceCard();
|
|
|
|
void setCopySourceCard(Card copySourceCard);
|
|
|
|
void setExpansionSetCodeForImage(String code);
|
|
|
|
Token getBackFace();
|
|
|
|
void setColor(ObjectColor color);
|
|
|
|
void clearManaCost();
|
|
|
|
void setEntersTransformed(boolean entersTransformed);
|
|
|
|
boolean isEntersTransformed();
|
|
}
|