Fade in\fade out effects for adding and removing permanents.

This commit is contained in:
magenoxx 2010-12-09 22:14:19 +00:00
parent 55eba04697
commit 850f931bc7
9 changed files with 109 additions and 65 deletions

View file

@ -32,4 +32,6 @@ public interface MagePlugins {
int getGamesPlayed();
void addGamesPlayed();
Image getManaSymbolImage(String symbol);
void onAddCard(MagePermanent card);
void onRemoveCard(MagePermanent card);
}

View file

@ -167,4 +167,18 @@ public class Plugins implements MagePlugins {
}
return null;
}
@Override
public void onAddCard(MagePermanent card) {
if (this.cardPlugin != null) {
this.cardPlugin.onAddCard(card);
}
}
@Override
public void onRemoveCard(MagePermanent card) {
if (this.cardPlugin != null) {
this.cardPlugin.onRemoveCard(card);
}
}
}