Package mage.client.draft

Examples of mage.client.draft.DraftPanel


                            MageFrame.removeDraft(callback.getObjectId());
                            break;
                        case "draftPick":
                            {
                                DraftClientMessage message = (DraftClientMessage) callback.getData();
                                DraftPanel panel = MageFrame.getDraft(callback.getObjectId());
                                if (panel != null) {
                                    panel.loadBooster(message.getDraftPickView());
                                }       break;
                            }
                        case "draftUpdate":
                            {
                                DraftPanel panel = MageFrame.getDraft(callback.getObjectId());
                                if (panel != null) {
                                    panel.updateDraft((DraftView) callback.getData());
                                }
                                break;
                            }
                        case "draftInform":
//                            if (callback.getMessageId() > messageId) {
                            {
                                DraftClientMessage message = (DraftClientMessage) callback.getData();
                            }
//                            } else {
//                                logger.warn("message out of sequence - ignoring");
//                            }
//                            break;
                        case "draftInit":
                            {
                                DraftClientMessage message = (DraftClientMessage) callback.getData();
                                DraftPanel panel = MageFrame.getDraft(callback.getObjectId());
                                if (panel != null) {
                                    panel.loadBooster(message.getDraftPickView());
                                }       break;
                            }
                        case "tournamentInit":
                            break;
                    }
View Full Code Here


    public static DraftPanel getDraft(UUID draftId) {
        return drafts.get(draftId);
    }

    public static void removeDraft(UUID draftId) {
        DraftPanel draftPanel = drafts.get(draftId);
        if (draftPanel != null) {
            drafts.remove(draftId);
            draftPanel.hideDraft();
        }       
    }
View Full Code Here

TOP

Related Classes of mage.client.draft.DraftPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.