forked from External/mage
38 lines
1.3 KiB
Java
38 lines
1.3 KiB
Java
package mage.client.plugins;
|
|
|
|
import java.awt.Image;
|
|
import java.util.Collection;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
import java.util.UUID;
|
|
|
|
import javax.swing.JComponent;
|
|
|
|
import mage.cards.Card;
|
|
import mage.cards.CardDimensions;
|
|
import mage.cards.MageCard;
|
|
import mage.cards.MagePermanent;
|
|
import mage.client.cards.BigCard;
|
|
import mage.view.CardView;
|
|
import mage.view.PermanentView;
|
|
|
|
public interface MagePlugins {
|
|
void loadPlugins();
|
|
void shutdown();
|
|
void updateGamePanel(Map<String, JComponent> ui);
|
|
JComponent updateTablePanel(Map<String, JComponent> ui);
|
|
MagePermanent getMagePermanent(PermanentView card, BigCard bigCard, CardDimensions dimension, UUID gameId, boolean canBeFoil);
|
|
MageCard getMageCard(CardView card, BigCard bigCard, CardDimensions dimension, UUID gameId, boolean canBeFoil);
|
|
boolean isThemePluginLoaded();
|
|
boolean isCardPluginLoaded();
|
|
boolean isCounterPluginLoaded();
|
|
void sortPermanents(Map<String, JComponent> ui, Collection<MagePermanent> permanents);
|
|
void downloadImage(Set<Card> allCards);
|
|
void downloadSymbols();
|
|
int getGamesPlayed();
|
|
void addGamesPlayed();
|
|
Image getManaSymbolImage(String symbol);
|
|
void onAddCard(MagePermanent card, int count);
|
|
void onRemoveCard(MagePermanent card, int count);
|
|
JComponent getCardInfoPane();
|
|
}
|