Package mage

Examples of mage.MageObject.copy()


        }*/
        Map<UUID, MageObject> lkiMap = lki.get(zone);
        if (lkiMap != null) {
            MageObject object = lkiMap.get(objectId);
            if (object != null) {
                return object.copy();
            }
            for (MageObject mageObject:lkiMap.values()) {
                if (mageObject instanceof Spell) {
                    if (((Spell)mageObject).getCard().getId().equals(objectId)) {
                        return mageObject;
View Full Code Here


            Map<Integer, MageObject> lkiMapExtended = lkiExtended.get(objectId);

            if (lkiMapExtended != null) {
                MageObject object = lkiMapExtended.get(zoneChangeCounter);
                if (object != null) {
                    return object.copy();
                }
            }
        }

        return getLastKnownInformation(objectId, zone);
View Full Code Here

    public MageObject getShortLivingLKI(UUID objectId, Zone zone) {
        Map<UUID, MageObject> shortLivingLkiMap = shortLivingLKI.get(zone);
        if (shortLivingLkiMap != null) {
            MageObject object = shortLivingLkiMap.get(objectId);
            if (object != null) {
                return object.copy();
            }
        }
        return null;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.