forked from External/mage
Refactor: added copyFrom info for all objects (original card used for copy, copy of copy and etc);
This commit is contained in:
parent
28ac95cb10
commit
59bda7f1d5
25 changed files with 269 additions and 220 deletions
|
|
@ -64,20 +64,14 @@ public interface MageObject extends MageItem, Serializable {
|
|||
|
||||
void adjustTargets(Ability ability, Game game);
|
||||
|
||||
// memory object copy (not mtg)
|
||||
MageObject copy();
|
||||
|
||||
/**
|
||||
* Defines that MageObject is a copy of another object
|
||||
*
|
||||
* @param isCopy
|
||||
*/
|
||||
void setCopy(boolean isCopy);
|
||||
// copied card info (mtg)
|
||||
void setCopy(boolean isCopy, MageObject copiedFrom);
|
||||
|
||||
MageObject getCopyFrom();
|
||||
|
||||
/**
|
||||
* Checks if current MageObject is a copy of another object
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
boolean isCopy();
|
||||
|
||||
int getZoneChangeCounter(Game game);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue