forked from External/mage
36 lines
975 B
Java
36 lines
975 B
Java
package mage.client.cards;
|
|
|
|
import mage.client.deckeditor.SortSetting;
|
|
import mage.client.util.Event;
|
|
import mage.client.util.Listener;
|
|
import mage.view.CardsView;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* Interface for card container.
|
|
*
|
|
* @author nantuko
|
|
*/
|
|
public interface ICardGrid {
|
|
void clearCardEventListeners();
|
|
|
|
void addCardEventListener(Listener<Event> listener);
|
|
|
|
void drawCards(SortSetting sortSetting);
|
|
|
|
void loadCards(CardsView showCards, SortSetting sortSetting, BigCard bigCard, UUID gameId);
|
|
|
|
void loadCards(CardsView showCards, SortSetting sortSetting, BigCard bigCard, UUID gameId, boolean merge);
|
|
|
|
void refresh();
|
|
|
|
int cardsSize();
|
|
|
|
// only for debug, return inner cards list
|
|
Object getCardsStore();
|
|
|
|
// specil memory optimization to clean inner cards list before new cards load, so you don't need 2x memory
|
|
// WARNING, you must call it in same code as new cards list prepare
|
|
void clearCardsStoreBeforeUpdate();
|
|
}
|