├── start.bat ├── start.sh ├── CardManager.png ├── packageGrab.sh ├── data ├── noimage.jpg ├── backgrounds │ ├── MtG.jpg │ ├── b1fv.png │ ├── b2fv.png │ └── uglyDefoult.jpg ├── globalSettings.txt └── packages │ ├── magic │ ├── 2003 │ │ ├── white │ │ │ ├── Wheenie White │ │ │ └── WG Battle Screech │ │ ├── black │ │ │ ├── Tomb Raider II │ │ │ └── Corrupter │ │ ├── blue │ │ │ └── UG Madness │ │ ├── green │ │ │ ├── Keebler Kaos │ │ │ └── Mai-Kai Wake │ │ ├── red │ │ │ ├── Burning Bridge │ │ │ ├── Goblin Sligh │ │ │ └── Red Dawn v2 │ │ └── rainbow │ │ │ └── WG Battle Screech │ ├── 2004 │ │ ├── artefacts │ │ │ └── Affinity │ │ ├── green │ │ │ └── Snake Pain │ │ ├── blue │ │ │ ├── High Tide │ │ │ └── blue control │ │ ├── rainbow │ │ │ ├── Twelve-Post │ │ │ └── ToT │ │ └── white │ │ │ └── The Way of the Warrior │ ├── 2005 │ │ ├── blue │ │ │ ├── merfolk │ │ │ └── Stasis-Kismet │ │ ├── green │ │ │ ├── Beat Down │ │ │ ├── Dragon Seeds │ │ │ └── Mono Green Aggro │ │ ├── rainbow │ │ │ ├── multi-colored joy joy │ │ │ ├── Reanimator │ │ │ └── Solar Flare │ │ ├── white │ │ │ └── Snow White │ │ └── red │ │ │ ├── Speedy gonzalez │ │ │ └── Dragonstorm │ ├── 2006 │ │ ├── white │ │ │ ├── Army of Many │ │ │ ├── Token Life │ │ │ └── Uw Tronair │ │ ├── black │ │ │ ├── BAH ZOMBIES │ │ │ ├── Sudden Death │ │ │ └── Black Ice │ │ ├── blue │ │ │ ├── fish fry │ │ │ ├── Land Lord │ │ │ ├── Pickles │ │ │ ├── Ideal │ │ │ ├── uw mill │ │ │ └── UG Faeries │ │ ├── green │ │ │ ├── Acorn Recursion │ │ │ ├── Forest, Run │ │ │ ├── 2007 States - 5th │ │ │ └── Green Beatdown │ │ ├── rainbow │ │ │ ├── Friggorid │ │ │ ├── Angelfire │ │ │ └── elemental 2.5 │ │ ├── red │ │ │ └── Battlemage │ │ └── artifacts │ │ │ └── ga │ ├── 2012 │ │ ├── red │ │ │ ├── TheySeeMeBurnin │ │ │ ├── MonoRedControl │ │ │ ├── RGdreams │ │ │ ├── Goblins │ │ │ ├── red_deck_wins │ │ │ ├── DragonPowa │ │ │ └── FaithlessRights │ │ ├── white │ │ │ ├── WhiteHumans │ │ │ ├── BRW │ │ │ └── PathOfWar │ │ ├── green │ │ │ ├── MonoGreenDungrove │ │ │ ├── ThundermawRamp │ │ │ ├── GeterDungrove │ │ │ ├── RG_Aggro_Wins_Nice │ │ │ ├── belcher │ │ │ ├── triple_threat_infect │ │ │ ├── StandardGUW_Flicker │ │ │ └── RCargo │ │ ├── black │ │ │ ├── VampireControlV2 │ │ │ ├── MonoBlackControl │ │ │ ├── Legal black no-creatures │ │ │ └── UB_zombies │ │ ├── artefacts │ │ │ └── GOGO-Phyrexia │ │ ├── rainbow │ │ │ ├── Naya_Aggro │ │ │ ├── dredge │ │ │ ├── Aluren │ │ │ └── awq │ │ └── blue │ │ │ └── haves │ └── interesting1 │ │ ├── white │ │ ├── Kithkins │ │ ├── angels │ │ ├── Stonegeddon │ │ ├── Angels Rise │ │ ├── angel │ │ └── AllAngels │ │ ├── red │ │ ├── MINOTAUR │ │ └── Sneakin' Dragons │ │ ├── redAndWhite │ │ └── RW Boros Army │ │ ├── rainbow │ │ ├── Vampires │ │ ├── AngelFire Old PTQ1st │ │ ├── Dragons │ │ ├── Jund Dragons │ │ └── Kaalia of the Angels │ │ └── black │ │ └── Dragon deck │ ├── clasic32 │ ├── fullCanasta │ └── doomtrooper │ ├── bauhausPride │ └── brotherhood ├── packageGrab.bat ├── web ├── Screenshot-1.png ├── Screenshot-2.png ├── Screenshot-3.png ├── Screenshot-4.png ├── Screenshot.png └── data │ └── backgrounds │ ├── MtG.jpg │ └── uglyDefoult.jpg ├── manifest.mf ├── collection └── classicCards │ ├── 1.png │ ├── 10.png │ ├── 11.png │ ├── 12.png │ ├── 13.png │ ├── 14.png │ ├── 15.png │ ├── 16.png │ ├── 17.png │ ├── 18.png │ ├── 19.png │ ├── 2.png │ ├── 20.png │ ├── 21.png │ ├── 22.png │ ├── 23.png │ ├── 24.png │ ├── 25.png │ ├── 26.png │ ├── 27.png │ ├── 28.png │ ├── 29.png │ ├── 3.png │ ├── 30.png │ ├── 31.png │ ├── 32.png │ ├── 33.png │ ├── 34.png │ ├── 35.png │ ├── 36.png │ ├── 37.png │ ├── 38.png │ ├── 39.png │ ├── 4.png │ ├── 40.png │ ├── 41.png │ ├── 42.png │ ├── 43.png │ ├── 44.png │ ├── 45.png │ ├── 46.png │ ├── 47.png │ ├── 48.png │ ├── 49.png │ ├── 5.png │ ├── 50.png │ ├── 51.png │ ├── 52.png │ ├── 53.png │ ├── 54.png │ ├── 6.png │ ├── 7.png │ ├── 8.png │ ├── 9.png │ └── bonus │ ├── penguin-ace-of-spades.png │ └── bsd-daemon-ace-of-spades.png ├── .gitignore ├── src └── cardmanager │ ├── FileBearer.java │ ├── impl │ ├── networking │ │ ├── SyncKeeper.java │ │ ├── BooleanAndMessage.java │ │ ├── InputStreamReporter.java │ │ ├── NetworkStarter.java │ │ └── JoinedPlayer.java │ ├── packages │ │ ├── PackageDeffinitionAndErrors.java │ │ ├── Package.java │ │ ├── CountedCard.java │ │ ├── PackageVerifikationResult.java │ │ ├── AbstractPackage.java │ │ ├── PackageDef.java │ │ └── CardDefinition.java │ ├── gui │ │ └── CardInstanceViewForSelectComponent.java │ ├── NetworkLogger.java │ ├── card │ │ ├── MarkersCache.java │ │ ├── CardCache.java │ │ ├── CardGeometry.java │ │ └── Marker.java │ └── TempSettings.java │ ├── gui │ ├── impl │ │ ├── drags │ │ │ ├── Drag.java │ │ │ ├── CardDrag.java │ │ │ └── MarkerDrag.java │ │ ├── HandComponent.java │ │ ├── Popupizer.java │ │ ├── OfflineHelp.form │ │ ├── OnlineHelp.form │ │ ├── OnlineHelp.java │ │ └── MemoWatcher.java │ ├── ViewPackagePanel.form │ ├── JListScroller.java │ ├── CollectionView.form │ ├── SelectcardDialog.form │ ├── ViewPackagePanel.java │ └── CollectionView.java │ ├── networking │ ├── NetworkGameProceeder.java │ ├── NetworkGame.java │ └── impl │ │ └── AbstractNetworkGame.java │ ├── ExtractCards.java │ ├── popuppokus.form │ ├── TreeTest.form │ └── popuppokus.java ├── CardManager.desktop ├── nbproject ├── genfiles.properties ├── project.xml └── project.properties ├── README.md ├── removeManifestEntries.patch ├── license.txt └── FedoraLauncher.sh /start.bat: -------------------------------------------------------------------------------- 1 | java -Xmx1g -jar dist/CardManager.jar -------------------------------------------------------------------------------- /start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | java -Xmx1g -jar dist/CardManager.jar 3 | -------------------------------------------------------------------------------- /CardManager.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/CardManager.png -------------------------------------------------------------------------------- /packageGrab.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | java -cp dist/CardManager.jar packagegrabber.Main $@ 3 | -------------------------------------------------------------------------------- /data/noimage.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/data/noimage.jpg -------------------------------------------------------------------------------- /packageGrab.bat: -------------------------------------------------------------------------------- 1 | java -cp dist/CardManager.jar packagegrabber.Main %1 %2 %3 %4 %5 %6 %7 %8 %9 2 | -------------------------------------------------------------------------------- /web/Screenshot-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/web/Screenshot-1.png -------------------------------------------------------------------------------- /web/Screenshot-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/web/Screenshot-2.png -------------------------------------------------------------------------------- /web/Screenshot-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/web/Screenshot-3.png -------------------------------------------------------------------------------- /web/Screenshot-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/web/Screenshot-4.png -------------------------------------------------------------------------------- /web/Screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/web/Screenshot.png -------------------------------------------------------------------------------- /data/backgrounds/MtG.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/data/backgrounds/MtG.jpg -------------------------------------------------------------------------------- /data/backgrounds/b1fv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/data/backgrounds/b1fv.png -------------------------------------------------------------------------------- /data/backgrounds/b2fv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/data/backgrounds/b2fv.png -------------------------------------------------------------------------------- /manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | X-COMMENT: Main-Class will be added automatically by build 3 | 4 | -------------------------------------------------------------------------------- /collection/classicCards/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/1.png -------------------------------------------------------------------------------- /collection/classicCards/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/10.png -------------------------------------------------------------------------------- /collection/classicCards/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/11.png -------------------------------------------------------------------------------- /collection/classicCards/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/12.png -------------------------------------------------------------------------------- /collection/classicCards/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/13.png -------------------------------------------------------------------------------- /collection/classicCards/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/14.png -------------------------------------------------------------------------------- /collection/classicCards/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/15.png -------------------------------------------------------------------------------- /collection/classicCards/16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/16.png -------------------------------------------------------------------------------- /collection/classicCards/17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/17.png -------------------------------------------------------------------------------- /collection/classicCards/18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/18.png -------------------------------------------------------------------------------- /collection/classicCards/19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/19.png -------------------------------------------------------------------------------- /collection/classicCards/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/2.png -------------------------------------------------------------------------------- /collection/classicCards/20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/20.png -------------------------------------------------------------------------------- /collection/classicCards/21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/21.png -------------------------------------------------------------------------------- /collection/classicCards/22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/22.png -------------------------------------------------------------------------------- /collection/classicCards/23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/23.png -------------------------------------------------------------------------------- /collection/classicCards/24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/24.png -------------------------------------------------------------------------------- /collection/classicCards/25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/25.png -------------------------------------------------------------------------------- /collection/classicCards/26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/26.png -------------------------------------------------------------------------------- /collection/classicCards/27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/27.png -------------------------------------------------------------------------------- /collection/classicCards/28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/28.png -------------------------------------------------------------------------------- /collection/classicCards/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/29.png -------------------------------------------------------------------------------- /collection/classicCards/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/3.png -------------------------------------------------------------------------------- /collection/classicCards/30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/30.png -------------------------------------------------------------------------------- /collection/classicCards/31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/31.png -------------------------------------------------------------------------------- /collection/classicCards/32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/32.png -------------------------------------------------------------------------------- /collection/classicCards/33.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/33.png -------------------------------------------------------------------------------- /collection/classicCards/34.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/34.png -------------------------------------------------------------------------------- /collection/classicCards/35.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/35.png -------------------------------------------------------------------------------- /collection/classicCards/36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/36.png -------------------------------------------------------------------------------- /collection/classicCards/37.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/37.png -------------------------------------------------------------------------------- /collection/classicCards/38.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/38.png -------------------------------------------------------------------------------- /collection/classicCards/39.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/39.png -------------------------------------------------------------------------------- /collection/classicCards/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/4.png -------------------------------------------------------------------------------- /collection/classicCards/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/40.png -------------------------------------------------------------------------------- /collection/classicCards/41.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/41.png -------------------------------------------------------------------------------- /collection/classicCards/42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/42.png -------------------------------------------------------------------------------- /collection/classicCards/43.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/43.png -------------------------------------------------------------------------------- /collection/classicCards/44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/44.png -------------------------------------------------------------------------------- /collection/classicCards/45.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/45.png -------------------------------------------------------------------------------- /collection/classicCards/46.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/46.png -------------------------------------------------------------------------------- /collection/classicCards/47.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/47.png -------------------------------------------------------------------------------- /collection/classicCards/48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/48.png -------------------------------------------------------------------------------- /collection/classicCards/49.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/49.png -------------------------------------------------------------------------------- /collection/classicCards/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/5.png -------------------------------------------------------------------------------- /collection/classicCards/50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/50.png -------------------------------------------------------------------------------- /collection/classicCards/51.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/51.png -------------------------------------------------------------------------------- /collection/classicCards/52.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/52.png -------------------------------------------------------------------------------- /collection/classicCards/53.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/53.png -------------------------------------------------------------------------------- /collection/classicCards/54.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/54.png -------------------------------------------------------------------------------- /collection/classicCards/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/6.png -------------------------------------------------------------------------------- /collection/classicCards/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/7.png -------------------------------------------------------------------------------- /collection/classicCards/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/8.png -------------------------------------------------------------------------------- /collection/classicCards/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/9.png -------------------------------------------------------------------------------- /web/data/backgrounds/MtG.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/web/data/backgrounds/MtG.jpg -------------------------------------------------------------------------------- /data/backgrounds/uglyDefoult.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/data/backgrounds/uglyDefoult.jpg -------------------------------------------------------------------------------- /web/data/backgrounds/uglyDefoult.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/web/data/backgrounds/uglyDefoult.jpg -------------------------------------------------------------------------------- /collection/classicCards/bonus/penguin-ace-of-spades.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/bonus/penguin-ace-of-spades.png -------------------------------------------------------------------------------- /collection/classicCards/bonus/bsd-daemon-ace-of-spades.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/judovana/CardManager/master/collection/classicCards/bonus/bsd-daemon-ace-of-spades.png -------------------------------------------------------------------------------- /data/globalSettings.txt: -------------------------------------------------------------------------------- 1 | cardHeight = 170 2 | sharedPile = false 3 | lastIP = 192.168.1.3 4 | markerRadius = 60 5 | background = MtG.jpg 6 | lastPort = 44321 7 | name = Jirka 8 | cardWidth = 120 9 | autoScroll = true 10 | imServer = true 11 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | dist 3 | nbproject/private 4 | *.class 5 | 6 | # Mobile Tools for Java (J2ME) 7 | .mtj.tmp/ 8 | 9 | # Package Files # 10 | *.jar 11 | *.war 12 | *.ear 13 | *.zip 14 | *.7z 15 | 16 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 17 | hs_err_pid* 18 | 19 | -------------------------------------------------------------------------------- /src/cardmanager/FileBearer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager; 7 | 8 | import java.io.File; 9 | 10 | /** 11 | * 12 | * @author Jirka 13 | */ 14 | public interface FileBearer { 15 | 16 | File getFile(); 17 | 18 | } 19 | -------------------------------------------------------------------------------- /CardManager.desktop: -------------------------------------------------------------------------------- 1 | 2 | [Desktop Entry] 3 | Name=CardManager 4 | GenericName=Card-Manager 5 | Comment=This is free, opensource multiplatform (java) application which allows you to play ANY card game. 6 | Exec=CardManager 7 | Icon=CardManager 8 | Terminal=false 9 | Type=Application 10 | Categories=Game; 11 | 12 | Name[en_US]=CardManager 13 | -------------------------------------------------------------------------------- /src/cardmanager/impl/networking/SyncKeeper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.impl.networking; 7 | 8 | /** 9 | * 10 | * @author Jirka 11 | */ 12 | public interface SyncKeeper { 13 | 14 | public T getWaitingFor(); 15 | public void setWaitingFor(T object); 16 | } 17 | -------------------------------------------------------------------------------- /nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=fa9be408 2 | build.xml.script.CRC32=c388e2a6 3 | build.xml.stylesheet.CRC32=28e38971@1.38.1.45 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=fa9be408 7 | nbproject/build-impl.xml.script.CRC32=3c6f6ff9 8 | nbproject/build-impl.xml.stylesheet.CRC32=78c6a6ee@1.38.1.45 9 | -------------------------------------------------------------------------------- /src/cardmanager/impl/packages/PackageDeffinitionAndErrors.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.impl.packages; 7 | 8 | import java.util.LinkedList; 9 | import java.util.List; 10 | 11 | /** 12 | * 13 | * @author Jirka 14 | */ 15 | public class PackageDeffinitionAndErrors { 16 | 17 | public PackageDeffinition packageDef; 18 | public List ex=new LinkedList(); 19 | 20 | } 21 | -------------------------------------------------------------------------------- /data/packages/magic/2012/red/TheySeeMeBurnin: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/22310.jpg 2 | 4: /MagicTheGathering-all/14565.jpg 3 | 4: /MagicTheGathering-all/17459.jpg 4 | 4: /MagicTheGathering-all/3824.jpg 5 | 4: /MagicTheGathering-all/21271.jpg 6 | 4: /MagicTheGathering-all/12083.jpg 7 | 4: /MagicTheGathering-all/18120.jpg 8 | 4: /MagicTheGathering-all/22325.jpg 9 | 4: /MagicTheGathering-all/17780.jpg 10 | 4: /MagicTheGathering-all/22471.jpg 11 | 20: /MagicTheGathering-all/22686.jpg 12 | p: graveyard 13 | p: foreverDiscarded 14 | -------------------------------------------------------------------------------- /src/cardmanager/gui/impl/drags/Drag.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.gui.impl.drags; 7 | 8 | import cardmanager.impl.card.Card; 9 | import cardmanager.impl.card.CardGeometry; 10 | 11 | /** 12 | * 13 | * @author Jirka 14 | */ 15 | public abstract class Drag { 16 | public CardGeometry old; 17 | public double x; 18 | public double y; 19 | public abstract CardGeometry getAffectedsGeomethry(); 20 | 21 | 22 | } 23 | -------------------------------------------------------------------------------- /data/packages/magic/2012/white/WhiteHumans: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/21709.jpg 2 | 4: /MagicTheGathering-all/21682.jpg 3 | 4: /MagicTheGathering-all/21325.jpg 4 | 2: /MagicTheGathering-all/20379.jpg 5 | 4: /MagicTheGathering-all/20380.jpg 6 | 2: /MagicTheGathering-all/22378.jpg 7 | 4: /MagicTheGathering-all/21937.jpg 8 | 4: /MagicTheGathering-all/21337.jpg 9 | 4: /MagicTheGathering-all/21304.jpg 10 | 4: /MagicTheGathering-all/21305.jpg 11 | 2: /MagicTheGathering-all/22358.jpg 12 | 20: /MagicTheGathering-all/22295.jpg 13 | p: graveyard 14 | p: foreverDiscarded 15 | -------------------------------------------------------------------------------- /src/cardmanager/gui/impl/drags/CardDrag.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.gui.impl.drags; 7 | 8 | import cardmanager.impl.card.Card; 9 | import cardmanager.impl.card.CardGeometry; 10 | 11 | /** 12 | * 13 | * @author Jirka 14 | */ 15 | public class CardDrag extends Drag{ 16 | 17 | public Card affected; 18 | 19 | @Override 20 | public CardGeometry getAffectedsGeomethry() { 21 | return affected.getCardGeometry(); 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /data/packages/magic/2012/green/MonoGreenDungrove: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/21364.jpg 2 | 4: /MagicTheGathering-all/20847.jpg 3 | 4: /MagicTheGathering-all/20985.jpg 4 | 2: /MagicTheGathering-all/20589.jpg 5 | 4: /MagicTheGathering-all/21948.jpg 6 | 2: /MagicTheGathering-all/22729.jpg 7 | 3: /MagicTheGathering-all/20446.jpg 8 | 1: /MagicTheGathering-all/22326.jpg 9 | 2: /MagicTheGathering-all/20639.jpg 10 | 4: /MagicTheGathering-all/20398.jpg 11 | 4: /MagicTheGathering-all/22732.jpg 12 | 3: /MagicTheGathering-all/20741.jpg 13 | 23: /MagicTheGathering-all/22678.jpg 14 | p: graveyard 15 | p: exiled 16 | -------------------------------------------------------------------------------- /data/packages/magic/interesting1/white/Kithkins: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/15995.jpg 2 | 3: /MagicTheGathering-all/15444.jpg 3 | 4: /MagicTheGathering-all/16506.jpg 4 | 2: /MagicTheGathering-all/15517.jpg 5 | 4: /MagicTheGathering-all/15518.jpg 6 | 3: /MagicTheGathering-all/16049.jpg 7 | 4: /MagicTheGathering-all/15560.jpg 8 | 2: /MagicTheGathering-all/16082.jpg 9 | 4: /MagicTheGathering-all/15700.jpg 10 | 4: /MagicTheGathering-all/21337.jpg 11 | 3: /MagicTheGathering-all/15579.jpg 12 | 2: /MagicTheGathering-all/22804.jpg 13 | 21: /MagicTheGathering-all/22691.jpg 14 | p: graveyard 15 | p: exiled 16 | -------------------------------------------------------------------------------- /data/packages/magic/2012/black/VampireControlV2: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/21681.jpg 2 | 3: /MagicTheGathering-all/21732.jpg 3 | 3: /MagicTheGathering-all/20440.jpg 4 | 4: /MagicTheGathering-all/20953.jpg 5 | 4: /MagicTheGathering-all/20654.jpg 6 | 4: /MagicTheGathering-all/20441.jpg 7 | 2: /MagicTheGathering-all/20570.jpg 8 | 4: /MagicTheGathering-all/20576.jpg 9 | 4: /MagicTheGathering-all/22045.jpg 10 | 23: /MagicTheGathering-all/22301.jpg 11 | 1: /MagicTheGathering-all/4506.jpg 12 | 2: /MagicTheGathering-all/2528.jpg 13 | 3: /MagicTheGathering-all/17387.jpg 14 | p: graveyard 15 | p: foreverRemoved 16 | -------------------------------------------------------------------------------- /src/cardmanager/gui/impl/drags/MarkerDrag.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.gui.impl.drags; 7 | 8 | import cardmanager.impl.card.Card; 9 | import cardmanager.impl.card.CardGeometry; 10 | import cardmanager.impl.card.Marker; 11 | 12 | /** 13 | * 14 | * @author Jirka 15 | */ 16 | public class MarkerDrag extends Drag{ 17 | 18 | public Marker affected; 19 | 20 | @Override 21 | public CardGeometry getAffectedsGeomethry() { 22 | return affected.getGeometry(); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /data/packages/magic/2005/blue/merfolk: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/14613.jpg 2 | 4: /MagicTheGathering-all/21349.jpg 3 | 4: /MagicTheGathering-all/7217.jpg 4 | 4: /MagicTheGathering-all/7018.jpg 5 | 4: /MagicTheGathering-all/2860.jpg 6 | 3: /MagicTheGathering-all/7142.jpg 7 | 3: /MagicTheGathering-all/7306.jpg 8 | 4: /MagicTheGathering-all/3013.jpg 9 | 4: /MagicTheGathering-all/12334.jpg 10 | 4: /MagicTheGathering-all/3094.jpg 11 | 2: /MagicTheGathering-all/6735.jpg 12 | 25: /MagicTheGathering-all/22682.jpg 13 | 5: /MagicTheGathering-all/22691.jpg 14 | 5: /MagicTheGathering-all/22699.jpg 15 | p: graveyard 16 | p: exiled 17 | -------------------------------------------------------------------------------- /data/packages/magic/2003/white/Wheenie White: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/6345.jpg 2 | 4: /MagicTheGathering-all/6651.jpg 3 | 4: /MagicTheGathering-all/5739.jpg 4 | 4: /MagicTheGathering-all/14641.jpg 5 | 4: /MagicTheGathering-all/15348.jpg 6 | 4: /MagicTheGathering-all/5449.jpg 7 | 4: /MagicTheGathering-all/10322.jpg 8 | 4: /MagicTheGathering-all/2512.jpg 9 | 4: /MagicTheGathering-all/5506.jpg 10 | 22: /MagicTheGathering-all/22691.jpg 11 | 3: /MagicTheGathering-all/14580.jpg 12 | 4: /MagicTheGathering-all/3051.jpg 13 | 3: /MagicTheGathering-all/7223.jpg 14 | 2: /MagicTheGathering-all/7253.jpg 15 | p: graveyard 16 | p: exiled 17 | -------------------------------------------------------------------------------- /data/packages/magic/2012/red/MonoRedControl: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/21738.jpg 2 | 1: /MagicTheGathering-all/22347.jpg 3 | 4: /MagicTheGathering-all/22770.jpg 4 | 2: /MagicTheGathering-all/22765.jpg 5 | 1: /MagicTheGathering-all/22472.jpg 6 | 4: /MagicTheGathering-all/22310.jpg 7 | 3: /MagicTheGathering-all/22725.jpg 8 | 2: /MagicTheGathering-all/22318.jpg 9 | 3: /MagicTheGathering-all/22451.jpg 10 | 4: /MagicTheGathering-all/21936.jpg 11 | 4: /MagicTheGathering-all/22057.jpg 12 | 2: /MagicTheGathering-all/22325.jpg 13 | 4: /MagicTheGathering-all/22697.jpg 14 | 20: /MagicTheGathering-all/22686.jpg 15 | p: graveYard 16 | p: foreverDiscarded 17 | -------------------------------------------------------------------------------- /data/packages/magic/2012/red/RGdreams: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/17494.jpg 2 | 4: /MagicTheGathering-all/21264.jpg 3 | 4: /MagicTheGathering-all/12712.jpg 4 | 4: /MagicTheGathering-all/15004.jpg 5 | 4: /MagicTheGathering-all/3824.jpg 6 | 4: /MagicTheGathering-all/5841.jpg 7 | 4: /MagicTheGathering-all/12083.jpg 8 | 4: /MagicTheGathering-all/18120.jpg 9 | 4: /MagicTheGathering-all/4377.jpg 10 | 4: /MagicTheGathering-all/14340.jpg 11 | 4: /MagicTheGathering-all/17441.jpg 12 | 4: /MagicTheGathering-all/22686.jpg 13 | 4: /MagicTheGathering-all/17610.jpg 14 | 4: /MagicTheGathering-all/1585.jpg 15 | 4: /MagicTheGathering-all/10473.jpg 16 | p: graveyard 17 | p: exiled 18 | -------------------------------------------------------------------------------- /nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.netbeans.modules.java.j2seproject 4 | 5 | 6 | CardManager 7 | 1.6.5 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /data/packages/magic/2005/green/Beat Down: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/7133.jpg 2 | 4: /MagicTheGathering-all/13327.jpg 3 | 4: /MagicTheGathering-all/20985.jpg 4 | 4: /MagicTheGathering-all/10647.jpg 5 | 3: /MagicTheGathering-all/8029.jpg 6 | 4: /MagicTheGathering-all/15373.jpg 7 | 4: /MagicTheGathering-all/22847.jpg 8 | 2: /MagicTheGathering-all/7983.jpg 9 | 3: /MagicTheGathering-all/11108.jpg 10 | 2: /MagicTheGathering-all/10509.jpg 11 | 4: /MagicTheGathering-all/13383.jpg 12 | 4: /MagicTheGathering-all/22732.jpg 13 | 18: /MagicTheGathering-all/22678.jpg 14 | 13: /MagicTheGathering-all/22699.jpg 15 | 4: /MagicTheGathering-all/15372.jpg 16 | p: graveyard 17 | p: exiled 18 | -------------------------------------------------------------------------------- /data/packages/magic/2006/white/Army of Many: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/14686.jpg 2 | 3: /MagicTheGathering-all/14022.jpg 3 | 4: /MagicTheGathering-all/15123.jpg 4 | 2: /MagicTheGathering-all/15554.jpg 5 | 4: /MagicTheGathering-all/15202.jpg 6 | 2: /MagicTheGathering-all/14427.jpg 7 | 3: /MagicTheGathering-all/17208.jpg 8 | 2: /MagicTheGathering-all/15455.jpg 9 | 4: /MagicTheGathering-all/14883.jpg 10 | 4: /MagicTheGathering-all/15144.jpg 11 | 4: /MagicTheGathering-all/15221.jpg 12 | 4: /MagicTheGathering-all/22804.jpg 13 | 27: /MagicTheGathering-all/22691.jpg 14 | 4: /MagicTheGathering-all/14819.jpg 15 | 4: /MagicTheGathering-all/22925.jpg 16 | p: graveyard 17 | p: exiled 18 | -------------------------------------------------------------------------------- /data/packages/magic/2012/red/Goblins: -------------------------------------------------------------------------------- 1 | 3: /MagicTheGathering-all/21360.jpg 2 | 3: /MagicTheGathering-all/20433.jpg 3 | 2: /MagicTheGathering-all/22706.jpg 4 | 4: /MagicTheGathering-all/18340.jpg 5 | 4: /MagicTheGathering-all/20486.jpg 6 | 4: /MagicTheGathering-all/18357.jpg 7 | 2: /MagicTheGathering-all/22872.jpg 8 | 3: /MagicTheGathering-all/20388.jpg 9 | 4: /MagicTheGathering-all/18389.jpg 10 | 4: /MagicTheGathering-all/18524.jpg 11 | 4: /MagicTheGathering-all/18569.jpg 12 | 4: /MagicTheGathering-all/22925.jpg 13 | 4: /MagicTheGathering-all/20532.jpg 14 | 2: /MagicTheGathering-all/22786.jpg 15 | 13: /MagicTheGathering-all/22686.jpg 16 | p: graveyard 17 | p: foreverDiscarded 18 | -------------------------------------------------------------------------------- /data/packages/magic/2012/red/red_deck_wins: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/20964.jpg 2 | 3: /MagicTheGathering-all/22008.jpg 3 | 1: /MagicTheGathering-all/20973.jpg 4 | 3: /MagicTheGathering-all/21683.jpg 5 | 4: /MagicTheGathering-all/21280.jpg 6 | 4: /MagicTheGathering-all/21685.jpg 7 | 4: /MagicTheGathering-all/22310.jpg 8 | 1: /MagicTheGathering-all/22725.jpg 9 | 2: /MagicTheGathering-all/18515.jpg 10 | 2: /MagicTheGathering-all/22319.jpg 11 | 4: /MagicTheGathering-all/21271.jpg 12 | 1: /MagicTheGathering-all/22325.jpg 13 | 4: /MagicTheGathering-all/20975.jpg 14 | 3: /MagicTheGathering-all/20727.jpg 15 | 20: /MagicTheGathering-all/22686.jpg 16 | p: graveyard 17 | p: foreverDiscarded 18 | -------------------------------------------------------------------------------- /data/packages/magic/2005/rainbow/multi-colored joy joy: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/13253.jpg 2 | 3: /MagicTheGathering-all/13681.jpg 3 | 4: /MagicTheGathering-all/17235.jpg 4 | 3: /MagicTheGathering-all/13714.jpg 5 | 4: /MagicTheGathering-all/13809.jpg 6 | 4: /MagicTheGathering-all/13813.jpg 7 | 4: /MagicTheGathering-all/13231.jpg 8 | 3: /MagicTheGathering-all/13675.jpg 9 | 4: /MagicTheGathering-all/13892.jpg 10 | 3: /MagicTheGathering-all/13383.jpg 11 | 9: /MagicTheGathering-all/22678.jpg 12 | 13: /MagicTheGathering-all/22682.jpg 13 | 9: /MagicTheGathering-all/22699.jpg 14 | 4: /MagicTheGathering-all/13369.jpg 15 | 4: /MagicTheGathering-all/13475.jpg 16 | p: graveyard 17 | p: exiled 18 | -------------------------------------------------------------------------------- /data/packages/magic/2012/artefacts/GOGO-Phyrexia: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/18340.jpg 2 | 4: /MagicTheGathering-all/20687.jpg 3 | 4: /MagicTheGathering-all/20603.jpg 4 | 4: /MagicTheGathering-all/20751.jpg 5 | 4: /MagicTheGathering-all/20608.jpg 6 | 4: /MagicTheGathering-all/20655.jpg 7 | 4: /MagicTheGathering-all/22216.jpg 8 | 4: /MagicTheGathering-all/20584.jpg 9 | 4: /MagicTheGathering-all/20715.jpg 10 | 4: /MagicTheGathering-all/20720.jpg 11 | 4: /MagicTheGathering-all/18584.jpg 12 | 11: /MagicTheGathering-all/22304.jpg 13 | 3: /MagicTheGathering-all/20703.jpg 14 | 2: /MagicTheGathering-all/22513.jpg 15 | 2: /MagicTheGathering-all/18389.jpg 16 | p: graveyard 17 | p: foreverDiscarded 18 | -------------------------------------------------------------------------------- /data/packages/magic/2003/black/Tomb Raider II: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/9392.jpg 2 | 4: /MagicTheGathering-all/14589.jpg 3 | 4: /MagicTheGathering-all/15122.jpg 4 | 4: /MagicTheGathering-all/9618.jpg 5 | 4: /MagicTheGathering-all/15230.jpg 6 | 4: /MagicTheGathering-all/18207.jpg 7 | 4: /MagicTheGathering-all/9652.jpg 8 | 4: /MagicTheGathering-all/10509.jpg 9 | 4: /MagicTheGathering-all/17790.jpg 10 | 4: /MagicTheGathering-all/10501.jpg 11 | 4: /MagicTheGathering-all/9590.jpg 12 | 16: /MagicTheGathering-all/22699.jpg 13 | 4: /MagicTheGathering-all/12582.jpg 14 | 4: /MagicTheGathering-all/10222.jpg 15 | 4: /MagicTheGathering-all/22847.jpg 16 | 3: /MagicTheGathering-all/9673.jpg 17 | p: graveyard 18 | p: exiled 19 | -------------------------------------------------------------------------------- /data/packages/magic/2006/black/BAH ZOMBIES: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/15122.jpg 2 | 2: /MagicTheGathering-all/15151.jpg 3 | 4: /MagicTheGathering-all/14918.jpg 4 | 4: /MagicTheGathering-all/15199.jpg 5 | 1: /MagicTheGathering-all/15638.jpg 6 | 4: /MagicTheGathering-all/14658.jpg 7 | 4: /MagicTheGathering-all/14660.jpg 8 | 4: /MagicTheGathering-all/14564.jpg 9 | 3: /MagicTheGathering-all/15201.jpg 10 | 4: /MagicTheGathering-all/14381.jpg 11 | 4: /MagicTheGathering-all/17375.jpg 12 | 22: /MagicTheGathering-all/22699.jpg 13 | 4: /MagicTheGathering-all/15090.jpg 14 | 4: /MagicTheGathering-all/14722.jpg 15 | 4: /MagicTheGathering-all/17383.jpg 16 | 3: /MagicTheGathering-all/14676.jpg 17 | p: graveyard 18 | p: exiled 19 | -------------------------------------------------------------------------------- /data/packages/magic/2012/green/ThundermawRamp: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/22892.jpg 2 | 2: /MagicTheGathering-all/18205.jpg 3 | 4: /MagicTheGathering-all/21948.jpg 4 | 3: /MagicTheGathering-all/22729.jpg 5 | 4: /MagicTheGathering-all/22765.jpg 6 | 4: /MagicTheGathering-all/15488.jpg 7 | 4: /MagicTheGathering-all/20655.jpg 8 | 1: /MagicTheGathering-all/20663.jpg 9 | 4: /MagicTheGathering-all/5615.jpg 10 | 4: /MagicTheGathering-all/20584.jpg 11 | 4: /MagicTheGathering-all/13976.jpg 12 | 3: /MagicTheGathering-all/4492.jpg 13 | 3: /MagicTheGathering-all/9595.jpg 14 | 8: /MagicTheGathering-all/22678.jpg 15 | 4: /MagicTheGathering-all/1585.jpg 16 | 4: /MagicTheGathering-all/10473.jpg 17 | p: graveyard 18 | p: exiled 19 | -------------------------------------------------------------------------------- /data/packages/magic/interesting1/red/MINOTAUR: -------------------------------------------------------------------------------- 1 | 1: /MagicTheGathering-all/14557.jpg 2 | 1: /MagicTheGathering-all/10237.jpg 3 | 1: /MagicTheGathering-all/6435.jpg 4 | 4: /MagicTheGathering-all/15440.jpg 5 | 1: /MagicTheGathering-all/10911.jpg 6 | 4: /MagicTheGathering-all/10774.jpg 7 | 1: /MagicTheGathering-all/20382.jpg 8 | 4: /MagicTheGathering-all/7962.jpg 9 | 4: /MagicTheGathering-all/15580.jpg 10 | 1: /MagicTheGathering-all/16105.jpg 11 | 4: /MagicTheGathering-all/16124.jpg 12 | 4: /MagicTheGathering-all/17665.jpg 13 | 4: /MagicTheGathering-all/4480.jpg 14 | 4: /MagicTheGathering-all/5841.jpg 15 | 4: /MagicTheGathering-all/4217.jpg 16 | 18: /MagicTheGathering-all/22686.jpg 17 | p: graveyard 18 | p: exiled 19 | -------------------------------------------------------------------------------- /data/packages/magic/2012/green/GeterDungrove: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/22892.jpg 2 | 1: /MagicTheGathering-all/21364.jpg 3 | 2: /MagicTheGathering-all/22329.jpg 4 | 4: /MagicTheGathering-all/20847.jpg 5 | 4: /MagicTheGathering-all/20985.jpg 6 | 2: /MagicTheGathering-all/21290.jpg 7 | 4: /MagicTheGathering-all/21948.jpg 8 | 2: /MagicTheGathering-all/22326.jpg 9 | 4: /MagicTheGathering-all/20398.jpg 10 | 2: /MagicTheGathering-all/21276.jpg 11 | 4: /MagicTheGathering-all/22732.jpg 12 | 3: /MagicTheGathering-all/22317.jpg 13 | 24: /MagicTheGathering-all/22678.jpg 14 | 1: /MagicTheGathering-all/22763.jpg 15 | 2: /MagicTheGathering-all/20916.jpg 16 | 2: /MagicTheGathering-all/20400.jpg 17 | p: graveyard 18 | p: exiled 19 | -------------------------------------------------------------------------------- /data/packages/magic/2012/white/BRW: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/22200.jpg 2 | 4: /MagicTheGathering-all/22291.jpg 3 | 4: /MagicTheGathering-all/21311.jpg 4 | 4: /MagicTheGathering-all/20927.jpg 5 | 4: /MagicTheGathering-all/20441.jpg 6 | 4: /MagicTheGathering-all/20457.jpg 7 | 4: /MagicTheGathering-all/20422.jpg 8 | 4: /MagicTheGathering-all/21754.jpg 9 | 4: /MagicTheGathering-all/22512.jpg 10 | 4: /MagicTheGathering-all/21545.jpg 11 | 4: /MagicTheGathering-all/21312.jpg 12 | 4: /MagicTheGathering-all/21547.jpg 13 | 2: /MagicTheGathering-all/22304.jpg 14 | 4: /MagicTheGathering-all/22295.jpg 15 | 2: /MagicTheGathering-all/22301.jpg 16 | 4: /MagicTheGathering-all/22005.jpg 17 | p: graveyard 18 | p: foreverDiscarded 19 | -------------------------------------------------------------------------------- /data/packages/magic/2012/black/MonoBlackControl: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/21519.jpg 2 | 4: /MagicTheGathering-all/21732.jpg 3 | 2: /MagicTheGathering-all/21356.jpg 4 | 4: /MagicTheGathering-all/22862.jpg 5 | 3: /MagicTheGathering-all/20440.jpg 6 | 4: /MagicTheGathering-all/20441.jpg 7 | 2: /MagicTheGathering-all/18563.jpg 8 | 2: /MagicTheGathering-all/2278.jpg 9 | 1: /MagicTheGathering-all/21322.jpg 10 | 4: /MagicTheGathering-all/22045.jpg 11 | 24: /MagicTheGathering-all/22699.jpg 12 | 2: /MagicTheGathering-all/21692.jpg 13 | 2: /MagicTheGathering-all/21821.jpg 14 | 2: /MagicTheGathering-all/18354.jpg 15 | 4: /MagicTheGathering-all/22847.jpg 16 | 4: /MagicTheGathering-all/22783.jpg 17 | p: graveYard 18 | p: foreverDiscarded 19 | -------------------------------------------------------------------------------- /data/packages/magic/2012/green/RG_Aggro_Wins_Nice: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/21364.jpg 2 | 4: /MagicTheGathering-all/21970.jpg 3 | 4: /MagicTheGathering-all/20985.jpg 4 | 4: /MagicTheGathering-all/21948.jpg 5 | 4: /MagicTheGathering-all/22357.jpg 6 | 4: /MagicTheGathering-all/22326.jpg 7 | 4: /MagicTheGathering-all/22319.jpg 8 | 2: /MagicTheGathering-all/20639.jpg 9 | 4: /MagicTheGathering-all/20398.jpg 10 | 2: /MagicTheGathering-all/22354.jpg 11 | 2: /MagicTheGathering-all/20741.jpg 12 | 4: /MagicTheGathering-all/18449.jpg 13 | 10: /MagicTheGathering-all/22307.jpg 14 | 3: /MagicTheGathering-all/21710.jpg 15 | 3: /MagicTheGathering-all/22304.jpg 16 | 4: /MagicTheGathering-all/21315.jpg 17 | p: graveyard 18 | p: foreverRemoved 19 | -------------------------------------------------------------------------------- /data/packages/magic/interesting1/redAndWhite/RW Boros Army: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/16463.jpg 2 | 4: /MagicTheGathering-all/13208.jpg 3 | 4: /MagicTheGathering-all/13209.jpg 4 | 3: /MagicTheGathering-all/13211.jpg 5 | 4: /MagicTheGathering-all/16523.jpg 6 | 1: /MagicTheGathering-all/13387.jpg 7 | 3: /MagicTheGathering-all/13421.jpg 8 | 3: /MagicTheGathering-all/16599.jpg 9 | 2: /MagicTheGathering-all/17148.jpg 10 | 3: /MagicTheGathering-all/16488.jpg 11 | 3: /MagicTheGathering-all/17073.jpg 12 | 3: /MagicTheGathering-all/17083.jpg 13 | 3: /MagicTheGathering-all/16587.jpg 14 | 4: /MagicTheGathering-all/13207.jpg 15 | 9: /MagicTheGathering-all/22686.jpg 16 | 9: /MagicTheGathering-all/22691.jpg 17 | p: graveyard 18 | p: exiled 19 | -------------------------------------------------------------------------------- /data/packages/magic/2012/green/belcher: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/4131.jpg 2 | 4: /MagicTheGathering-all/14809.jpg 3 | 4: /MagicTheGathering-all/14999.jpg 4 | 4: /MagicTheGathering-all/4919.jpg 5 | 4: /MagicTheGathering-all/11467.jpg 6 | 4: /MagicTheGathering-all/11976.jpg 7 | 4: /MagicTheGathering-all/14214.jpg 8 | 4: /MagicTheGathering-all/20655.jpg 9 | 4: /MagicTheGathering-all/11490.jpg 10 | 4: /MagicTheGathering-all/6589.jpg 11 | 1: /MagicTheGathering-all/5129.jpg 12 | 4: /MagicTheGathering-all/5615.jpg 13 | 3: /MagicTheGathering-all/16289.jpg 14 | 4: /MagicTheGathering-all/18293.jpg 15 | 4: /MagicTheGathering-all/14103.jpg 16 | 3: /MagicTheGathering-all/12811.jpg 17 | 1: /MagicTheGathering-all/1585.jpg 18 | p: graveyard 19 | p: exiled 20 | -------------------------------------------------------------------------------- /data/packages/magic/2005/rainbow/Reanimator: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/14610.jpg 2 | 4: /MagicTheGathering-all/20985.jpg 3 | 1: /MagicTheGathering-all/10190.jpg 4 | 1: /MagicTheGathering-all/15280.jpg 5 | 2: /MagicTheGathering-all/21328.jpg 6 | 1: /MagicTheGathering-all/10346.jpg 7 | 3: /MagicTheGathering-all/9558.jpg 8 | 4: /MagicTheGathering-all/9393.jpg 9 | 4: /MagicTheGathering-all/6495.jpg 10 | 4: /MagicTheGathering-all/5519.jpg 11 | 4: /MagicTheGathering-all/22847.jpg 12 | 4: /MagicTheGathering-all/6864.jpg 13 | 4: /MagicTheGathering-all/11512.jpg 14 | 2: /MagicTheGathering-all/5684.jpg 15 | 4: /MagicTheGathering-all/13465.jpg 16 | 13: /MagicTheGathering-all/22678.jpg 17 | 18: /MagicTheGathering-all/22699.jpg 18 | p: graveyard 19 | p: exiled 20 | -------------------------------------------------------------------------------- /data/packages/magic/2005/white/Snow White: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/13995.jpg 2 | 4: /MagicTheGathering-all/12291.jpg 3 | 4: /MagicTheGathering-all/14080.jpg 4 | 3: /MagicTheGathering-all/14016.jpg 5 | 4: /MagicTheGathering-all/18078.jpg 6 | 3: /MagicTheGathering-all/13675.jpg 7 | 4: /MagicTheGathering-all/13276.jpg 8 | 4: /MagicTheGathering-all/15216.jpg 9 | 4: /MagicTheGathering-all/13917.jpg 10 | 2: /MagicTheGathering-all/13791.jpg 11 | 4: /MagicTheGathering-all/15401.jpg 12 | 1: /MagicTheGathering-all/14083.jpg 13 | 4: /MagicTheGathering-all/14108.jpg 14 | 20: /MagicTheGathering-all/14117.jpg 15 | 4: /MagicTheGathering-all/17325.jpg 16 | 4: /MagicTheGathering-all/12798.jpg 17 | 4: /MagicTheGathering-all/12371.jpg 18 | p: graveyard 19 | p: exiled 20 | -------------------------------------------------------------------------------- /data/packages/magic/2006/blue/fish fry: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/14594.jpg 2 | 4: /MagicTheGathering-all/14613.jpg 3 | 4: /MagicTheGathering-all/21349.jpg 4 | 4: /MagicTheGathering-all/15578.jpg 5 | 4: /MagicTheGathering-all/15639.jpg 6 | 4: /MagicTheGathering-all/15675.jpg 7 | 3: /MagicTheGathering-all/15484.jpg 8 | 3: /MagicTheGathering-all/14630.jpg 9 | 4: /MagicTheGathering-all/14107.jpg 10 | 4: /MagicTheGathering-all/14662.jpg 11 | 2: /MagicTheGathering-all/14578.jpg 12 | 4: /MagicTheGathering-all/15119.jpg 13 | 16: /MagicTheGathering-all/22682.jpg 14 | 4: /MagicTheGathering-all/14582.jpg 15 | 4: /MagicTheGathering-all/14795.jpg 16 | 4: /MagicTheGathering-all/15669.jpg 17 | 3: /MagicTheGathering-all/22925.jpg 18 | p: graveyard 19 | p: exiled 20 | -------------------------------------------------------------------------------- /data/packages/magic/2005/red/Speedy gonzalez: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/11406.jpg 2 | 4: /MagicTheGathering-all/10357.jpg 3 | 4: /MagicTheGathering-all/21264.jpg 4 | 4: /MagicTheGathering-all/15327.jpg 5 | 4: /MagicTheGathering-all/13223.jpg 6 | 4: /MagicTheGathering-all/11467.jpg 7 | 4: /MagicTheGathering-all/10254.jpg 8 | 4: /MagicTheGathering-all/11775.jpg 9 | 4: /MagicTheGathering-all/13940.jpg 10 | 4: /MagicTheGathering-all/12811.jpg 11 | 4: /MagicTheGathering-all/12879.jpg 12 | 16: /MagicTheGathering-all/22686.jpg 13 | 3: /MagicTheGathering-all/12588.jpg 14 | 3: /MagicTheGathering-all/14565.jpg 15 | 2: /MagicTheGathering-all/12451.jpg 16 | 3: /MagicTheGathering-all/13770.jpg 17 | 4: /MagicTheGathering-all/10926.jpg 18 | p: graveyard 19 | p: exiled 20 | -------------------------------------------------------------------------------- /data/packages/magic/2006/black/Sudden Death: -------------------------------------------------------------------------------- 1 | 3: /MagicTheGathering-all/14687.jpg 2 | 3: /MagicTheGathering-all/14688.jpg 3 | 3: /MagicTheGathering-all/15187.jpg 4 | 4: /MagicTheGathering-all/15225.jpg 5 | 3: /MagicTheGathering-all/14786.jpg 6 | 3: /MagicTheGathering-all/21357.jpg 7 | 4: /MagicTheGathering-all/20958.jpg 8 | 3: /MagicTheGathering-all/20950.jpg 9 | 3: /MagicTheGathering-all/15150.jpg 10 | 4: /MagicTheGathering-all/14898.jpg 11 | 4: /MagicTheGathering-all/14381.jpg 12 | 23: /MagicTheGathering-all/22699.jpg 13 | 4: /MagicTheGathering-all/14562.jpg 14 | 2: /MagicTheGathering-all/14564.jpg 15 | 4: /MagicTheGathering-all/15053.jpg 16 | 3: /MagicTheGathering-all/14694.jpg 17 | 2: /MagicTheGathering-all/14701.jpg 18 | p: graveyard 19 | p: exiled 20 | -------------------------------------------------------------------------------- /data/packages/magic/2006/green/Acorn Recursion: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/15458.jpg 2 | 2: /MagicTheGathering-all/15575.jpg 3 | 4: /MagicTheGathering-all/15676.jpg 4 | 4: /MagicTheGathering-all/15677.jpg 5 | 4: /MagicTheGathering-all/15089.jpg 6 | 4: /MagicTheGathering-all/14736.jpg 7 | 3: /MagicTheGathering-all/15170.jpg 8 | 2: /MagicTheGathering-all/14750.jpg 9 | 4: /MagicTheGathering-all/15567.jpg 10 | 3: /MagicTheGathering-all/14303.jpg 11 | 4: /MagicTheGathering-all/21279.jpg 12 | 17: /MagicTheGathering-all/22678.jpg 13 | 4: /MagicTheGathering-all/18306.jpg 14 | 4: /MagicTheGathering-all/15372.jpg 15 | 4: /MagicTheGathering-all/14907.jpg 16 | 4: /MagicTheGathering-all/14962.jpg 17 | 4: /MagicTheGathering-all/17769.jpg 18 | p: graveyard 19 | p: exiled 20 | -------------------------------------------------------------------------------- /data/packages/magic/interesting1/white/angels: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/22200.jpg 2 | 3: /MagicTheGathering-all/16646.jpg 3 | 2: /MagicTheGathering-all/20594.jpg 4 | 2: /MagicTheGathering-all/22291.jpg 5 | 4: /MagicTheGathering-all/22324.jpg 6 | 2: /MagicTheGathering-all/17856.jpg 7 | 4: /MagicTheGathering-all/11746.jpg 8 | 4: /MagicTheGathering-all/22711.jpg 9 | 1: /MagicTheGathering-all/18409.jpg 10 | 2: /MagicTheGathering-all/22333.jpg 11 | 4: /MagicTheGathering-all/21275.jpg 12 | 4: /MagicTheGathering-all/16972.jpg 13 | 4: /MagicTheGathering-all/20422.jpg 14 | 4: /MagicTheGathering-all/21545.jpg 15 | 3: /MagicTheGathering-all/22926.jpg 16 | 3: /MagicTheGathering-all/22686.jpg 17 | 12: /MagicTheGathering-all/22691.jpg 18 | p: graveyard 19 | p: exiled 20 | -------------------------------------------------------------------------------- /data/packages/magic/2012/black/Legal black no-creatures: -------------------------------------------------------------------------------- 1 | 3: /MagicTheGathering-all/21728.jpg 2 | 2: /MagicTheGathering-all/20950.jpg 3 | 3: /MagicTheGathering-all/20638.jpg 4 | 4: /MagicTheGathering-all/20951.jpg 5 | 2: /MagicTheGathering-all/20953.jpg 6 | 3: /MagicTheGathering-all/20954.jpg 7 | 2: /MagicTheGathering-all/22847.jpg 8 | 2: /MagicTheGathering-all/22353.jpg 9 | 3: /MagicTheGathering-all/20654.jpg 10 | 2: /MagicTheGathering-all/18510.jpg 11 | 2: /MagicTheGathering-all/22220.jpg 12 | 2: /MagicTheGathering-all/20677.jpg 13 | 2: /MagicTheGathering-all/22783.jpg 14 | 2: /MagicTheGathering-all/20565.jpg 15 | 3: /MagicTheGathering-all/21322.jpg 16 | 4: /MagicTheGathering-all/20917.jpg 17 | 26: /MagicTheGathering-all/22699.jpg 18 | p: graveyard 19 | p: exiled 20 | -------------------------------------------------------------------------------- /data/packages/magic/2012/rainbow/Naya_Aggro: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/21716.jpg 2 | 4: /MagicTheGathering-all/21364.jpg 3 | 4: /MagicTheGathering-all/20592.jpg 4 | 4: /MagicTheGathering-all/22477.jpg 5 | 3: /MagicTheGathering-all/21755.jpg 6 | 4: /MagicTheGathering-all/21970.jpg 7 | 4: /MagicTheGathering-all/22203.jpg 8 | 3: /MagicTheGathering-all/21948.jpg 9 | 3: /MagicTheGathering-all/21963.jpg 10 | 4: /MagicTheGathering-all/22319.jpg 11 | 4: /MagicTheGathering-all/22358.jpg 12 | 4: /MagicTheGathering-all/18449.jpg 13 | 3: /MagicTheGathering-all/22678.jpg 14 | 2: /MagicTheGathering-all/22686.jpg 15 | 2: /MagicTheGathering-all/22691.jpg 16 | 4: /MagicTheGathering-all/18451.jpg 17 | 4: /MagicTheGathering-all/21720.jpg 18 | p: graveyard 19 | p: foreverDiscarded 20 | -------------------------------------------------------------------------------- /data/packages/magic/2012/green/triple_threat_infect: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/21364.jpg 2 | 4: /MagicTheGathering-all/20619.jpg 3 | 2: /MagicTheGathering-all/20657.jpg 4 | 4: /MagicTheGathering-all/18402.jpg 5 | 4: /MagicTheGathering-all/20985.jpg 6 | 2: /MagicTheGathering-all/20461.jpg 7 | 3: /MagicTheGathering-all/20608.jpg 8 | 3: /MagicTheGathering-all/22080.jpg 9 | 4: /MagicTheGathering-all/20655.jpg 10 | 3: /MagicTheGathering-all/18563.jpg 11 | 4: /MagicTheGathering-all/20584.jpg 12 | 4: /MagicTheGathering-all/21350.jpg 13 | 2: /MagicTheGathering-all/22120.jpg 14 | 6: /MagicTheGathering-all/22307.jpg 15 | 4: /MagicTheGathering-all/21546.jpg 16 | 3: /MagicTheGathering-all/20451.jpg 17 | 5: /MagicTheGathering-all/22298.jpg 18 | p: graveYard 19 | p: foreverDiscarded 20 | -------------------------------------------------------------------------------- /data/packages/magic/2003/black/Corrupter: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/10518.jpg 2 | 4: /MagicTheGathering-all/9652.jpg 3 | 4: /MagicTheGathering-all/18103.jpg 4 | 4: /MagicTheGathering-all/20951.jpg 5 | 4: /MagicTheGathering-all/22847.jpg 6 | 2: /MagicTheGathering-all/2889.jpg 7 | 2: /MagicTheGathering-all/18238.jpg 8 | 4: /MagicTheGathering-all/9420.jpg 9 | 2: /MagicTheGathering-all/17561.jpg 10 | 2: /MagicTheGathering-all/14617.jpg 11 | 4: /MagicTheGathering-all/22783.jpg 12 | 4: /MagicTheGathering-all/9436.jpg 13 | 3: /MagicTheGathering-all/17790.jpg 14 | 4: /MagicTheGathering-all/9627.jpg 15 | 22: /MagicTheGathering-all/22699.jpg 16 | 2: /MagicTheGathering-all/10222.jpg 17 | 3: /MagicTheGathering-all/18207.jpg 18 | 2: /MagicTheGathering-all/12763.jpg 19 | p: graveyard 20 | p: exiled 21 | -------------------------------------------------------------------------------- /data/packages/magic/2003/blue/UG Madness: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/9719.jpg 2 | 4: /MagicTheGathering-all/9762.jpg 3 | 4: /MagicTheGathering-all/21349.jpg 4 | 4: /MagicTheGathering-all/9558.jpg 5 | 4: /MagicTheGathering-all/10214.jpg 6 | 4: /MagicTheGathering-all/9335.jpg 7 | 4: /MagicTheGathering-all/9345.jpg 8 | 4: /MagicTheGathering-all/9638.jpg 9 | 3: /MagicTheGathering-all/2860.jpg 10 | 3: /MagicTheGathering-all/9541.jpg 11 | 3: /MagicTheGathering-all/11282.jpg 12 | 9: /MagicTheGathering-all/22678.jpg 13 | 10: /MagicTheGathering-all/22682.jpg 14 | 3: /MagicTheGathering-all/2856.jpg 15 | 2: /MagicTheGathering-all/10282.jpg 16 | 4: /MagicTheGathering-all/22904.jpg 17 | 3: /MagicTheGathering-all/10287.jpg 18 | 1: /MagicTheGathering-all/10293.jpg 19 | p: graveyard 20 | p: exiled 21 | -------------------------------------------------------------------------------- /data/packages/magic/2003/green/Keebler Kaos: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/2885.jpg 2 | 3: /MagicTheGathering-all/15114.jpg 3 | 4: /MagicTheGathering-all/11202.jpg 4 | 2: /MagicTheGathering-all/10362.jpg 5 | 4: /MagicTheGathering-all/16024.jpg 6 | 4: /MagicTheGathering-all/20985.jpg 7 | 3: /MagicTheGathering-all/10287.jpg 8 | 2: /MagicTheGathering-all/10619.jpg 9 | 4: /MagicTheGathering-all/18127.jpg 10 | 4: /MagicTheGathering-all/15170.jpg 11 | 4: /MagicTheGathering-all/9527.jpg 12 | 22: /MagicTheGathering-all/22678.jpg 13 | 1: /MagicTheGathering-all/2856.jpg 14 | 4: /MagicTheGathering-all/9526.jpg 15 | 3: /MagicTheGathering-all/22904.jpg 16 | 2: /MagicTheGathering-all/22913.jpg 17 | 2: /MagicTheGathering-all/9546.jpg 18 | 3: /MagicTheGathering-all/9549.jpg 19 | p: graveyard 20 | p: exiled 21 | -------------------------------------------------------------------------------- /data/packages/magic/2005/green/Dragon Seeds: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/14369.jpg 2 | 4: /MagicTheGathering-all/14653.jpg 3 | 4: /MagicTheGathering-all/14395.jpg 4 | 2: /MagicTheGathering-all/14396.jpg 5 | 2: /MagicTheGathering-all/8055.jpg 6 | 4: /MagicTheGathering-all/10858.jpg 7 | 4: /MagicTheGathering-all/13261.jpg 8 | 2: /MagicTheGathering-all/13862.jpg 9 | 2: /MagicTheGathering-all/13281.jpg 10 | 4: /MagicTheGathering-all/14277.jpg 11 | 4: /MagicTheGathering-all/10864.jpg 12 | 2: /MagicTheGathering-all/3718.jpg 13 | 4: /MagicTheGathering-all/11271.jpg 14 | 2: /MagicTheGathering-all/7640.jpg 15 | 4: /MagicTheGathering-all/13401.jpg 16 | 2: /MagicTheGathering-all/6710.jpg 17 | 15: /MagicTheGathering-all/22678.jpg 18 | 15: /MagicTheGathering-all/22682.jpg 19 | p: graveyard 20 | p: exiled 21 | -------------------------------------------------------------------------------- /data/packages/magic/2006/black/Black Ice: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/14848.jpg 2 | 4: /MagicTheGathering-all/17272.jpg 3 | 4: /MagicTheGathering-all/14918.jpg 4 | 4: /MagicTheGathering-all/14306.jpg 5 | 4: /MagicTheGathering-all/22857.jpg 6 | 4: /MagicTheGathering-all/14097.jpg 7 | 4: /MagicTheGathering-all/14564.jpg 8 | 4: /MagicTheGathering-all/14722.jpg 9 | 4: /MagicTheGathering-all/14381.jpg 10 | 4: /MagicTheGathering-all/17375.jpg 11 | 4: /MagicTheGathering-all/14108.jpg 12 | 12: /MagicTheGathering-all/14118.jpg 13 | 4: /MagicTheGathering-all/15328.jpg 14 | 2: /MagicTheGathering-all/14830.jpg 15 | 3: /MagicTheGathering-all/14703.jpg 16 | 3: /MagicTheGathering-all/14649.jpg 17 | 4: /MagicTheGathering-all/15360.jpg 18 | 4: /MagicTheGathering-all/15671.jpg 19 | p: graveyard 20 | p: exiled 21 | -------------------------------------------------------------------------------- /data/packages/magic/2006/blue/Land Lord: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/10194.jpg 2 | 4: /MagicTheGathering-all/18360.jpg 3 | 4: /MagicTheGathering-all/13804.jpg 4 | 4: /MagicTheGathering-all/12568.jpg 5 | 2: /MagicTheGathering-all/11781.jpg 6 | 4: /MagicTheGathering-all/15062.jpg 7 | 4: /MagicTheGathering-all/2860.jpg 8 | 4: /MagicTheGathering-all/11989.jpg 9 | 2: /MagicTheGathering-all/13288.jpg 10 | 4: /MagicTheGathering-all/13956.jpg 11 | 2: /MagicTheGathering-all/11568.jpg 12 | 4: /MagicTheGathering-all/22836.jpg 13 | 16: /MagicTheGathering-all/22682.jpg 14 | 4: /MagicTheGathering-all/11310.jpg 15 | 4: /MagicTheGathering-all/14951.jpg 16 | 3: /MagicTheGathering-all/17325.jpg 17 | 2: /MagicTheGathering-all/11652.jpg 18 | 4: /MagicTheGathering-all/10878.jpg 19 | p: graveyard 20 | p: exiled 21 | -------------------------------------------------------------------------------- /data/packages/magic/2006/blue/Pickles: -------------------------------------------------------------------------------- 1 | 3: /MagicTheGathering-all/14172.jpg 2 | 2: /MagicTheGathering-all/15645.jpg 3 | 3: /MagicTheGathering-all/14388.jpg 4 | 4: /MagicTheGathering-all/14419.jpg 5 | 4: /MagicTheGathering-all/14155.jpg 6 | 4: /MagicTheGathering-all/15457.jpg 7 | 4: /MagicTheGathering-all/15482.jpg 8 | 4: /MagicTheGathering-all/15278.jpg 9 | 4: /MagicTheGathering-all/14107.jpg 10 | 4: /MagicTheGathering-all/14578.jpg 11 | 4: /MagicTheGathering-all/14207.jpg 12 | 18: /MagicTheGathering-all/14115.jpg 13 | 2: /MagicTheGathering-all/14414.jpg 14 | 2: /MagicTheGathering-all/14678.jpg 15 | 3: /MagicTheGathering-all/14223.jpg 16 | 3: /MagicTheGathering-all/21345.jpg 17 | 4: /MagicTheGathering-all/14092.jpg 18 | 3: /MagicTheGathering-all/15271.jpg 19 | p: graveyard 20 | p: exiled 21 | -------------------------------------------------------------------------------- /data/packages/magic/2006/green/Forest, Run: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/14754.jpg 2 | 4: /MagicTheGathering-all/14397.jpg 3 | 4: /MagicTheGathering-all/14665.jpg 4 | 4: /MagicTheGathering-all/14669.jpg 5 | 4: /MagicTheGathering-all/14434.jpg 6 | 4: /MagicTheGathering-all/18187.jpg 7 | 2: /MagicTheGathering-all/22773.jpg 8 | 4: /MagicTheGathering-all/14241.jpg 9 | 4: /MagicTheGathering-all/14736.jpg 10 | 4: /MagicTheGathering-all/15567.jpg 11 | 22: /MagicTheGathering-all/22678.jpg 12 | 2: /MagicTheGathering-all/15451.jpg 13 | 3: /MagicTheGathering-all/14277.jpg 14 | 2: /MagicTheGathering-all/14303.jpg 15 | 1: /MagicTheGathering-all/14962.jpg 16 | 4: /MagicTheGathering-all/14351.jpg 17 | 1: /MagicTheGathering-all/14996.jpg 18 | 2: /MagicTheGathering-all/14372.jpg 19 | p: graveyard 20 | p: exiled 21 | -------------------------------------------------------------------------------- /data/packages/magic/2005/green/Mono Green Aggro: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/14008.jpg 2 | 2: /MagicTheGathering-all/20985.jpg 3 | 4: /MagicTheGathering-all/14351.jpg 4 | 4: /MagicTheGathering-all/13773.jpg 5 | 4: /MagicTheGathering-all/14363.jpg 6 | 4: /MagicTheGathering-all/14434.jpg 7 | 4: /MagicTheGathering-all/15056.jpg 8 | 4: /MagicTheGathering-all/14566.jpg 9 | 3: /MagicTheGathering-all/14292.jpg 10 | 3: /MagicTheGathering-all/13353.jpg 11 | 4: /MagicTheGathering-all/14374.jpg 12 | 2: /MagicTheGathering-all/14627.jpg 13 | 2: /MagicTheGathering-all/14108.jpg 14 | 16: /MagicTheGathering-all/14114.jpg 15 | 4: /MagicTheGathering-all/14563.jpg 16 | 3: /MagicTheGathering-all/12620.jpg 17 | 4: /MagicTheGathering-all/13695.jpg 18 | 4: /MagicTheGathering-all/14277.jpg 19 | p: graveyard 20 | p: exiled 21 | -------------------------------------------------------------------------------- /data/packages/magic/2012/white/PathOfWar: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/22711.jpg 2 | 3: /MagicTheGathering-all/21742.jpg 3 | 4: /MagicTheGathering-all/21684.jpg 4 | 4: /MagicTheGathering-all/22722.jpg 5 | 4: /MagicTheGathering-all/22723.jpg 6 | 1: /MagicTheGathering-all/22377.jpg 7 | 3: /MagicTheGathering-all/22698.jpg 8 | 4: /MagicTheGathering-all/21801.jpg 9 | 4: /MagicTheGathering-all/22860.jpg 10 | 4: /MagicTheGathering-all/22731.jpg 11 | 2: /MagicTheGathering-all/22358.jpg 12 | 4: /MagicTheGathering-all/22754.jpg 13 | 4: /MagicTheGathering-all/22755.jpg 14 | 4: /MagicTheGathering-all/22682.jpg 15 | 4: /MagicTheGathering-all/21547.jpg 16 | 4: /MagicTheGathering-all/22691.jpg 17 | 3: /MagicTheGathering-all/22699.jpg 18 | 3: /MagicTheGathering-all/21299.jpg 19 | p: graveYard 20 | p: foreverDiscarded 21 | -------------------------------------------------------------------------------- /src/cardmanager/impl/networking/BooleanAndMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.impl.networking; 7 | /* 8 | * BooleanAndMessage.java 9 | * 10 | * Created on 23. duben 2007, 11:39 11 | * 12 | * To change this template, choose Tools | Template Manager 13 | * and open the template in the editor. 14 | */ 15 | 16 | 17 | 18 | /** 19 | * 20 | * @author Jirka 21 | */ 22 | public class BooleanAndMessage { 23 | public boolean meaning; 24 | public String message; 25 | 26 | /** Creates a new instance of BooleanAndMessage */ 27 | public BooleanAndMessage(boolean meaning,String message) { 28 | this.meaning=meaning; 29 | this.message=message; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /data/packages/magic/2012/rainbow/dredge: -------------------------------------------------------------------------------- 1 | 1: /MagicTheGathering-all/13283.jpg 2 | 4: /MagicTheGathering-all/13304.jpg 3 | 2: /MagicTheGathering-all/13309.jpg 4 | 3: /MagicTheGathering-all/9651.jpg 5 | 4: /MagicTheGathering-all/14946.jpg 6 | 4: /MagicTheGathering-all/9742.jpg 7 | 1: /MagicTheGathering-all/21341.jpg 8 | 3: /MagicTheGathering-all/9721.jpg 9 | 4: /MagicTheGathering-all/14861.jpg 10 | 3: /MagicTheGathering-all/10222.jpg 11 | 3: /MagicTheGathering-all/9345.jpg 12 | 1: /MagicTheGathering-all/13247.jpg 13 | 2: /MagicTheGathering-all/14206.jpg 14 | 4: /MagicTheGathering-all/21936.jpg 15 | 4: /MagicTheGathering-all/5129.jpg 16 | 4: /MagicTheGathering-all/9592.jpg 17 | 4: /MagicTheGathering-all/11282.jpg 18 | 4: /MagicTheGathering-all/14598.jpg 19 | 2: /MagicTheGathering-all/9604.jpg 20 | p: graveyard 21 | p: exiled 22 | -------------------------------------------------------------------------------- /data/packages/magic/2003/red/Burning Bridge: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/21264.jpg 2 | 4: /MagicTheGathering-all/10241.jpg 3 | 4: /MagicTheGathering-all/10351.jpg 4 | 4: /MagicTheGathering-all/11260.jpg 5 | 4: /MagicTheGathering-all/9468.jpg 6 | 3: /MagicTheGathering-all/2935.jpg 7 | 4: /MagicTheGathering-all/20975.jpg 8 | 4: /MagicTheGathering-all/9760.jpg 9 | 4: /MagicTheGathering-all/12879.jpg 10 | 2: /MagicTheGathering-all/10523.jpg 11 | 4: /MagicTheGathering-all/9588.jpg 12 | 3: /MagicTheGathering-all/10500.jpg 13 | 4: /MagicTheGathering-all/10492.jpg 14 | 10: /MagicTheGathering-all/22686.jpg 15 | 3: /MagicTheGathering-all/10473.jpg 16 | 3: /MagicTheGathering-all/10249.jpg 17 | 4: /MagicTheGathering-all/10254.jpg 18 | 4: /MagicTheGathering-all/3025.jpg 19 | 4: /MagicTheGathering-all/9585.jpg 20 | p: graveyard 21 | p: exiled 22 | -------------------------------------------------------------------------------- /data/packages/magic/2003/red/Goblin Sligh: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/10357.jpg 2 | 2: /MagicTheGathering-all/10355.jpg 3 | 4: /MagicTheGathering-all/10594.jpg 4 | 4: /MagicTheGathering-all/10595.jpg 5 | 2: /MagicTheGathering-all/21264.jpg 6 | 4: /MagicTheGathering-all/17335.jpg 7 | 4: /MagicTheGathering-all/10351.jpg 8 | 4: /MagicTheGathering-all/9468.jpg 9 | 4: /MagicTheGathering-all/20975.jpg 10 | 4: /MagicTheGathering-all/9588.jpg 11 | 4: /MagicTheGathering-all/10500.jpg 12 | 10: /MagicTheGathering-all/22686.jpg 13 | 2: /MagicTheGathering-all/2874.jpg 14 | 3: /MagicTheGathering-all/10250.jpg 15 | 2: /MagicTheGathering-all/10528.jpg 16 | 2: /MagicTheGathering-all/3025.jpg 17 | 4: /MagicTheGathering-all/17790.jpg 18 | 1: /MagicTheGathering-all/22699.jpg 19 | 1: /MagicTheGathering-all/15363.jpg 20 | p: graveyard 21 | p: exiled 22 | -------------------------------------------------------------------------------- /data/packages/magic/2005/blue/Stasis-Kismet: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/14172.jpg 2 | 2: /MagicTheGathering-all/13871.jpg 3 | 4: /MagicTheGathering-all/13344.jpg 4 | 4: /MagicTheGathering-all/14343.jpg 5 | 4: /MagicTheGathering-all/14419.jpg 6 | 4: /MagicTheGathering-all/20938.jpg 7 | 4: /MagicTheGathering-all/12643.jpg 8 | 4: /MagicTheGathering-all/21299.jpg 9 | 4: /MagicTheGathering-all/13390.jpg 10 | 4: /MagicTheGathering-all/22830.jpg 11 | 4: /MagicTheGathering-all/15025.jpg 12 | 2: /MagicTheGathering-all/13822.jpg 13 | 10: /MagicTheGathering-all/22682.jpg 14 | 6: /MagicTheGathering-all/22691.jpg 15 | 2: /MagicTheGathering-all/21267.jpg 16 | 4: /MagicTheGathering-all/15118.jpg 17 | 1: /MagicTheGathering-all/14590.jpg 18 | 4: /MagicTheGathering-all/14283.jpg 19 | 4: /MagicTheGathering-all/18462.jpg 20 | p: graveyard 21 | p: exiled 22 | -------------------------------------------------------------------------------- /data/packages/magic/interesting1/white/Stonegeddon: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/16506.jpg 2 | 2: /MagicTheGathering-all/15560.jpg 3 | 2: /MagicTheGathering-all/14276.jpg 4 | 4: /MagicTheGathering-all/6345.jpg 5 | 2: /MagicTheGathering-all/22768.jpg 6 | 2: /MagicTheGathering-all/5739.jpg 7 | 4: /MagicTheGathering-all/17795.jpg 8 | 4: /MagicTheGathering-all/11608.jpg 9 | 4: /MagicTheGathering-all/2475.jpg 10 | 1: /MagicTheGathering-all/20615.jpg 11 | 4: /MagicTheGathering-all/7842.jpg 12 | 4: /MagicTheGathering-all/4912.jpg 13 | 4: /MagicTheGathering-all/5947.jpg 14 | 2: /MagicTheGathering-all/12383.jpg 15 | 2: /MagicTheGathering-all/5457.jpg 16 | 4: /MagicTheGathering-all/14227.jpg 17 | 2: /MagicTheGathering-all/14907.jpg 18 | 2: /MagicTheGathering-all/17558.jpg 19 | 9: /MagicTheGathering-all/22691.jpg 20 | p: graveyard 21 | p: exiled 22 | -------------------------------------------------------------------------------- /data/packages/magic/2012/black/UB_zombies: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/22418.jpg 2 | 2: /MagicTheGathering-all/21732.jpg 3 | 4: /MagicTheGathering-all/22020.jpg 4 | 4: /MagicTheGathering-all/21520.jpg 5 | 4: /MagicTheGathering-all/21942.jpg 6 | 2: /MagicTheGathering-all/22040.jpg 7 | 4: /MagicTheGathering-all/21284.jpg 8 | 1: /MagicTheGathering-all/22313.jpg 9 | 1: /MagicTheGathering-all/20608.jpg 10 | 2: /MagicTheGathering-all/22220.jpg 11 | 2: /MagicTheGathering-all/20477.jpg 12 | 4: /MagicTheGathering-all/21350.jpg 13 | 3: /MagicTheGathering-all/22045.jpg 14 | 2: /MagicTheGathering-all/21823.jpg 15 | 4: /MagicTheGathering-all/22358.jpg 16 | 4: /MagicTheGathering-all/18450.jpg 17 | 4: /MagicTheGathering-all/22754.jpg 18 | 10: /MagicTheGathering-all/22699.jpg 19 | 3: /MagicTheGathering-all/21944.jpg 20 | p: graveyard 21 | p: foreverDiscarded 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CardManager 2 | 3 | Originally placed on http://cardmanager.wz.cz/ 4 | 5 | This is free, open source multiplatform (java) application which allows you to play ANY card game.
6 | The game is designed especially to play collectible card games like Magic the Gathering or Doomtrooper over network.
7 | To play those games you need to own (scanned) images of card, which are not part of this package.
8 | Some can be easily downloadable from internet, but be aware of copyrights.
9 | The default deck and background is free of copyright
10 | Also please feel free to add your own backgrounds to ~/CardManager/data/backgrounds and of course enhance collection under ~/CardManager/collection
11 | 12 | Packed for fedora for some time - https://admin.fedoraproject.org/pkgdb/package/rpms/CardManager/ 13 | -------------------------------------------------------------------------------- /data/packages/magic/2012/green/StandardGUW_Flicker: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/22891.jpg 2 | 3: /MagicTheGathering-all/20936.jpg 3 | 2: /MagicTheGathering-all/21716.jpg 4 | 4: /MagicTheGathering-all/20592.jpg 5 | 2: /MagicTheGathering-all/22389.jpg 6 | 2: /MagicTheGathering-all/22899.jpg 7 | 2: /MagicTheGathering-all/21284.jpg 8 | 4: /MagicTheGathering-all/22203.jpg 9 | 2: /MagicTheGathering-all/21330.jpg 10 | 4: /MagicTheGathering-all/22729.jpg 11 | 4: /MagicTheGathering-all/22202.jpg 12 | 2: /MagicTheGathering-all/22804.jpg 13 | 2: /MagicTheGathering-all/22732.jpg 14 | 2: /MagicTheGathering-all/22836.jpg 15 | 8: /MagicTheGathering-all/22678.jpg 16 | 4: /MagicTheGathering-all/22755.jpg 17 | 4: /MagicTheGathering-all/21546.jpg 18 | 4: /MagicTheGathering-all/22691.jpg 19 | 4: /MagicTheGathering-all/22682.jpg 20 | p: graveyard 21 | p: foreverDiscarded 22 | -------------------------------------------------------------------------------- /data/packages/magic/2006/rainbow/Friggorid: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/9724.jpg 2 | 2: /MagicTheGathering-all/13283.jpg 3 | 4: /MagicTheGathering-all/13304.jpg 4 | 4: /MagicTheGathering-all/13309.jpg 5 | 4: /MagicTheGathering-all/9651.jpg 6 | 4: /MagicTheGathering-all/14946.jpg 7 | 4: /MagicTheGathering-all/13428.jpg 8 | 4: /MagicTheGathering-all/14861.jpg 9 | 4: /MagicTheGathering-all/10222.jpg 10 | 4: /MagicTheGathering-all/11465.jpg 11 | 4: /MagicTheGathering-all/14206.jpg 12 | 4: /MagicTheGathering-all/18209.jpg 13 | 4: /MagicTheGathering-all/11647.jpg 14 | 4: /MagicTheGathering-all/6750.jpg 15 | 4: /MagicTheGathering-all/3168.jpg 16 | 4: /MagicTheGathering-all/14877.jpg 17 | 3: /MagicTheGathering-all/1342.jpg 18 | 4: /MagicTheGathering-all/4121.jpg 19 | 4: /MagicTheGathering-all/5834.jpg 20 | 4: /MagicTheGathering-all/7213.jpg 21 | p: graveyard 22 | p: exiled 23 | -------------------------------------------------------------------------------- /data/packages/magic/2004/artefacts/Affinity: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/11617.jpg 2 | 4: /MagicTheGathering-all/11620.jpg 3 | 4: /MagicTheGathering-all/11383.jpg 4 | 4: /MagicTheGathering-all/11486.jpg 5 | 4: /MagicTheGathering-all/18266.jpg 6 | 4: /MagicTheGathering-all/11374.jpg 7 | 4: /MagicTheGathering-all/11466.jpg 8 | 4: /MagicTheGathering-all/11790.jpg 9 | 4: /MagicTheGathering-all/11425.jpg 10 | 4: /MagicTheGathering-all/11318.jpg 11 | 4: /MagicTheGathering-all/11701.jpg 12 | 2: /MagicTheGathering-all/11702.jpg 13 | 4: /MagicTheGathering-all/11312.jpg 14 | 4: /MagicTheGathering-all/11310.jpg 15 | 4: /MagicTheGathering-all/11311.jpg 16 | 4: /MagicTheGathering-all/11409.jpg 17 | 4: /MagicTheGathering-all/11587.jpg 18 | 3: /MagicTheGathering-all/21299.jpg 19 | 3: /MagicTheGathering-all/11847.jpg 20 | 4: /MagicTheGathering-all/11820.jpg 21 | p: graveyard 22 | p: exiled 23 | -------------------------------------------------------------------------------- /data/packages/magic/2004/green/Snake Pain: -------------------------------------------------------------------------------- 1 | 1: /MagicTheGathering-all/11944.jpg 2 | 1: /MagicTheGathering-all/11981.jpg 3 | 4: /MagicTheGathering-all/12059.jpg 4 | 4: /MagicTheGathering-all/12060.jpg 5 | 4: /MagicTheGathering-all/12123.jpg 6 | 3: /MagicTheGathering-all/12126.jpg 7 | 4: /MagicTheGathering-all/12127.jpg 8 | 1: /MagicTheGathering-all/12153.jpg 9 | 4: /MagicTheGathering-all/12154.jpg 10 | 1: /MagicTheGathering-all/12162.jpg 11 | 1: /MagicTheGathering-all/12166.jpg 12 | 1: /MagicTheGathering-all/12180.jpg 13 | 4: /MagicTheGathering-all/12071.jpg 14 | 3: /MagicTheGathering-all/12187.jpg 15 | 4: /MagicTheGathering-all/12204.jpg 16 | 16: /MagicTheGathering-all/22678.jpg 17 | 4: /MagicTheGathering-all/12118.jpg 18 | 4: /MagicTheGathering-all/12072.jpg 19 | 4: /MagicTheGathering-all/12125.jpg 20 | 4: /MagicTheGathering-all/12221.jpg 21 | p: graveyard 22 | p: exiled 23 | -------------------------------------------------------------------------------- /data/packages/magic/2006/green/2007 States - 5th: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/14008.jpg 2 | 3: /MagicTheGathering-all/15435.jpg 3 | 4: /MagicTheGathering-all/15538.jpg 4 | 4: /MagicTheGathering-all/20985.jpg 5 | 3: /MagicTheGathering-all/15575.jpg 6 | 4: /MagicTheGathering-all/15373.jpg 7 | 3: /MagicTheGathering-all/15704.jpg 8 | 4: /MagicTheGathering-all/15705.jpg 9 | 3: /MagicTheGathering-all/18187.jpg 10 | 4: /MagicTheGathering-all/18127.jpg 11 | 3: /MagicTheGathering-all/15201.jpg 12 | 16: /MagicTheGathering-all/22678.jpg 13 | 2: /MagicTheGathering-all/14924.jpg 14 | 1: /MagicTheGathering-all/14627.jpg 15 | 4: /MagicTheGathering-all/15372.jpg 16 | 3: /MagicTheGathering-all/14277.jpg 17 | 4: /MagicTheGathering-all/15567.jpg 18 | 4: /MagicTheGathering-all/14374.jpg 19 | 3: /MagicTheGathering-all/15004.jpg 20 | 1: /MagicTheGathering-all/15682.jpg 21 | p: graveyard 22 | p: exiled 23 | -------------------------------------------------------------------------------- /data/packages/magic/interesting1/rainbow/Vampires: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/21353.jpg 2 | 4: /MagicTheGathering-all/21732.jpg 3 | 4: /MagicTheGathering-all/20949.jpg 4 | 2: /MagicTheGathering-all/22058.jpg 5 | 4: /MagicTheGathering-all/22018.jpg 6 | 4: /MagicTheGathering-all/21685.jpg 7 | 2: /MagicTheGathering-all/21961.jpg 8 | 4: /MagicTheGathering-all/18515.jpg 9 | 4: /MagicTheGathering-all/21725.jpg 10 | 3: /MagicTheGathering-all/18389.jpg 11 | 4: /MagicTheGathering-all/20975.jpg 12 | 4: /MagicTheGathering-all/22753.jpg 13 | 4: /MagicTheGathering-all/21547.jpg 14 | 8: /MagicTheGathering-all/22686.jpg 15 | 3: /MagicTheGathering-all/22691.jpg 16 | 5: /MagicTheGathering-all/22699.jpg 17 | 4: /MagicTheGathering-all/20639.jpg 18 | 4: /MagicTheGathering-all/20954.jpg 19 | 2: /MagicTheGathering-all/20928.jpg 20 | 2: /MagicTheGathering-all/20576.jpg 21 | p: graveyard 22 | p: exiled 23 | -------------------------------------------------------------------------------- /data/packages/magic/2003/red/Red Dawn v2: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/10355.jpg 2 | 1: /MagicTheGathering-all/10592.jpg 3 | 4: /MagicTheGathering-all/12678.jpg 4 | 4: /MagicTheGathering-all/10594.jpg 5 | 4: /MagicTheGathering-all/10595.jpg 6 | 4: /MagicTheGathering-all/21264.jpg 7 | 4: /MagicTheGathering-all/10354.jpg 8 | 3: /MagicTheGathering-all/2900.jpg 9 | 4: /MagicTheGathering-all/9468.jpg 10 | 4: /MagicTheGathering-all/10254.jpg 11 | 4: /MagicTheGathering-all/9490.jpg 12 | 4: /MagicTheGathering-all/10500.jpg 13 | 1: /MagicTheGathering-all/10367.jpg 14 | 11: /MagicTheGathering-all/22686.jpg 15 | 4: /MagicTheGathering-all/10473.jpg 16 | 3: /MagicTheGathering-all/11260.jpg 17 | 2: /MagicTheGathering-all/10249.jpg 18 | 2: /MagicTheGathering-all/9695.jpg 19 | 3: /MagicTheGathering-all/10250.jpg 20 | 3: /MagicTheGathering-all/10528.jpg 21 | 2: /MagicTheGathering-all/15363.jpg 22 | p: graveyard 23 | p: exiled 24 | -------------------------------------------------------------------------------- /data/packages/magic/2006/red/Battlemage: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/16486.jpg 2 | 1: /MagicTheGathering-all/20848.jpg 3 | 4: /MagicTheGathering-all/13718.jpg 4 | 3: /MagicTheGathering-all/16325.jpg 5 | 1: /MagicTheGathering-all/15310.jpg 6 | 4: /MagicTheGathering-all/15644.jpg 7 | 2: /MagicTheGathering-all/14692.jpg 8 | 1: /MagicTheGathering-all/13715.jpg 9 | 4: /MagicTheGathering-all/18120.jpg 10 | 2: /MagicTheGathering-all/16289.jpg 11 | 3: /MagicTheGathering-all/13903.jpg 12 | 2: /MagicTheGathering-all/11816.jpg 13 | 2: /MagicTheGathering-all/22882.jpg 14 | 4: /MagicTheGathering-all/16853.jpg 15 | 4: /MagicTheGathering-all/17914.jpg 16 | 1: /MagicTheGathering-all/17381.jpg 17 | 4: /MagicTheGathering-all/22926.jpg 18 | 4: /MagicTheGathering-all/22682.jpg 19 | 4: /MagicTheGathering-all/13716.jpg 20 | 4: /MagicTheGathering-all/22686.jpg 21 | 4: /MagicTheGathering-all/18306.jpg 22 | p: graveyard 23 | p: exiled 24 | -------------------------------------------------------------------------------- /data/packages/magic/2006/green/Green Beatdown: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/11203.jpg 2 | 2: /MagicTheGathering-all/11686.jpg 3 | 4: /MagicTheGathering-all/10939.jpg 4 | 3: /MagicTheGathering-all/10365.jpg 5 | 4: /MagicTheGathering-all/14945.jpg 6 | 4: /MagicTheGathering-all/12154.jpg 7 | 4: /MagicTheGathering-all/11657.jpg 8 | 2: /MagicTheGathering-all/15682.jpg 9 | 3: /MagicTheGathering-all/12891.jpg 10 | 1: /MagicTheGathering-all/18187.jpg 11 | 3: /MagicTheGathering-all/12072.jpg 12 | 4: /MagicTheGathering-all/14303.jpg 13 | 22: /MagicTheGathering-all/22678.jpg 14 | 2: /MagicTheGathering-all/15451.jpg 15 | 2: /MagicTheGathering-all/14277.jpg 16 | 3: /MagicTheGathering-all/15201.jpg 17 | 1: /MagicTheGathering-all/18564.jpg 18 | 2: /MagicTheGathering-all/22904.jpg 19 | 1: /MagicTheGathering-all/14372.jpg 20 | 2: /MagicTheGathering-all/9551.jpg 21 | 2: /MagicTheGathering-all/11766.jpg 22 | p: graveyard 23 | p: exiled 24 | -------------------------------------------------------------------------------- /data/packages/magic/2012/red/DragonPowa: -------------------------------------------------------------------------------- 1 | 1: /MagicTheGathering-all/10822.jpg 2 | 4: /MagicTheGathering-all/17055.jpg 3 | 4: /MagicTheGathering-all/22675.jpg 4 | 4: /MagicTheGathering-all/17711.jpg 5 | 4: /MagicTheGathering-all/10820.jpg 6 | 4: /MagicTheGathering-all/22874.jpg 7 | 2: /MagicTheGathering-all/17514.jpg 8 | 4: /MagicTheGathering-all/16724.jpg 9 | 1: /MagicTheGathering-all/17088.jpg 10 | 4: /MagicTheGathering-all/22770.jpg 11 | 4: /MagicTheGathering-all/16672.jpg 12 | 2: /MagicTheGathering-all/14584.jpg 13 | 2: /MagicTheGathering-all/20653.jpg 14 | 2: /MagicTheGathering-all/12811.jpg 15 | 4: /MagicTheGathering-all/22753.jpg 16 | 15: /MagicTheGathering-all/22686.jpg 17 | 4: /MagicTheGathering-all/22756.jpg 18 | 4: /MagicTheGathering-all/16818.jpg 19 | 4: /MagicTheGathering-all/399.jpg 20 | 3: /MagicTheGathering-all/22765.jpg 21 | 3: /MagicTheGathering-all/21958.jpg 22 | p: graveyard 23 | p: foreverDiscarded 24 | -------------------------------------------------------------------------------- /data/packages/clasic32: -------------------------------------------------------------------------------- 1 | 1: /classicCards/bonus/bsd-daemon-ace-of-spades.png 2 | 1: /classicCards/1.png 3 | 1: /classicCards/10.png 4 | 1: /classicCards/11.png 5 | 1: /classicCards/12.png 6 | 1: /classicCards/13.png 7 | 1: /classicCards/14.png 8 | 1: /classicCards/15.png 9 | 1: /classicCards/16.png 10 | 1: /classicCards/17.png 11 | 1: /classicCards/18.png 12 | 1: /classicCards/19.png 13 | 1: /classicCards/20.png 14 | 1: /classicCards/21.png 15 | 1: /classicCards/22.png 16 | 1: /classicCards/23.png 17 | 1: /classicCards/24.png 18 | 1: /classicCards/25.png 19 | 1: /classicCards/26.png 20 | 1: /classicCards/27.png 21 | 1: /classicCards/28.png 22 | 1: /classicCards/29.png 23 | 1: /classicCards/3.png 24 | 1: /classicCards/30.png 25 | 1: /classicCards/31.png 26 | 1: /classicCards/32.png 27 | 1: /classicCards/5.png 28 | 1: /classicCards/6.png 29 | 1: /classicCards/7.png 30 | 1: /classicCards/8.png 31 | 1: /classicCards/9.png 32 | 1: /classicCards/4.png 33 | -------------------------------------------------------------------------------- /data/packages/magic/2006/blue/Ideal: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/13827.jpg 2 | 2: /MagicTheGathering-all/13210.jpg 3 | 3: /MagicTheGathering-all/12604.jpg 4 | 2: /MagicTheGathering-all/13853.jpg 5 | 4: /MagicTheGathering-all/12429.jpg 6 | 4: /MagicTheGathering-all/13276.jpg 7 | 3: /MagicTheGathering-all/12660.jpg 8 | 2: /MagicTheGathering-all/12028.jpg 9 | 4: /MagicTheGathering-all/11765.jpg 10 | 2: /MagicTheGathering-all/13381.jpg 11 | 1: /MagicTheGathering-all/15291.jpg 12 | 4: /MagicTheGathering-all/12811.jpg 13 | 4: /MagicTheGathering-all/12160.jpg 14 | 3: /MagicTheGathering-all/10177.jpg 15 | 1: /MagicTheGathering-all/14652.jpg 16 | 1: /MagicTheGathering-all/12901.jpg 17 | 4: /MagicTheGathering-all/7414.jpg 18 | 15: /MagicTheGathering-all/22682.jpg 19 | 4: /MagicTheGathering-all/22686.jpg 20 | 6: /MagicTheGathering-all/22691.jpg 21 | 4: /MagicTheGathering-all/18306.jpg 22 | 4: /MagicTheGathering-all/18475.jpg 23 | p: graveyard 24 | p: exiled 25 | -------------------------------------------------------------------------------- /data/packages/magic/2005/red/Dragonstorm: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/17192.jpg 2 | 1: /MagicTheGathering-all/13316.jpg 3 | 2: /MagicTheGathering-all/13323.jpg 4 | 4: /MagicTheGathering-all/14584.jpg 5 | 4: /MagicTheGathering-all/13696.jpg 6 | 4: /MagicTheGathering-all/13882.jpg 7 | 4: /MagicTheGathering-all/14284.jpg 8 | 4: /MagicTheGathering-all/14103.jpg 9 | 4: /MagicTheGathering-all/12811.jpg 10 | 4: /MagicTheGathering-all/12826.jpg 11 | 4: /MagicTheGathering-all/15357.jpg 12 | 3: /MagicTheGathering-all/13831.jpg 13 | 3: /MagicTheGathering-all/22682.jpg 14 | 1: /MagicTheGathering-all/22686.jpg 15 | 4: /MagicTheGathering-all/15311.jpg 16 | 4: /MagicTheGathering-all/13787.jpg 17 | 4: /MagicTheGathering-all/15379.jpg 18 | 4: /MagicTheGathering-all/13475.jpg 19 | 2: /MagicTheGathering-all/20938.jpg 20 | 4: /MagicTheGathering-all/18294.jpg 21 | 4: /MagicTheGathering-all/13390.jpg 22 | 3: /MagicTheGathering-all/14430.jpg 23 | p: graveyard 24 | p: exiled 25 | -------------------------------------------------------------------------------- /data/packages/magic/2003/white/WG Battle Screech: -------------------------------------------------------------------------------- 1 | 3: /MagicTheGathering-all/10187.jpg 2 | 4: /MagicTheGathering-all/10163.jpg 3 | 4: /MagicTheGathering-all/2977.jpg 4 | 4: /MagicTheGathering-all/15348.jpg 5 | 3: /MagicTheGathering-all/9331.jpg 6 | 4: /MagicTheGathering-all/12883.jpg 7 | 4: /MagicTheGathering-all/10322.jpg 8 | 4: /MagicTheGathering-all/9558.jpg 9 | 4: /MagicTheGathering-all/10156.jpg 10 | 4: /MagicTheGathering-all/9294.jpg 11 | 3: /MagicTheGathering-all/15144.jpg 12 | 4: /MagicTheGathering-all/3051.jpg 13 | 4: /MagicTheGathering-all/15064.jpg 14 | 4: /MagicTheGathering-all/10493.jpg 15 | 2: /MagicTheGathering-all/22678.jpg 16 | 7: /MagicTheGathering-all/22691.jpg 17 | 4: /MagicTheGathering-all/10475.jpg 18 | 2: /MagicTheGathering-all/14580.jpg 19 | 2: /MagicTheGathering-all/10282.jpg 20 | 3: /MagicTheGathering-all/14620.jpg 21 | 2: /MagicTheGathering-all/21938.jpg 22 | 3: /MagicTheGathering-all/12892.jpg 23 | 24 | p: graveyard 25 | p: exiled 26 | -------------------------------------------------------------------------------- /data/packages/magic/interesting1/white/Angels Rise: -------------------------------------------------------------------------------- 1 | 1: /MagicTheGathering-all/22223.jpg 2 | 1: /MagicTheGathering-all/21719.jpg 3 | 4: /MagicTheGathering-all/21716.jpg 4 | 1: /MagicTheGathering-all/22200.jpg 5 | 4: /MagicTheGathering-all/22477.jpg 6 | 1: /MagicTheGathering-all/22314.jpg 7 | 1: /MagicTheGathering-all/22291.jpg 8 | 2: /MagicTheGathering-all/22328.jpg 9 | 2: /MagicTheGathering-all/22324.jpg 10 | 2: /MagicTheGathering-all/22203.jpg 11 | 2: /MagicTheGathering-all/22380.jpg 12 | 1: /MagicTheGathering-all/22213.jpg 13 | 3: /MagicTheGathering-all/22344.jpg 14 | 4: /MagicTheGathering-all/22475.jpg 15 | 3: /MagicTheGathering-all/22476.jpg 16 | 3: /MagicTheGathering-all/22311.jpg 17 | 1: /MagicTheGathering-all/22216.jpg 18 | 2: /MagicTheGathering-all/21743.jpg 19 | 2: /MagicTheGathering-all/22348.jpg 20 | 8: /MagicTheGathering-all/22678.jpg 21 | 4: /MagicTheGathering-all/21720.jpg 22 | 8: /MagicTheGathering-all/22691.jpg 23 | p: graveyard 24 | p: exiled 25 | -------------------------------------------------------------------------------- /src/cardmanager/impl/packages/Package.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.impl.packages; 7 | 8 | import cardmanager.impl.card.*; 9 | import java.awt.Component; 10 | import java.util.*; 11 | 12 | /** 13 | * 14 | * @author Jirka 15 | */ 16 | public interface Package { 17 | 18 | public Card getTopFrom(String id); 19 | 20 | public List getHand(); 21 | public void addToHand(Card c); 22 | 23 | public Map> getPiles(); 24 | 25 | public List getPile(String id); 26 | 27 | public List getPilesNames(); 28 | public List getPilesNamesWithCount(); 29 | 30 | public void refactorHand(Card[] c); 31 | 32 | public Card removeFromHand(Card card); 33 | 34 | 35 | 36 | public Card selectCard(Card q, String pile); 37 | 38 | public void sufflePile(String pile); 39 | 40 | } 41 | -------------------------------------------------------------------------------- /data/packages/magic/2004/blue/High Tide: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/10856.jpg 2 | 4: /MagicTheGathering-all/6445.jpg 3 | 4: /MagicTheGathering-all/10197.jpg 4 | 4: /MagicTheGathering-all/4146.jpg 5 | 4: /MagicTheGathering-all/3667.jpg 6 | 1: /MagicTheGathering-all/5593.jpg 7 | 4: /MagicTheGathering-all/11051.jpg 8 | 3: /MagicTheGathering-all/14954.jpg 9 | 4: /MagicTheGathering-all/21350.jpg 10 | 4: /MagicTheGathering-all/18171.jpg 11 | 3: /MagicTheGathering-all/9732.jpg 12 | 4: /MagicTheGathering-all/7070.jpg 13 | 14: /MagicTheGathering-all/22682.jpg 14 | 4: /MagicTheGathering-all/10484.jpg 15 | 1: /MagicTheGathering-all/20438.jpg 16 | 1: /MagicTheGathering-all/11722.jpg 17 | 1: /MagicTheGathering-all/5628.jpg 18 | 1: /MagicTheGathering-all/6376.jpg 19 | 1: /MagicTheGathering-all/14985.jpg 20 | 2: /MagicTheGathering-all/6389.jpg 21 | 4: /MagicTheGathering-all/17626.jpg 22 | 4: /MagicTheGathering-all/7078.jpg 23 | 2: /MagicTheGathering-all/14430.jpg 24 | p: graveyard 25 | p: exiled 26 | -------------------------------------------------------------------------------- /data/packages/magic/2006/white/Token Life: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/14684.jpg 2 | 4: /MagicTheGathering-all/14686.jpg 3 | 2: /MagicTheGathering-all/15447.jpg 4 | 1: /MagicTheGathering-all/14702.jpg 5 | 2: /MagicTheGathering-all/14717.jpg 6 | 4: /MagicTheGathering-all/22761.jpg 7 | 2: /MagicTheGathering-all/17364.jpg 8 | 2: /MagicTheGathering-all/14816.jpg 9 | 2: /MagicTheGathering-all/14817.jpg 10 | 4: /MagicTheGathering-all/15374.jpg 11 | 4: /MagicTheGathering-all/15386.jpg 12 | 2: /MagicTheGathering-all/14836.jpg 13 | 2: /MagicTheGathering-all/18223.jpg 14 | 2: /MagicTheGathering-all/17208.jpg 15 | 4: /MagicTheGathering-all/14706.jpg 16 | 2: /MagicTheGathering-all/15144.jpg 17 | 4: /MagicTheGathering-all/15163.jpg 18 | 2: /MagicTheGathering-all/15579.jpg 19 | 2: /MagicTheGathering-all/15221.jpg 20 | 4: /MagicTheGathering-all/15658.jpg 21 | 2: /MagicTheGathering-all/15130.jpg 22 | 18: /MagicTheGathering-all/22691.jpg 23 | 2: /MagicTheGathering-all/15401.jpg 24 | p: graveyard 25 | p: exiled 26 | -------------------------------------------------------------------------------- /data/packages/magic/2012/green/RCargo: -------------------------------------------------------------------------------- 1 | 1: /MagicTheGathering-all/22891.jpg 2 | 4: /MagicTheGathering-all/21364.jpg 3 | 2: /MagicTheGathering-all/22008.jpg 4 | 4: /MagicTheGathering-all/21970.jpg 5 | 4: /MagicTheGathering-all/20985.jpg 6 | 4: /MagicTheGathering-all/21948.jpg 7 | 2: /MagicTheGathering-all/22002.jpg 8 | 3: /MagicTheGathering-all/22357.jpg 9 | 2: /MagicTheGathering-all/22326.jpg 10 | 1: /MagicTheGathering-all/22323.jpg 11 | 2: /MagicTheGathering-all/20617.jpg 12 | 2: /MagicTheGathering-all/22319.jpg 13 | 4: /MagicTheGathering-all/20398.jpg 14 | 3: /MagicTheGathering-all/21271.jpg 15 | 2: /MagicTheGathering-all/20975.jpg 16 | 4: /MagicTheGathering-all/18449.jpg 17 | 11: /MagicTheGathering-all/22678.jpg 18 | 3: /MagicTheGathering-all/21710.jpg 19 | 2: /MagicTheGathering-all/22686.jpg 20 | 4: /MagicTheGathering-all/22756.jpg 21 | 2: /MagicTheGathering-all/22066.jpg 22 | 1: /MagicTheGathering-all/21358.jpg 23 | 2: /MagicTheGathering-all/21535.jpg 24 | p: graveyard 25 | p: foreverDsicarded 26 | -------------------------------------------------------------------------------- /data/packages/magic/2012/red/FaithlessRights: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/21698.jpg 2 | 2: /MagicTheGathering-all/22209.jpg 3 | 3: /MagicTheGathering-all/20580.jpg 4 | 4: /MagicTheGathering-all/22310.jpg 5 | 2: /MagicTheGathering-all/22318.jpg 6 | 2: /MagicTheGathering-all/20440.jpg 7 | 3: /MagicTheGathering-all/21725.jpg 8 | 2: /MagicTheGathering-all/21832.jpg 9 | 1: /MagicTheGathering-all/21552.jpg 10 | 4: /MagicTheGathering-all/21936.jpg 11 | 2: /MagicTheGathering-all/20441.jpg 12 | 2: /MagicTheGathering-all/22804.jpg 13 | 1: /MagicTheGathering-all/20397.jpg 14 | 2: /MagicTheGathering-all/20422.jpg 15 | 4: /MagicTheGathering-all/21754.jpg 16 | 3: /MagicTheGathering-all/22753.jpg 17 | 2: /MagicTheGathering-all/22682.jpg 18 | 2: /MagicTheGathering-all/21547.jpg 19 | 5: /MagicTheGathering-all/22686.jpg 20 | 4: /MagicTheGathering-all/22691.jpg 21 | 2: /MagicTheGathering-all/21886.jpg 22 | 4: /MagicTheGathering-all/22699.jpg 23 | 2: /MagicTheGathering-all/21545.jpg 24 | p: graveyard 25 | p: foreverDiscarded 26 | -------------------------------------------------------------------------------- /data/packages/magic/interesting1/rainbow/AngelFire Old PTQ1st: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/13843.jpg 2 | 4: /MagicTheGathering-all/13280.jpg 3 | 4: /MagicTheGathering-all/14612.jpg 4 | 4: /MagicTheGathering-all/22768.jpg 5 | 2: /MagicTheGathering-all/13827.jpg 6 | 2: /MagicTheGathering-all/13210.jpg 7 | 4: /MagicTheGathering-all/13233.jpg 8 | 1: /MagicTheGathering-all/12604.jpg 9 | 4: /MagicTheGathering-all/13852.jpg 10 | 4: /MagicTheGathering-all/13342.jpg 11 | 4: /MagicTheGathering-all/15401.jpg 12 | 1: /MagicTheGathering-all/15025.jpg 13 | 3: /MagicTheGathering-all/13207.jpg 14 | 4: /MagicTheGathering-all/14227.jpg 15 | 4: /MagicTheGathering-all/13875.jpg 16 | 2: /MagicTheGathering-all/22682.jpg 17 | 1: /MagicTheGathering-all/13716.jpg 18 | 2: /MagicTheGathering-all/22691.jpg 19 | 4: /MagicTheGathering-all/13397.jpg 20 | 2: /MagicTheGathering-all/13787.jpg 21 | 3: /MagicTheGathering-all/14237.jpg 22 | 4: /MagicTheGathering-all/13871.jpg 23 | 4: /MagicTheGathering-all/21299.jpg 24 | 4: /MagicTheGathering-all/13758.jpg 25 | p: graveyard 26 | p: exiled 27 | -------------------------------------------------------------------------------- /data/packages/magic/2006/blue/uw mill: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/15295.jpg 2 | 4: /MagicTheGathering-all/18226.jpg 3 | 2: /MagicTheGathering-all/15062.jpg 4 | 4: /MagicTheGathering-all/18078.jpg 5 | 2: /MagicTheGathering-all/15457.jpg 6 | 4: /MagicTheGathering-all/14876.jpg 7 | 2: /MagicTheGathering-all/15498.jpg 8 | 1: /MagicTheGathering-all/18094.jpg 9 | 4: /MagicTheGathering-all/22804.jpg 10 | 3: /MagicTheGathering-all/14778.jpg 11 | 4: /MagicTheGathering-all/15278.jpg 12 | 2: /MagicTheGathering-all/18258.jpg 13 | 1: /MagicTheGathering-all/15017.jpg 14 | 4: /MagicTheGathering-all/15401.jpg 15 | 4: /MagicTheGathering-all/15025.jpg 16 | 8: /MagicTheGathering-all/22682.jpg 17 | 4: /MagicTheGathering-all/14950.jpg 18 | 4: /MagicTheGathering-all/22691.jpg 19 | 2: /MagicTheGathering-all/14414.jpg 20 | 2: /MagicTheGathering-all/14678.jpg 21 | 1: /MagicTheGathering-all/15030.jpg 22 | 2: /MagicTheGathering-all/14204.jpg 23 | 4: /MagicTheGathering-all/14080.jpg 24 | 3: /MagicTheGathering-all/17325.jpg 25 | 2: /MagicTheGathering-all/14674.jpg 26 | p: graveyard 27 | p: exiled 28 | -------------------------------------------------------------------------------- /data/packages/magic/2006/blue/UG Faeries: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/21364.jpg 2 | 3: /MagicTheGathering-all/15581.jpg 3 | 4: /MagicTheGathering-all/14621.jpg 4 | 3: /MagicTheGathering-all/15608.jpg 5 | 4: /MagicTheGathering-all/15629.jpg 6 | 4: /MagicTheGathering-all/14351.jpg 7 | 4: /MagicTheGathering-all/15646.jpg 8 | 2: /MagicTheGathering-all/14669.jpg 9 | 2: /MagicTheGathering-all/15201.jpg 10 | 2: /MagicTheGathering-all/14630.jpg 11 | 1: /MagicTheGathering-all/15278.jpg 12 | 4: /MagicTheGathering-all/14107.jpg 13 | 3: /MagicTheGathering-all/15119.jpg 14 | 3: /MagicTheGathering-all/22678.jpg 15 | 2: /MagicTheGathering-all/14627.jpg 16 | 4: /MagicTheGathering-all/14114.jpg 17 | 5: /MagicTheGathering-all/14115.jpg 18 | 2: /MagicTheGathering-all/15372.jpg 19 | 4: /MagicTheGathering-all/15403.jpg 20 | 1: /MagicTheGathering-all/21345.jpg 21 | 3: /MagicTheGathering-all/15567.jpg 22 | 3: /MagicTheGathering-all/14363.jpg 23 | 4: /MagicTheGathering-all/15669.jpg 24 | 3: /MagicTheGathering-all/14419.jpg 25 | 1: /MagicTheGathering-all/14674.jpg 26 | p: graveyard 27 | p: exiled 28 | -------------------------------------------------------------------------------- /data/packages/magic/2004/rainbow/Twelve-Post: -------------------------------------------------------------------------------- 1 | 1: /MagicTheGathering-all/17214.jpg 2 | 1: /MagicTheGathering-all/11480.jpg 3 | 4: /MagicTheGathering-all/11774.jpg 4 | 1: /MagicTheGathering-all/12062.jpg 5 | 1: /MagicTheGathering-all/11331.jpg 6 | 1: /MagicTheGathering-all/18214.jpg 7 | 4: /MagicTheGathering-all/12154.jpg 8 | 1: /MagicTheGathering-all/11653.jpg 9 | 4: /MagicTheGathering-all/11247.jpg 10 | 4: /MagicTheGathering-all/21299.jpg 11 | 2: /MagicTheGathering-all/12132.jpg 12 | 4: /MagicTheGathering-all/11691.jpg 13 | 2: /MagicTheGathering-all/11861.jpg 14 | 4: /MagicTheGathering-all/15354.jpg 15 | 4: /MagicTheGathering-all/11451.jpg 16 | 1: /MagicTheGathering-all/11953.jpg 17 | 1: /MagicTheGathering-all/11282.jpg 18 | 4: /MagicTheGathering-all/11586.jpg 19 | 11: /MagicTheGathering-all/22678.jpg 20 | 6: /MagicTheGathering-all/22682.jpg 21 | 3: /MagicTheGathering-all/22904.jpg 22 | 4: /MagicTheGathering-all/11599.jpg 23 | 3: /MagicTheGathering-all/11232.jpg 24 | 3: /MagicTheGathering-all/11241.jpg 25 | 1: /MagicTheGathering-all/18229.jpg 26 | p: graveyard 27 | p: exiled 28 | -------------------------------------------------------------------------------- /data/packages/magic/interesting1/red/Sneakin' Dragons: -------------------------------------------------------------------------------- 1 | 3: /MagicTheGathering-all/10822.jpg 2 | 3: /MagicTheGathering-all/17192.jpg 3 | 3: /MagicTheGathering-all/16656.jpg 4 | 3: /MagicTheGathering-all/10820.jpg 5 | 3: /MagicTheGathering-all/12073.jpg 6 | 3: /MagicTheGathering-all/20573.jpg 7 | 2: /MagicTheGathering-all/18348.jpg 8 | 1: /MagicTheGathering-all/14822.jpg 9 | 1: /MagicTheGathering-all/5305.jpg 10 | 3: /MagicTheGathering-all/14565.jpg 11 | 3: /MagicTheGathering-all/18120.jpg 12 | 3: /MagicTheGathering-all/18294.jpg 13 | 4: /MagicTheGathering-all/12811.jpg 14 | 4: /MagicTheGathering-all/7046.jpg 15 | 3: /MagicTheGathering-all/17151.jpg 16 | 2: /MagicTheGathering-all/13831.jpg 17 | 4: /MagicTheGathering-all/22753.jpg 18 | 7: /MagicTheGathering-all/22686.jpg 19 | 2: /MagicTheGathering-all/22756.jpg 20 | 4: /MagicTheGathering-all/22699.jpg 21 | 3: /MagicTheGathering-all/6495.jpg 22 | 2: /MagicTheGathering-all/17325.jpg 23 | 3: /MagicTheGathering-all/20576.jpg 24 | 4: /MagicTheGathering-all/15671.jpg 25 | 2: /MagicTheGathering-all/22925.jpg 26 | p: graveyard 27 | p: exiled 28 | -------------------------------------------------------------------------------- /data/packages/magic/interesting1/rainbow/Dragons: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/17711.jpg 2 | 2: /MagicTheGathering-all/16936.jpg 3 | 2: /MagicTheGathering-all/14742.jpg 4 | 2: /MagicTheGathering-all/20997.jpg 5 | 2: /MagicTheGathering-all/17088.jpg 6 | 2: /MagicTheGathering-all/14622.jpg 7 | 4: /MagicTheGathering-all/18266.jpg 8 | 2: /MagicTheGathering-all/3423.jpg 9 | 1: /MagicTheGathering-all/17144.jpg 10 | 2: /MagicTheGathering-all/14822.jpg 11 | 2: /MagicTheGathering-all/14838.jpg 12 | 3: /MagicTheGathering-all/18037.jpg 13 | 4: /MagicTheGathering-all/20951.jpg 14 | 4: /MagicTheGathering-all/13744.jpg 15 | 4: /MagicTheGathering-all/21278.jpg 16 | 1: /MagicTheGathering-all/22678.jpg 17 | 4: /MagicTheGathering-all/17500.jpg 18 | 1: /MagicTheGathering-all/22682.jpg 19 | 4: /MagicTheGathering-all/17524.jpg 20 | 4: /MagicTheGathering-all/17532.jpg 21 | 2: /MagicTheGathering-all/22686.jpg 22 | 2: /MagicTheGathering-all/22691.jpg 23 | 2: /MagicTheGathering-all/22699.jpg 24 | 4: /MagicTheGathering-all/18186.jpg 25 | 3: /MagicTheGathering-all/21275.jpg 26 | 4: /MagicTheGathering-all/20988.jpg 27 | 4: /MagicTheGathering-all/22832.jpg 28 | p: graveyard 29 | p: exiled 30 | -------------------------------------------------------------------------------- /data/packages/magic/2004/white/The Way of the Warrior: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/11954.jpg 2 | 1: /MagicTheGathering-all/12004.jpg 3 | 4: /MagicTheGathering-all/12064.jpg 4 | 4: /MagicTheGathering-all/12076.jpg 5 | 1: /MagicTheGathering-all/12077.jpg 6 | 2: /MagicTheGathering-all/12105.jpg 7 | 4: /MagicTheGathering-all/12156.jpg 8 | 1: /MagicTheGathering-all/12159.jpg 9 | 1: /MagicTheGathering-all/12193.jpg 10 | 4: /MagicTheGathering-all/11959.jpg 11 | 4: /MagicTheGathering-all/12002.jpg 12 | 1: /MagicTheGathering-all/12075.jpg 13 | 1: /MagicTheGathering-all/12080.jpg 14 | 1: /MagicTheGathering-all/12115.jpg 15 | 1: /MagicTheGathering-all/12117.jpg 16 | 1: /MagicTheGathering-all/12194.jpg 17 | 1: /MagicTheGathering-all/12196.jpg 18 | 1: /MagicTheGathering-all/11985.jpg 19 | 8: /MagicTheGathering-all/22686.jpg 20 | 14: /MagicTheGathering-all/22691.jpg 21 | 1: /MagicTheGathering-all/12165.jpg 22 | 1: /MagicTheGathering-all/11986.jpg 23 | 1: /MagicTheGathering-all/11998.jpg 24 | 4: /MagicTheGathering-all/12050.jpg 25 | 4: /MagicTheGathering-all/12128.jpg 26 | 4: /MagicTheGathering-all/12143.jpg 27 | 1: /MagicTheGathering-all/12225.jpg 28 | p: graveyard 29 | p: exiled 30 | -------------------------------------------------------------------------------- /src/cardmanager/networking/NetworkGameProceeder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.networking; 7 | 8 | import cardmanager.impl.networking.JoinedPlayer; 9 | import java.util.Observable; 10 | 11 | /** 12 | * 13 | * @author Jirka 14 | */ 15 | public interface NetworkGameProceeder { 16 | 17 | public void shufflePile(String pile); 18 | public void serverName(String s, Observable o); 19 | public void allPlayersInOrder(String s, Observable o); 20 | 21 | public void ask(String s, Observable object); 22 | 23 | public void proceedMyPiles(String s); 24 | 25 | public void proceedNamesAllExceptMee(String s, Observable o); 26 | 27 | public void proceedNeedYourPiles(String whois,JoinedPlayer fromwho); 28 | 29 | public void proceedPlainText(String command, String s); 30 | 31 | public void proceedRename(String s, Observable o); 32 | 33 | public void proceedRenameBack(String s) ; 34 | 35 | public void proceedSharedContent(String s, Observable o); 36 | 37 | public void syncTable(String s,Observable o); 38 | } 39 | -------------------------------------------------------------------------------- /data/packages/magic/2012/rainbow/Aluren: -------------------------------------------------------------------------------- 1 | 1: /MagicTheGathering-all/7771.jpg 2 | 4: /MagicTheGathering-all/13841.jpg 3 | 2: /MagicTheGathering-all/14208.jpg 4 | 1: /MagicTheGathering-all/11774.jpg 5 | 4: /MagicTheGathering-all/476.jpg 6 | 1: /MagicTheGathering-all/16971.jpg 7 | 1: /MagicTheGathering-all/15014.jpg 8 | 4: /MagicTheGathering-all/5455.jpg 9 | 4: /MagicTheGathering-all/6445.jpg 10 | 4: /MagicTheGathering-all/10222.jpg 11 | 4: /MagicTheGathering-all/4146.jpg 12 | 4: /MagicTheGathering-all/20655.jpg 13 | 4: /MagicTheGathering-all/5593.jpg 14 | 1: /MagicTheGathering-all/13340.jpg 15 | 1: /MagicTheGathering-all/1342.jpg 16 | 2: /MagicTheGathering-all/22678.jpg 17 | 1: /MagicTheGathering-all/22682.jpg 18 | 4: /MagicTheGathering-all/17565.jpg 19 | 2: /MagicTheGathering-all/10484.jpg 20 | 1: /MagicTheGathering-all/1552.jpg 21 | 1: /MagicTheGathering-all/22699.jpg 22 | 1: /MagicTheGathering-all/1585.jpg 23 | 2: /MagicTheGathering-all/1595.jpg 24 | 1: /MagicTheGathering-all/1599.jpg 25 | 4: /MagicTheGathering-all/17663.jpg 26 | 1: /MagicTheGathering-all/5441.jpg 27 | 2: /MagicTheGathering-all/16215.jpg 28 | 2: /MagicTheGathering-all/15671.jpg 29 | p: graveyard 30 | p: exiled 31 | -------------------------------------------------------------------------------- /data/packages/magic/2006/white/Uw Tronair: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/10841.jpg 2 | 1: /MagicTheGathering-all/12091.jpg 3 | 1: /MagicTheGathering-all/11823.jpg 4 | 4: /MagicTheGathering-all/13827.jpg 5 | 2: /MagicTheGathering-all/11893.jpg 6 | 1: /MagicTheGathering-all/15089.jpg 7 | 2: /MagicTheGathering-all/10837.jpg 8 | 3: /MagicTheGathering-all/12001.jpg 9 | 3: /MagicTheGathering-all/2991.jpg 10 | 2: /MagicTheGathering-all/18564.jpg 11 | 3: /MagicTheGathering-all/13390.jpg 12 | 3: /MagicTheGathering-all/10445.jpg 13 | 3: /MagicTheGathering-all/13758.jpg 14 | 4: /MagicTheGathering-all/11376.jpg 15 | 4: /MagicTheGathering-all/15401.jpg 16 | 1: /MagicTheGathering-all/14150.jpg 17 | 4: /MagicTheGathering-all/13875.jpg 18 | 2: /MagicTheGathering-all/22682.jpg 19 | 1: /MagicTheGathering-all/9598.jpg 20 | 2: /MagicTheGathering-all/22691.jpg 21 | 4: /MagicTheGathering-all/12867.jpg 22 | 4: /MagicTheGathering-all/12868.jpg 23 | 4: /MagicTheGathering-all/12869.jpg 24 | 2: /MagicTheGathering-all/2820.jpg 25 | 4: /MagicTheGathering-all/18078.jpg 26 | 2: /MagicTheGathering-all/15291.jpg 27 | 4: /MagicTheGathering-all/11557.jpg 28 | 3: /MagicTheGathering-all/22925.jpg 29 | p: graveyard 30 | p: exiled 31 | -------------------------------------------------------------------------------- /src/cardmanager/impl/gui/CardInstanceViewForSelectComponent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.impl.gui; 7 | 8 | import cardmanager.impl.packages.CardDefinition; 9 | import cardmanager.impl.*; 10 | import cardmanager.FileBearer; 11 | import java.io.File; 12 | 13 | /** 14 | * 15 | * @author Jirka 16 | */ 17 | public class CardInstanceViewForSelectComponent implements FileBearer{ 18 | 19 | private CardDefinition card; 20 | 21 | public CardInstanceViewForSelectComponent(CardDefinition get) { 22 | this.card=get; 23 | } 24 | 25 | @Override 26 | public String toString() { 27 | return (spaceing(card.getName())+"("+card.getId()+")"); 28 | } 29 | 30 | public CardDefinition getCard() { 31 | return card; 32 | } 33 | 34 | 35 | 36 | public File getFile() { 37 | return card.getFile(); 38 | } 39 | 40 | private String spaceing(String name) { 41 | while(name.length()<20){ 42 | name=name+" "; 43 | } 44 | return name; 45 | } 46 | 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /data/packages/magic/2006/artifacts/ga: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/6209.jpg 2 | 2: /MagicTheGathering-all/11811.jpg 3 | 3: /MagicTheGathering-all/18214.jpg 4 | 4: /MagicTheGathering-all/13987.jpg 5 | 1: /MagicTheGathering-all/15069.jpg 6 | 2: /MagicTheGathering-all/11625.jpg 7 | 2: /MagicTheGathering-all/12620.jpg 8 | 1: /MagicTheGathering-all/6323.jpg 9 | 4: /MagicTheGathering-all/17271.jpg 10 | 3: /MagicTheGathering-all/14056.jpg 11 | 1: /MagicTheGathering-all/15191.jpg 12 | 3: /MagicTheGathering-all/11640.jpg 13 | 2: /MagicTheGathering-all/11271.jpg 14 | 1: /MagicTheGathering-all/1571.jpg 15 | 1: /MagicTheGathering-all/4236.jpg 16 | 1: /MagicTheGathering-all/11758.jpg 17 | 4: /MagicTheGathering-all/6260.jpg 18 | 1: /MagicTheGathering-all/18268.jpg 19 | 4: /MagicTheGathering-all/11586.jpg 20 | 2: /MagicTheGathering-all/9593.jpg 21 | 1: /MagicTheGathering-all/12488.jpg 22 | 1: /MagicTheGathering-all/7073.jpg 23 | 4: /MagicTheGathering-all/12867.jpg 24 | 4: /MagicTheGathering-all/12868.jpg 25 | 4: /MagicTheGathering-all/12869.jpg 26 | 3: /MagicTheGathering-all/22678.jpg 27 | 4: /MagicTheGathering-all/22682.jpg 28 | 4: /MagicTheGathering-all/22691.jpg 29 | 4: /MagicTheGathering-all/22699.jpg 30 | p: graveyard 31 | p: exiled 32 | -------------------------------------------------------------------------------- /data/packages/magic/interesting1/rainbow/Jund Dragons: -------------------------------------------------------------------------------- 1 | 3: /MagicTheGathering-all/21364.jpg 2 | 2: /MagicTheGathering-all/16656.jpg 3 | 2: /MagicTheGathering-all/17711.jpg 4 | 2: /MagicTheGathering-all/17235.jpg 5 | 1: /MagicTheGathering-all/20848.jpg 6 | 1: /MagicTheGathering-all/16724.jpg 7 | 4: /MagicTheGathering-all/17356.jpg 8 | 4: /MagicTheGathering-all/16844.jpg 9 | 1: /MagicTheGathering-all/14822.jpg 10 | 2: /MagicTheGathering-all/22690.jpg 11 | 4: /MagicTheGathering-all/16648.jpg 12 | 2: /MagicTheGathering-all/6495.jpg 13 | 4: /MagicTheGathering-all/16683.jpg 14 | 4: /MagicTheGathering-all/20441.jpg 15 | 4: /MagicTheGathering-all/18120.jpg 16 | 4: /MagicTheGathering-all/20457.jpg 17 | 2: /MagicTheGathering-all/15401.jpg 18 | 2: /MagicTheGathering-all/16883.jpg 19 | 4: /MagicTheGathering-all/16350.jpg 20 | 2: /MagicTheGathering-all/16981.jpg 21 | 4: /MagicTheGathering-all/16818.jpg 22 | 3: /MagicTheGathering-all/15683.jpg 23 | 3: /MagicTheGathering-all/15685.jpg 24 | 3: /MagicTheGathering-all/15686.jpg 25 | 2: /MagicTheGathering-all/15697.jpg 26 | 4: /MagicTheGathering-all/12651.jpg 27 | 2: /MagicTheGathering-all/16950.jpg 28 | 2: /MagicTheGathering-all/20588.jpg 29 | 2: /MagicTheGathering-all/16816.jpg 30 | p: graveyard 31 | p: exiled 32 | -------------------------------------------------------------------------------- /data/packages/magic/2004/blue/blue control: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/6947.jpg 2 | 4: /MagicTheGathering-all/6078.jpg 3 | 1: /MagicTheGathering-all/8973.jpg 4 | 3: /MagicTheGathering-all/6791.jpg 5 | 1: /MagicTheGathering-all/8989.jpg 6 | 3: /MagicTheGathering-all/11465.jpg 7 | 4: /MagicTheGathering-all/4146.jpg 8 | 4: /MagicTheGathering-all/5860.jpg 9 | 4: /MagicTheGathering-all/3951.jpg 10 | 4: /MagicTheGathering-all/21299.jpg 11 | 1: /MagicTheGathering-all/6609.jpg 12 | 1: /MagicTheGathering-all/9143.jpg 13 | 1: /MagicTheGathering-all/9144.jpg 14 | 1: /MagicTheGathering-all/9145.jpg 15 | 1: /MagicTheGathering-all/9146.jpg 16 | 1: /MagicTheGathering-all/9147.jpg 17 | 3: /MagicTheGathering-all/6223.jpg 18 | 1: /MagicTheGathering-all/1571.jpg 19 | 1: /MagicTheGathering-all/9231.jpg 20 | 3: /MagicTheGathering-all/10493.jpg 21 | 8: /MagicTheGathering-all/22682.jpg 22 | 1: /MagicTheGathering-all/3215.jpg 23 | 2: /MagicTheGathering-all/10484.jpg 24 | 1: /MagicTheGathering-all/1938.jpg 25 | 4: /MagicTheGathering-all/5789.jpg 26 | 2: /MagicTheGathering-all/1667.jpg 27 | 3: /MagicTheGathering-all/1697.jpg 28 | 4: /MagicTheGathering-all/6517.jpg 29 | 3: /MagicTheGathering-all/5675.jpg 30 | 3: /MagicTheGathering-all/11768.jpg 31 | p: graveyard 32 | p: exiled 33 | -------------------------------------------------------------------------------- /data/packages/magic/2003/green/Mai-Kai Wake: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/10659.jpg 2 | 2: /MagicTheGathering-all/9638.jpg 3 | 2: /MagicTheGathering-all/10328.jpg 4 | 4: /MagicTheGathering-all/9665.jpg 5 | 3: /MagicTheGathering-all/2860.jpg 6 | 4: /MagicTheGathering-all/10197.jpg 7 | 1: /MagicTheGathering-all/14617.jpg 8 | 2: /MagicTheGathering-all/10189.jpg 9 | 4: /MagicTheGathering-all/9526.jpg 10 | 2: /MagicTheGathering-all/9378.jpg 11 | 4: /MagicTheGathering-all/15368.jpg 12 | 4: /MagicTheGathering-all/15401.jpg 13 | 4: /MagicTheGathering-all/10493.jpg 14 | 5: /MagicTheGathering-all/22678.jpg 15 | 5: /MagicTheGathering-all/22682.jpg 16 | 4: /MagicTheGathering-all/10191.jpg 17 | 4: /MagicTheGathering-all/10487.jpg 18 | 3: /MagicTheGathering-all/22691.jpg 19 | 1: /MagicTheGathering-all/9602.jpg 20 | 1: /MagicTheGathering-all/9505.jpg 21 | 1: /MagicTheGathering-all/15062.jpg 22 | 3: /MagicTheGathering-all/2856.jpg 23 | 1: /MagicTheGathering-all/12631.jpg 24 | 1: /MagicTheGathering-all/10200.jpg 25 | 1: /MagicTheGathering-all/11042.jpg 26 | 1: /MagicTheGathering-all/10282.jpg 27 | 1: /MagicTheGathering-all/2984.jpg 28 | 1: /MagicTheGathering-all/3012.jpg 29 | 1: /MagicTheGathering-all/21938.jpg 30 | 1: /MagicTheGathering-all/10290.jpg 31 | p: graveyard 32 | p: exiled 33 | -------------------------------------------------------------------------------- /data/packages/magic/2003/rainbow/WG Battle Screech: -------------------------------------------------------------------------------- 1 | 3: /MagicTheGathering-all/2296.jpg 2 | 3: /MagicTheGathering-all/10187.jpg 3 | 3: /MagicTheGathering-all/9762.jpg 4 | 4: /MagicTheGathering-all/9624.jpg 5 | 4: /MagicTheGathering-all/21364.jpg 6 | 1: /MagicTheGathering-all/10387.jpg 7 | 3: /MagicTheGathering-all/10364.jpg 8 | 2: /MagicTheGathering-all/10659.jpg 9 | 3: /MagicTheGathering-all/9331.jpg 10 | 4: /MagicTheGathering-all/9558.jpg 11 | 1: /MagicTheGathering-all/14580.jpg 12 | 2: /MagicTheGathering-all/10284.jpg 13 | 1: /MagicTheGathering-all/22904.jpg 14 | 1: /MagicTheGathering-all/21938.jpg 15 | 1: /MagicTheGathering-all/10453.jpg 16 | 2: /MagicTheGathering-all/15064.jpg 17 | 7: /MagicTheGathering-all/22678.jpg 18 | 6: /MagicTheGathering-all/22691.jpg 19 | 3: /MagicTheGathering-all/9603.jpg 20 | 4: /MagicTheGathering-all/10475.jpg 21 | 1: /MagicTheGathering-all/15045.jpg 22 | 1: /MagicTheGathering-all/12599.jpg 23 | 2: /MagicTheGathering-all/10972.jpg 24 | 1: /MagicTheGathering-all/10974.jpg 25 | 4: /MagicTheGathering-all/10277.jpg 26 | 1: /MagicTheGathering-all/10163.jpg 27 | 1: /MagicTheGathering-all/22803.jpg 28 | 1: /MagicTheGathering-all/9546.jpg 29 | 2: /MagicTheGathering-all/12892.jpg 30 | 2: /MagicTheGathering-all/15401.jpg 31 | p: graveyard 32 | p: exiled 33 | -------------------------------------------------------------------------------- /src/cardmanager/gui/ViewPackagePanel.form: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | -------------------------------------------------------------------------------- /removeManifestEntries.patch: -------------------------------------------------------------------------------- 1 | --- nbproject/build-impl.xml 2 | +++ nbproject/build-impl.xml 3 | @@ -442,7 +442,7 @@ 4 | 5 | 6 | 7 | - 8 | + 9 | 10 | 11 | 12 | @@ -577,7 +577,7 @@ 13 | 14 | 15 | 16 | - 17 | + 18 | 19 | 20 | To run this application from the command line without Ant, try: 21 | -------------------------------------------------------------------------------- /data/packages/magic/2005/rainbow/Solar Flare: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/14557.jpg 2 | 3: /MagicTheGathering-all/13653.jpg 3 | 3: /MagicTheGathering-all/13843.jpg 4 | 1: /MagicTheGathering-all/13780.jpg 5 | 4: /MagicTheGathering-all/13827.jpg 6 | 1: /MagicTheGathering-all/13231.jpg 7 | 4: /MagicTheGathering-all/13233.jpg 8 | 2: /MagicTheGathering-all/13256.jpg 9 | 3: /MagicTheGathering-all/13733.jpg 10 | 3: /MagicTheGathering-all/12763.jpg 11 | 4: /MagicTheGathering-all/13390.jpg 12 | 1: /MagicTheGathering-all/15315.jpg 13 | 4: /MagicTheGathering-all/15401.jpg 14 | 3: /MagicTheGathering-all/12900.jpg 15 | 1: /MagicTheGathering-all/13822.jpg 16 | 3: /MagicTheGathering-all/14227.jpg 17 | 2: /MagicTheGathering-all/14244.jpg 18 | 4: /MagicTheGathering-all/13699.jpg 19 | 2: /MagicTheGathering-all/13875.jpg 20 | 2: /MagicTheGathering-all/22682.jpg 21 | 2: /MagicTheGathering-all/13740.jpg 22 | 1: /MagicTheGathering-all/22691.jpg 23 | 1: /MagicTheGathering-all/13915.jpg 24 | 3: /MagicTheGathering-all/22699.jpg 25 | 2: /MagicTheGathering-all/15379.jpg 26 | 3: /MagicTheGathering-all/18078.jpg 27 | 3: /MagicTheGathering-all/14580.jpg 28 | 1: /MagicTheGathering-all/13276.jpg 29 | 1: /MagicTheGathering-all/12704.jpg 30 | 2: /MagicTheGathering-all/13337.jpg 31 | 2: /MagicTheGathering-all/14632.jpg 32 | 2: /MagicTheGathering-all/22925.jpg 33 | p: graveyard 34 | p: exiled 35 | -------------------------------------------------------------------------------- /data/packages/magic/interesting1/white/angel: -------------------------------------------------------------------------------- 1 | 1: /MagicTheGathering-all/22223.jpg 2 | 1: /MagicTheGathering-all/22200.jpg 3 | 2: /MagicTheGathering-all/21364.jpg 4 | 1: /MagicTheGathering-all/22314.jpg 5 | 1: /MagicTheGathering-all/22291.jpg 6 | 1: /MagicTheGathering-all/22203.jpg 7 | 1: /MagicTheGathering-all/22213.jpg 8 | 2: /MagicTheGathering-all/22204.jpg 9 | 1: /MagicTheGathering-all/22344.jpg 10 | 1: /MagicTheGathering-all/18332.jpg 11 | 1: /MagicTheGathering-all/21693.jpg 12 | 1: /MagicTheGathering-all/20928.jpg 13 | 1: /MagicTheGathering-all/22313.jpg 14 | 3: /MagicTheGathering-all/21850.jpg 15 | 1: /MagicTheGathering-all/18454.jpg 16 | 1: /MagicTheGathering-all/22368.jpg 17 | 3: /MagicTheGathering-all/21299.jpg 18 | 2: /MagicTheGathering-all/21767.jpg 19 | 1: /MagicTheGathering-all/22828.jpg 20 | 4: /MagicTheGathering-all/22804.jpg 21 | 1: /MagicTheGathering-all/21350.jpg 22 | 2: /MagicTheGathering-all/18171.jpg 23 | 2: /MagicTheGathering-all/20750.jpg 24 | 1: /MagicTheGathering-all/22358.jpg 25 | 1: /MagicTheGathering-all/21545.jpg 26 | 4: /MagicTheGathering-all/22678.jpg 27 | 4: /MagicTheGathering-all/22755.jpg 28 | 4: /MagicTheGathering-all/22682.jpg 29 | 1: /MagicTheGathering-all/22686.jpg 30 | 7: /MagicTheGathering-all/22691.jpg 31 | 1: /MagicTheGathering-all/18451.jpg 32 | 2: /MagicTheGathering-all/22757.jpg 33 | p: graveyard 34 | p: exiled 35 | -------------------------------------------------------------------------------- /data/packages/magic/2004/rainbow/ToT: -------------------------------------------------------------------------------- 1 | 4: /MagicTheGathering-all/10237.jpg 2 | 4: /MagicTheGathering-all/11202.jpg 3 | 1: /MagicTheGathering-all/10277.jpg 4 | 4: /MagicTheGathering-all/6321.jpg 5 | 4: /MagicTheGathering-all/4158.jpg 6 | 4: /MagicTheGathering-all/18194.jpg 7 | 1: /MagicTheGathering-all/6928.jpg 8 | 1: /MagicTheGathering-all/6207.jpg 9 | 1: /MagicTheGathering-all/5906.jpg 10 | 1: /MagicTheGathering-all/15336.jpg 11 | 4: /MagicTheGathering-all/3322.jpg 12 | 4: /MagicTheGathering-all/18229.jpg 13 | 4: /MagicTheGathering-all/10214.jpg 14 | 1: /MagicTheGathering-all/8973.jpg 15 | 1: /MagicTheGathering-all/8989.jpg 16 | 1: /MagicTheGathering-all/6323.jpg 17 | 1: /MagicTheGathering-all/6341.jpg 18 | 1: /MagicTheGathering-all/9143.jpg 19 | 1: /MagicTheGathering-all/9144.jpg 20 | 1: /MagicTheGathering-all/9145.jpg 21 | 1: /MagicTheGathering-all/9146.jpg 22 | 1: /MagicTheGathering-all/9147.jpg 23 | 1: /MagicTheGathering-all/1571.jpg 24 | 4: /MagicTheGathering-all/4416.jpg 25 | 1: /MagicTheGathering-all/9231.jpg 26 | 1: /MagicTheGathering-all/6400.jpg 27 | 2: /MagicTheGathering-all/22678.jpg 28 | 4: /MagicTheGathering-all/3300.jpg 29 | 1: /MagicTheGathering-all/1938.jpg 30 | 4: /MagicTheGathering-all/1585.jpg 31 | 4: /MagicTheGathering-all/1595.jpg 32 | 3: /MagicTheGathering-all/5789.jpg 33 | 4: /MagicTheGathering-all/10473.jpg 34 | p: graveyard 35 | p: exiled 36 | -------------------------------------------------------------------------------- /data/packages/magic/interesting1/rainbow/Kaalia of the Angels: -------------------------------------------------------------------------------- 1 | 1: /MagicTheGathering-all/21285.jpg 2 | 1: /MagicTheGathering-all/14680.jpg 3 | 1: /MagicTheGathering-all/14557.jpg 4 | 1: /MagicTheGathering-all/13653.jpg 5 | 3: /MagicTheGathering-all/14844.jpg 6 | 3: /MagicTheGathering-all/18200.jpg 7 | 1: /MagicTheGathering-all/20859.jpg 8 | 1: /MagicTheGathering-all/17840.jpg 9 | 1: /MagicTheGathering-all/11093.jpg 10 | 1: /MagicTheGathering-all/13280.jpg 11 | 3: /MagicTheGathering-all/20997.jpg 12 | 1: /MagicTheGathering-all/5719.jpg 13 | 1: /MagicTheGathering-all/20866.jpg 14 | 4: /MagicTheGathering-all/9276.jpg 15 | 4: /MagicTheGathering-all/5977.jpg 16 | 3: /MagicTheGathering-all/13210.jpg 17 | 3: /MagicTheGathering-all/17208.jpg 18 | 3: /MagicTheGathering-all/15487.jpg 19 | 3: /MagicTheGathering-all/17551.jpg 20 | 3: /MagicTheGathering-all/13744.jpg 21 | 2: /MagicTheGathering-all/13931.jpg 22 | 1: /MagicTheGathering-all/11985.jpg 23 | 2: /MagicTheGathering-all/22686.jpg 24 | 3: /MagicTheGathering-all/22691.jpg 25 | 1: /MagicTheGathering-all/12165.jpg 26 | 1: /MagicTheGathering-all/12167.jpg 27 | 3: /MagicTheGathering-all/15648.jpg 28 | 1: /MagicTheGathering-all/13435.jpg 29 | 2: /MagicTheGathering-all/22699.jpg 30 | 2: /MagicTheGathering-all/15683.jpg 31 | 2: /MagicTheGathering-all/15686.jpg 32 | 2: /MagicTheGathering-all/15687.jpg 33 | p: graveyard 34 | p: exiled 35 | -------------------------------------------------------------------------------- /src/cardmanager/impl/networking/InputStreamReporter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.impl.networking; 7 | 8 | 9 | import java.io.FilterInputStream; 10 | import java.io.IOException; 11 | import java.io.InputStream; 12 | 13 | 14 | class InputStreamReporter 15 | extends FilterInputStream { 16 | 17 | // 18 | // Data 19 | // 20 | 21 | /** Total bytes read. */ 22 | private long fTotal; 23 | 24 | public InputStreamReporter(InputStream stream) { 25 | super(stream); 26 | } // (InputStream) 27 | 28 | // 29 | // InputStream methods 30 | // 31 | 32 | /** Reads a single byte. */ 33 | public int read() throws IOException { 34 | int b = super.in.read(); 35 | if (b == -1) { 36 | System.out.println("Client: Read "+fTotal+" byte(s) total."); 37 | return -1; 38 | } 39 | fTotal++; 40 | return b; 41 | } // read():int 42 | 43 | /** Reads a block of bytes. */ 44 | public int read(byte[] b, int offset, int length) 45 | throws IOException { 46 | int count = super.in.read(b, offset, length); 47 | if (count == -1) { 48 | System.out.println("Client: Read "+fTotal+" byte(s) total."); 49 | return -1; 50 | } 51 | fTotal += count; 52 | //if (Client.this.fVerbose) System.out.println("Client: Actually read "+count+" byte(s)."); 53 | return count; 54 | } // read(byte[],int,int):int 55 | 56 | } -------------------------------------------------------------------------------- /data/packages/magic/2006/rainbow/Angelfire: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/14678.jpg 2 | 4: /MagicTheGathering-all/13843.jpg 3 | 2: /MagicTheGathering-all/14702.jpg 4 | 3: /MagicTheGathering-all/13280.jpg 5 | 4: /MagicTheGathering-all/14612.jpg 6 | 4: /MagicTheGathering-all/13827.jpg 7 | 2: /MagicTheGathering-all/14867.jpg 8 | 4: /MagicTheGathering-all/13233.jpg 9 | 4: /MagicTheGathering-all/13342.jpg 10 | 2: /MagicTheGathering-all/15201.jpg 11 | 2: /MagicTheGathering-all/13390.jpg 12 | 4: /MagicTheGathering-all/15401.jpg 13 | 3: /MagicTheGathering-all/13207.jpg 14 | 1: /MagicTheGathering-all/14227.jpg 15 | 2: /MagicTheGathering-all/13875.jpg 16 | 3: /MagicTheGathering-all/22682.jpg 17 | 1: /MagicTheGathering-all/13716.jpg 18 | 1: /MagicTheGathering-all/14950.jpg 19 | 2: /MagicTheGathering-all/22691.jpg 20 | 3: /MagicTheGathering-all/13397.jpg 21 | 2: /MagicTheGathering-all/15311.jpg 22 | 2: /MagicTheGathering-all/13787.jpg 23 | 1: /MagicTheGathering-all/13435.jpg 24 | 1: /MagicTheGathering-all/15008.jpg 25 | 1: /MagicTheGathering-all/14414.jpg 26 | 3: /MagicTheGathering-all/14710.jpg 27 | 1: /MagicTheGathering-all/14912.jpg 28 | 2: /MagicTheGathering-all/14755.jpg 29 | 1: /MagicTheGathering-all/14334.jpg 30 | 2: /MagicTheGathering-all/18294.jpg 31 | 2: /MagicTheGathering-all/14962.jpg 32 | 1: /MagicTheGathering-all/14339.jpg 33 | 1: /MagicTheGathering-all/15003.jpg 34 | 2: /MagicTheGathering-all/22925.jpg 35 | p: graveyard 36 | p: exiled 37 | -------------------------------------------------------------------------------- /data/packages/magic/2006/rainbow/elemental 2.5: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/15451.jpg 2 | 1: /MagicTheGathering-all/15464.jpg 3 | 2: /MagicTheGathering-all/15492.jpg 4 | 4: /MagicTheGathering-all/15494.jpg 5 | 1: /MagicTheGathering-all/15530.jpg 6 | 3: /MagicTheGathering-all/15539.jpg 7 | 3: /MagicTheGathering-all/15591.jpg 8 | 3: /MagicTheGathering-all/15601.jpg 9 | 2: /MagicTheGathering-all/15620.jpg 10 | 3: /MagicTheGathering-all/15638.jpg 11 | 4: /MagicTheGathering-all/15642.jpg 12 | 2: /MagicTheGathering-all/15682.jpg 13 | 3: /MagicTheGathering-all/18224.jpg 14 | 4: /MagicTheGathering-all/15488.jpg 15 | 1: /MagicTheGathering-all/15150.jpg 16 | 2: /MagicTheGathering-all/15651.jpg 17 | 1: /MagicTheGathering-all/15050.jpg 18 | 1: /MagicTheGathering-all/15067.jpg 19 | 2: /MagicTheGathering-all/22678.jpg 20 | 3: /MagicTheGathering-all/14598.jpg 21 | 2: /MagicTheGathering-all/22682.jpg 22 | 2: /MagicTheGathering-all/22686.jpg 23 | 2: /MagicTheGathering-all/22691.jpg 24 | 1: /MagicTheGathering-all/15346.jpg 25 | 2: /MagicTheGathering-all/22699.jpg 26 | 1: /MagicTheGathering-all/15683.jpg 27 | 1: /MagicTheGathering-all/15685.jpg 28 | 3: /MagicTheGathering-all/15686.jpg 29 | 1: /MagicTheGathering-all/15403.jpg 30 | 2: /MagicTheGathering-all/15459.jpg 31 | 3: /MagicTheGathering-all/15139.jpg 32 | 3: /MagicTheGathering-all/15542.jpg 33 | 3: /MagicTheGathering-all/15589.jpg 34 | 2: /MagicTheGathering-all/15699.jpg 35 | p: graveyard 36 | p: exiled 37 | -------------------------------------------------------------------------------- /data/packages/magic/interesting1/black/Dragon deck: -------------------------------------------------------------------------------- 1 | 1: /MagicTheGathering-all/10822.jpg 2 | 2: /MagicTheGathering-all/10881.jpg 3 | 1: /MagicTheGathering-all/13250.jpg 4 | 1: /MagicTheGathering-all/22874.jpg 5 | 2: /MagicTheGathering-all/13323.jpg 6 | 1: /MagicTheGathering-all/13737.jpg 7 | 1: /MagicTheGathering-all/13929.jpg 8 | 1: /MagicTheGathering-all/14100.jpg 9 | 1: /MagicTheGathering-all/12152.jpg 10 | 1: /MagicTheGathering-all/14349.jpg 11 | 3: /MagicTheGathering-all/17354.jpg 12 | 1: /MagicTheGathering-all/14149.jpg 13 | 2: /MagicTheGathering-all/6841.jpg 14 | 3: /MagicTheGathering-all/13291.jpg 15 | 3: /MagicTheGathering-all/14284.jpg 16 | 1: /MagicTheGathering-all/14323.jpg 17 | 4: /MagicTheGathering-all/13939.jpg 18 | 3: /MagicTheGathering-all/12811.jpg 19 | 1: /MagicTheGathering-all/13426.jpg 20 | 4: /MagicTheGathering-all/11561.jpg 21 | 1: /MagicTheGathering-all/13446.jpg 22 | 2: /MagicTheGathering-all/6267.jpg 23 | 2: /MagicTheGathering-all/14010.jpg 24 | 1: /MagicTheGathering-all/11282.jpg 25 | 2: /MagicTheGathering-all/13249.jpg 26 | 2: /MagicTheGathering-all/22753.jpg 27 | 2: /MagicTheGathering-all/13716.jpg 28 | 2: /MagicTheGathering-all/14115.jpg 29 | 2: /MagicTheGathering-all/14116.jpg 30 | 1: /MagicTheGathering-all/14117.jpg 31 | 2: /MagicTheGathering-all/14118.jpg 32 | 2: /MagicTheGathering-all/18306.jpg 33 | 2: /MagicTheGathering-all/14138.jpg 34 | 15: /MagicTheGathering-all/22699.jpg 35 | p: graveyard 36 | p: exiled 37 | -------------------------------------------------------------------------------- /src/cardmanager/gui/JListScroller.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.gui; 7 | 8 | import cardmanager.impl.Settings; 9 | import javax.swing.JList; 10 | import javax.swing.JScrollPane; 11 | 12 | /** 13 | * 14 | * @author Jirka 15 | */ 16 | public class JListScroller extends Thread{ 17 | JScrollPane scrolled; 18 | Settings settings; 19 | private JList list; 20 | 21 | 22 | 23 | 24 | 25 | public JListScroller(JScrollPane jScrollPane1, Settings settings, JList jList1) { 26 | this.scrolled = jScrollPane1; 27 | this.settings = settings; 28 | this.list=jList1; 29 | this.start(); 30 | } 31 | 32 | 33 | 34 | 35 | 36 | 37 | @Override 38 | public void run() { 39 | while(true){ 40 | try{ 41 | Thread.sleep(500); 42 | if (settings.getAutoScroll()){ 43 | // if (list.getModel()==null) continue; 44 | // if (list.getModel().getSize()<=1) continue; 45 | // list.setSelectedValue(list.getModel().getElementAt(list.getModel().getSize()-1), true); 46 | scrolled.getVerticalScrollBar().setValue(Integer.MAX_VALUE); 47 | } 48 | }catch(Throwable t){ 49 | t.printStackTrace(); 50 | } 51 | } 52 | } 53 | 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/cardmanager/impl/NetworkLogger.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.impl; 7 | 8 | import cardmanager.networking.NetworkGame; 9 | import java.util.Observable; 10 | 11 | /** 12 | * 13 | * @author Jirka 14 | */ 15 | public class NetworkLogger extends Observable{ 16 | private Settings settings; 17 | private NetworkGame networkGame; 18 | 19 | public NetworkLogger(Settings settings) { 20 | this.settings=settings; 21 | settings.getTemp().setLoger(this); 22 | } 23 | 24 | @Override 25 | public void notifyObservers(Object arg) { 26 | setChanged(); 27 | super.notifyObservers(arg); 28 | 29 | } 30 | 31 | public void renamedPlayer(String from, String to) { 32 | if (networkGame==null){ 33 | writeLocalMessage(from+" have changed name to "+to); 34 | }else{ 35 | networkGame.renamePlayer(from, to); 36 | } 37 | } 38 | 39 | public void setNetwork(NetworkGame result) { 40 | this.networkGame=result; 41 | } 42 | 43 | public void writeLocalMessage(String s){ 44 | notifyObservers(s); 45 | } 46 | 47 | public void writeSharedMessage(String s){ 48 | if (networkGame==null){ 49 | notifyObservers(settings.getName()+": "+s); 50 | }else { 51 | networkGame.messageToServerForAll(s);; 52 | } 53 | } 54 | 55 | 56 | 57 | } 58 | -------------------------------------------------------------------------------- /license.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2008 Jiri Vanek 2 | 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without modification, 6 | are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, this 9 | list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | * Neither the name of the nor the names of its contributors 14 | may be used to endorse or promote products derived from this software 15 | without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ''AS IS'' AND ANY 18 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY 21 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 24 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | -------------------------------------------------------------------------------- /src/cardmanager/gui/impl/HandComponent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.gui.impl; 7 | 8 | 9 | import cardmanager.impl.Settings; 10 | import cardmanager.impl.card.Card; 11 | import cardmanager.impl.packages.Package; 12 | import java.awt.GridLayout; 13 | import java.util.List; 14 | import java.util.Observable; 15 | import java.util.Observer; 16 | import javax.swing.JPanel; 17 | 18 | /** 19 | * 20 | * @author Jirka 21 | */ 22 | public class HandComponent extends JPanel implements Observer { 23 | cardmanager.impl.packages.Package backend; 24 | private Settings settings; 25 | 26 | public HandComponent(Settings s) { 27 | this.backend = s.getTemp().getPackage(); 28 | settings=s; 29 | if (backend instanceof Observable){ 30 | ((Observable)backend).addObserver(this); 31 | } 32 | setLayout(new GridLayout(1, backend.getHand().size())); 33 | update(null, null); 34 | } 35 | 36 | public Package getBackend() { 37 | return backend; 38 | } 39 | 40 | 41 | 42 | public void update(Observable o, Object arg) { 43 | removeAll(); 44 | List l = backend.getHand(); 45 | setLayout(new GridLayout(1, l.size())); 46 | for (int i = 0; i < l.size(); i++) { 47 | Card card = l.get(i); 48 | this.add(new SimpleCardComponent(settings, card)); 49 | 50 | } 51 | validate(); 52 | repaint(); 53 | 54 | 55 | } 56 | 57 | 58 | 59 | } 60 | -------------------------------------------------------------------------------- /data/packages/magic/interesting1/white/AllAngels: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/21285.jpg 2 | 1: /MagicTheGathering-all/11606.jpg 3 | 1: /MagicTheGathering-all/18161.jpg 4 | 2: /MagicTheGathering-all/20885.jpg 5 | 1: /MagicTheGathering-all/20609.jpg 6 | 3: /MagicTheGathering-all/20925.jpg 7 | 2: /MagicTheGathering-all/20926.jpg 8 | 1: /MagicTheGathering-all/21270.jpg 9 | 1: /MagicTheGathering-all/13280.jpg 10 | 1: /MagicTheGathering-all/21755.jpg 11 | 1: /MagicTheGathering-all/17501.jpg 12 | 1: /MagicTheGathering-all/20903.jpg 13 | 2: /MagicTheGathering-all/20930.jpg 14 | 1: /MagicTheGathering-all/20664.jpg 15 | 1: /MagicTheGathering-all/20909.jpg 16 | 2: /MagicTheGathering-all/18214.jpg 17 | 1: /MagicTheGathering-all/20911.jpg 18 | 1: /MagicTheGathering-all/22761.jpg 19 | 1: /MagicTheGathering-all/21774.jpg 20 | 1: /MagicTheGathering-all/21780.jpg 21 | 1: /MagicTheGathering-all/18140.jpg 22 | 1: /MagicTheGathering-all/21757.jpg 23 | 2: /MagicTheGathering-all/22795.jpg 24 | 1: /MagicTheGathering-all/14253.jpg 25 | 1: /MagicTheGathering-all/20931.jpg 26 | 1: /MagicTheGathering-all/21768.jpg 27 | 1: /MagicTheGathering-all/22904.jpg 28 | 1: /MagicTheGathering-all/16778.jpg 29 | 1: /MagicTheGathering-all/20566.jpg 30 | 1: /MagicTheGathering-all/21775.jpg 31 | 2: /MagicTheGathering-all/20914.jpg 32 | 1: /MagicTheGathering-all/20915.jpg 33 | 1: /MagicTheGathering-all/22678.jpg 34 | 1: /MagicTheGathering-all/17500.jpg 35 | 2: /MagicTheGathering-all/16741.jpg 36 | 13: /MagicTheGathering-all/22691.jpg 37 | 1: /MagicTheGathering-all/21886.jpg 38 | 1: /MagicTheGathering-all/13468.jpg 39 | p: graveyard 40 | p: exiled 41 | -------------------------------------------------------------------------------- /data/packages/fullCanasta: -------------------------------------------------------------------------------- 1 | 2: /classicCards/1.png 2 | 2: /classicCards/3.png 3 | 2: /classicCards/4.png 4 | 2: /classicCards/5.png 5 | 2: /classicCards/6.png 6 | 2: /classicCards/7.png 7 | 2: /classicCards/8.png 8 | 2: /classicCards/9.png 9 | 2: /classicCards/10.png 10 | 2: /classicCards/11.png 11 | 2: /classicCards/12.png 12 | 2: /classicCards/13.png 13 | 2: /classicCards/14.png 14 | 2: /classicCards/15.png 15 | 2: /classicCards/16.png 16 | 2: /classicCards/17.png 17 | 2: /classicCards/18.png 18 | 2: /classicCards/19.png 19 | 2: /classicCards/20.png 20 | 2: /classicCards/21.png 21 | 2: /classicCards/22.png 22 | 2: /classicCards/23.png 23 | 2: /classicCards/24.png 24 | 2: /classicCards/25.png 25 | 2: /classicCards/26.png 26 | 2: /classicCards/27.png 27 | 2: /classicCards/28.png 28 | 2: /classicCards/29.png 29 | 2: /classicCards/30.png 30 | 2: /classicCards/31.png 31 | 2: /classicCards/32.png 32 | 2: /classicCards/33.png 33 | 2: /classicCards/34.png 34 | 2: /classicCards/35.png 35 | 2: /classicCards/36.png 36 | 2: /classicCards/37.png 37 | 2: /classicCards/38.png 38 | 2: /classicCards/39.png 39 | 2: /classicCards/40.png 40 | 2: /classicCards/41.png 41 | 2: /classicCards/42.png 42 | 2: /classicCards/43.png 43 | 2: /classicCards/44.png 44 | 2: /classicCards/45.png 45 | 2: /classicCards/46.png 46 | 2: /classicCards/47.png 47 | 2: /classicCards/48.png 48 | 2: /classicCards/49.png 49 | 2: /classicCards/50.png 50 | 2: /classicCards/51.png 51 | 2: /classicCards/52.png 52 | 2: /classicCards/53.png 53 | 2: /classicCards/54.png 54 | 1: /classicCards/bonus/bsd-daemon-ace-of-spades.png 55 | 1: /classicCards/bonus/penguin-ace-of-spades.png 56 | -------------------------------------------------------------------------------- /FedoraLauncher.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | . /usr/share/java-utils/java-functions 3 | 4 | MAIN_CLASS=cardmanager.gui.PlayTable 5 | 6 | set_classpath "CardManager" 7 | 8 | mem=`free -mt | tail -n1 | sed 's/ */ /g' | cut -d ' ' -f 2`; 9 | let "mem=$mem/3*2" 10 | r=`let "mem=$mem/3*2" 2>&1`; 11 | echo $mem 12 | echo "$r" | r=`sed 's/ */ /g'` 13 | echo $r 14 | 15 | DATA=data 16 | BGS=backgrounds 17 | CLS=collection 18 | CLASS=classicCards 19 | PKGS=packages 20 | NOIMAGE=noimage.jpg 21 | CM=CardManager 22 | BG1=b1fv.png 23 | BG2=b2fv.png 24 | P1=clasic32 25 | P2=fullCanasta 26 | 27 | USER_DIR=~/$CM 28 | UDATA_DIR=$USER_DIR/$DATA 29 | 30 | INSTALL_DIR=/usr/share/$CM/ 31 | IDATA_DIR=$INSTALL_DIR/$DATA 32 | 33 | if [ -f $USER_DIR ] ; then 34 | echo "This applicatio needs directory $USER_DIR but it exists and is file. Application can not continue"; 35 | exit 5; 36 | fi 37 | if [ -d $USER_DIR ] ; then 38 | echo "$USER_DIR already exists, using" 39 | else 40 | mkdir $USER_DIR 41 | mkdir $UDATA_DIR 42 | mkdir $UDATA_DIR/$BGS 43 | mkdir $UDATA_DIR/$PKGS 44 | mkdir $USER_DIR/$CLS 45 | 46 | ln -s $IDATA_DIR/$NOIMAGE $UDATA_DIR/$NOIMAGE 47 | ln -s $INSTALL_DIR/$CLS/$CLASS $USER_DIR/$CLS/$CLASS 48 | ln -s $IDATA_DIR/$PKGS/$P1 $UDATA_DIR/$PKGS/$P1 49 | ln -s $IDATA_DIR/$PKGS/$P2 $UDATA_DIR/$PKGS/$P2 50 | 51 | ln -s $IDATA_DIR/$BGS/$BG1 $UDATA_DIR/$BGS/$BG1 52 | ln -s $IDATA_DIR/$BGS/$BG2 $UDATA_DIR/$BGS/$BG2 53 | fi; 54 | 55 | pushd $USER_DIR 56 | 57 | if [ "$r" = "" ] ; then 58 | FLAGS=$FLAGS" -Xmx$mem""M" 59 | echo "executing with -Xmx$mem""M" 60 | run "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9" 61 | else 62 | echo "executing without -Xmx!" 63 | run "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9" 64 | fi 65 | 66 | popd 67 | 68 | -------------------------------------------------------------------------------- /src/cardmanager/gui/CollectionView.form: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | -------------------------------------------------------------------------------- /src/cardmanager/gui/SelectcardDialog.form: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | -------------------------------------------------------------------------------- /src/cardmanager/gui/impl/Popupizer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.gui.impl; 7 | 8 | import java.awt.event.ActionEvent; 9 | import java.awt.event.KeyEvent; 10 | import javax.accessibility.Accessible; 11 | import javax.swing.JComponent; 12 | import javax.swing.JMenu; 13 | import javax.swing.JMenuItem; 14 | import javax.swing.JPopupMenu; 15 | import javax.swing.KeyStroke; 16 | import javax.swing.MenuElement; 17 | 18 | /** 19 | * 20 | * @author Jirka 21 | */ 22 | public class Popupizer { 23 | 24 | int id; 25 | 26 | public Popupizer() { 27 | id=1; 28 | 29 | } 30 | public Popupizer(int i) { 31 | id=i; 32 | 33 | } 34 | 35 | public int getKeyEvent(){ 36 | return getKeyEvent(id); 37 | } 38 | public int getKeyEvent(int i){ 39 | switch (i){ 40 | case 0: return KeyEvent.VK_0; 41 | case 1: return KeyEvent.VK_1; 42 | case 2: return KeyEvent.VK_2; 43 | case 3: return KeyEvent.VK_3; 44 | case 4: return KeyEvent.VK_4; 45 | case 5: return KeyEvent.VK_5; 46 | case 6: return KeyEvent.VK_6; 47 | case 7: return KeyEvent.VK_7; 48 | case 8: return KeyEvent.VK_8; 49 | case 9: return KeyEvent.VK_9; 50 | 51 | default: throw new IllegalArgumentException("Int i must be 0-9 includedt. Isnt: "+i); 52 | } 53 | 54 | } 55 | public void addAndInc(JMenuItem j){ 56 | j.setMnemonic(getKeyEvent()); 57 | j.setText(id+" "+j.getText()); 58 | //Setting the accelerator: 59 | if (!(j instanceof JMenu)) { 60 | j.setAccelerator(KeyStroke.getKeyStroke( 61 | getKeyEvent(), ActionEvent.ALT_MASK)); 62 | } 63 | id++; 64 | if (id>9)id=0; 65 | } 66 | 67 | 68 | 69 | 70 | } 71 | -------------------------------------------------------------------------------- /data/packages/magic/2012/rainbow/awq: -------------------------------------------------------------------------------- 1 | 1: /MagicTheGathering-all/21690.jpg 2 | 1: /MagicTheGathering-all/17185.jpg 3 | 1: /MagicTheGathering-all/21519.jpg 4 | 1: /MagicTheGathering-all/6457.jpg 5 | 1: /MagicTheGathering-all/21738.jpg 6 | 1: /MagicTheGathering-all/6159.jpg 7 | 2: /MagicTheGathering-all/21517.jpg 8 | 2: /MagicTheGathering-all/21556.jpg 9 | 1: /MagicTheGathering-all/21755.jpg 10 | 1: /MagicTheGathering-all/2588.jpg 11 | 1: /MagicTheGathering-all/21736.jpg 12 | 1: /MagicTheGathering-all/21683.jpg 13 | 1: /MagicTheGathering-all/21714.jpg 14 | 1: /MagicTheGathering-all/21529.jpg 15 | 1: /MagicTheGathering-all/21877.jpg 16 | 1: /MagicTheGathering-all/10601.jpg 17 | 1: /MagicTheGathering-all/21861.jpg 18 | 1: /MagicTheGathering-all/2281.jpg 19 | 1: /MagicTheGathering-all/7208.jpg 20 | 1: /MagicTheGathering-all/21740.jpg 21 | 1: /MagicTheGathering-all/21747.jpg 22 | 1: /MagicTheGathering-all/21785.jpg 23 | 1: /MagicTheGathering-all/21751.jpg 24 | 1: /MagicTheGathering-all/21692.jpg 25 | 1: /MagicTheGathering-all/21688.jpg 26 | 1: /MagicTheGathering-all/21856.jpg 27 | 1: /MagicTheGathering-all/21837.jpg 28 | 1: /MagicTheGathering-all/18493.jpg 29 | 2: /MagicTheGathering-all/21880.jpg 30 | 1: /MagicTheGathering-all/21821.jpg 31 | 1: /MagicTheGathering-all/20463.jpg 32 | 1: /MagicTheGathering-all/21885.jpg 33 | 1: /MagicTheGathering-all/11679.jpg 34 | 4: /MagicTheGathering-all/21312.jpg 35 | 4: /MagicTheGathering-all/21546.jpg 36 | 4: /MagicTheGathering-all/21315.jpg 37 | 4: /MagicTheGathering-all/21545.jpg 38 | 4: /MagicTheGathering-all/21547.jpg 39 | 4: /MagicTheGathering-all/16818.jpg 40 | 4: /MagicTheGathering-all/18438.jpg 41 | 4: /MagicTheGathering-all/13475.jpg 42 | 4: /MagicTheGathering-all/22755.jpg 43 | 4: /MagicTheGathering-all/22754.jpg 44 | 4: /MagicTheGathering-all/18450.jpg 45 | 4: /MagicTheGathering-all/21720.jpg 46 | 4: /MagicTheGathering-all/18451.jpg 47 | p: graveyard 48 | p: exiled 49 | -------------------------------------------------------------------------------- /src/cardmanager/ExtractCards.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager; 7 | 8 | import java.awt.image.BufferedImage; 9 | import java.io.File; 10 | import java.io.IOException; 11 | import javax.imageio.ImageIO; 12 | 13 | /** 14 | * 15 | * @author Jirka 16 | */ 17 | public class ExtractCards { 18 | 19 | /** 20 | * @param args the command line arguments 21 | */ 22 | public static void main(String[] args) throws IOException { 23 | File todo=new File("./collection/todo/3x3"); 24 | File output=new File("C:\\todoed/"); 25 | output.mkdir(); 26 | File[] jpgs=todo.listFiles(); 27 | int counter=0; 28 | for (int i = 0; i < jpgs.length; i++) { 29 | File file = jpgs[i]; 30 | System.out.println("read "+ file.toString() ); 31 | BufferedImage im=ImageIO.read(file); 32 | int w=im.getWidth(); 33 | int h=im.getHeight()-120; 34 | int ws=w/3; 35 | int hs=h/3; 36 | for (int x=0;x<3;x++) 37 | for (int y=0;y<3;y++){ 38 | counter++; 39 | BufferedImage cu=new BufferedImage(ws, hs, im.getType()); 40 | cu.createGraphics().drawImage(im.getSubimage(x*ws,y*hs,ws,hs),0,0,null); 41 | File f=new File(output,nuluj(counter)+".jpg"); 42 | System.out.println("write"+ f.toString() ); 43 | ImageIO.write(cu, "jpg", f); 44 | 45 | } 46 | 47 | 48 | 49 | 50 | } 51 | 52 | 53 | } 54 | 55 | private static String nuluj(int counter) { 56 | String s=String.valueOf(counter); 57 | while (s.length()<5){ 58 | s="0"+s; 59 | } 60 | return "BaseSet-"+s; 61 | 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/cardmanager/impl/packages/CountedCard.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.impl.packages; 7 | 8 | import cardmanager.impl.*; 9 | import cardmanager.FileBearer; 10 | import java.io.File; 11 | 12 | /** 13 | * 14 | * @author Jirka 15 | */ 16 | public class CountedCard implements FileBearer{ 17 | CardDefinition card; 18 | Integer count=1; 19 | 20 | @Override 21 | public String toString() { 22 | return card.getName()+" ("+count.toString()+")"; 23 | } 24 | 25 | @Override 26 | public boolean equals(Object obj) { 27 | if (obj instanceof CardDefinition) return card.equals(obj); 28 | if (obj instanceof CountedCard) return card.equals(((CountedCard)obj).getCard()); 29 | return false; 30 | 31 | } 32 | 33 | @Override 34 | public int hashCode() { 35 | return card.hashCode(); 36 | } 37 | 38 | 39 | public CountedCard(CardDefinition card) { 40 | this.card = card; 41 | } 42 | 43 | public CountedCard(CardDefinition card,Integer count) { 44 | this.card = card; 45 | setCount(count); 46 | } 47 | 48 | public void setCount(Integer count){ 49 | if (count.intValue()<=0) { 50 | throw new CardsUnderOneException("Count cant be less then 1!"); 51 | } 52 | this.count = count; 53 | 54 | } 55 | 56 | public Integer getCount() { 57 | return count; 58 | } 59 | 60 | 61 | 62 | 63 | public CardDefinition getCard() { 64 | return card; 65 | } 66 | 67 | public File getFile() { 68 | return card.getFile(); 69 | } 70 | 71 | 72 | 73 | private class CardsUnderOneException extends RuntimeException{ 74 | 75 | public CardsUnderOneException(String string) { 76 | super(string); 77 | } 78 | 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /src/cardmanager/impl/packages/PackageVerifikationResult.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.impl.packages; 7 | 8 | import cardmanager.impl.*; 9 | import java.util.HashMap; 10 | import java.util.Map; 11 | 12 | /** 13 | * 14 | * @author Jirka 15 | */ 16 | public class PackageVerifikationResult { 17 | 18 | public int duplicated=0; 19 | public int maxoccurence=0; 20 | public int underOne=0; 21 | public int total=0; 22 | public int piles=0; 23 | public int defs=0; 24 | public PackageVerifikationResult( PackageDeffinition d) { 25 | Map m=new HashMap(d.getCards().size()); 26 | 27 | 28 | for (CountedCard cd : d.getCards()) { 29 | Integer was=m.put(cd, new Integer(1)); 30 | if (cd.getCount().intValue()<1) underOne++; 31 | if (cd.getCount().intValue()>maxoccurence) maxoccurence=cd.getCount().intValue(); 32 | total+=cd.getCount().intValue(); 33 | defs++; 34 | if (was!=null) duplicated++; 35 | } 36 | piles=d.getPiles().size(); 37 | 38 | 39 | } 40 | 41 | 42 | public String saySentence(){ 43 | String sentence="Seams ok! "; 44 | if (isCheated()) sentence="Cheated! :"; 45 | return sentence+" total:"+total+", definitions: "+defs+", max. occurence:"+maxoccurence+", piles:"+piles+", duplcate defs.:"+duplicated+", under one:"+underOne; 46 | 47 | } 48 | 49 | public boolean isCheated(){ 50 | return (duplicated !=0 || underOne!=0); 51 | } 52 | 53 | 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/cardmanager/popuppokus.form: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 |
38 | -------------------------------------------------------------------------------- /src/cardmanager/networking/NetworkGame.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.networking; 7 | 8 | import cardmanager.impl.card.Card; 9 | 10 | 11 | /** 12 | * 13 | * @author Jirka 14 | */ 15 | public interface NetworkGame { 16 | 17 | 18 | public static final String plainTextForAll= "plainTextForAll"; 19 | public static final String renameBack= "renameBack"; 20 | public static final String renamed= "renamed"; 21 | public static final String sharedContent= "sharedContent"; 22 | public static final String namesAllExceptMee ="namesAllExceptMee"; 23 | public static final String allPlayersInOrder ="allPlayersInOrder"; 24 | public static final String needYourPiles ="needYourPiles"; 25 | public static final String myPiles ="myPiles"; 26 | public static final String syncing ="syncing"; 27 | public static final String serverName ="serverName"; 28 | public static final String shuffle ="shuffle"; 29 | public static final String ask ="ask"; 30 | ///ask subtasks 31 | public static final String LIST ="LIST"; 32 | public static final String FROMTOP ="FROMTOP"; 33 | public static final String STEAL ="STEAL"; 34 | public static final String RESPONSE ="RESPONSE"; 35 | ///ask subtasks end 36 | 37 | public Card[] askCards(String nameFrom,String nameTo, String pile,String reqest,String context); 38 | public void replyCards(String nameFrom,String nameTo, String pile,String reqest,String context); 39 | 40 | public String getServerName(); 41 | public String[] getPlayersExceptMe(); 42 | public String[] getPlayersInOrder(); 43 | public String[] getPlayerPiles(String playerName); 44 | 45 | public void messageToServerForAll(String string); 46 | public void renamePlayer(String from,String to); 47 | public void shufflePile(String pile); 48 | 49 | public void sendSharedContent(String s); 50 | 51 | public void syncTable(String createSentence); 52 | public void closeAll(); 53 | 54 | 55 | } 56 | -------------------------------------------------------------------------------- /nbproject/project.properties: -------------------------------------------------------------------------------- 1 | application.title=CardManager 2 | application.vendor=Jirka 3 | build.classes.dir=${build.dir}/classes 4 | build.classes.excludes=**/*.java,**/*.form 5 | # This directory is removed when the project is cleaned: 6 | build.dir=build 7 | build.generated.dir=${build.dir}/generated 8 | build.generated.sources.dir=${build.dir}/generated-sources 9 | # Only compile against the classpath explicitly listed here: 10 | build.sysclasspath=ignore 11 | build.test.classes.dir=${build.dir}/test/classes 12 | build.test.results.dir=${build.dir}/test/results 13 | # Uncomment to specify the preferred debugger connection transport: 14 | #debug.transport=dt_socket 15 | debug.classpath=\ 16 | ${run.classpath} 17 | debug.test.classpath=\ 18 | ${run.test.classpath} 19 | # This directory is removed when the project is cleaned: 20 | dist.dir=dist 21 | dist.jar=${dist.dir}/CardManager.jar 22 | dist.javadoc.dir=${dist.dir}/javadoc 23 | excludes= 24 | includes=** 25 | jar.compress=false 26 | javac.classpath= 27 | # Space-separated list of extra javac options 28 | javac.compilerargs= 29 | javac.deprecation=false 30 | javac.source=1.5 31 | javac.target=1.5 32 | javac.test.classpath=\ 33 | ${javac.classpath}:\ 34 | ${build.classes.dir}:\ 35 | ${libs.junit.classpath}:\ 36 | ${libs.junit_4.classpath} 37 | javadoc.additionalparam= 38 | javadoc.author=false 39 | javadoc.encoding=${source.encoding} 40 | javadoc.noindex=false 41 | javadoc.nonavbar=false 42 | javadoc.notree=false 43 | javadoc.private=false 44 | javadoc.splitindex=true 45 | javadoc.use=true 46 | javadoc.version=false 47 | javadoc.windowtitle= 48 | main.class=cardmanager.gui.PlayTable 49 | manifest.file=manifest.mf 50 | meta.inf.dir=${src.dir}/META-INF 51 | platform.active=default_platform 52 | run.classpath=\ 53 | ${javac.classpath}:\ 54 | ${build.classes.dir} 55 | run.jvmargs=-Xmx1g 56 | run.test.classpath=\ 57 | ${javac.test.classpath}:\ 58 | ${build.test.classes.dir} 59 | source.encoding=UTF-8 60 | src.dir=src 61 | test.src.dir=test 62 | -------------------------------------------------------------------------------- /data/packages/magic/2012/blue/haves: -------------------------------------------------------------------------------- 1 | 2: /MagicTheGathering-all/20409.jpg 2 | 4: /MagicTheGathering-all/21787.jpg 3 | 4: /MagicTheGathering-all/21742.jpg 4 | 1: /MagicTheGathering-all/21714.jpg 5 | 1: /MagicTheGathering-all/18458.jpg 6 | 2: /MagicTheGathering-all/21284.jpg 7 | 4: /MagicTheGathering-all/22203.jpg 8 | 4: /MagicTheGathering-all/21696.jpg 9 | 3: /MagicTheGathering-all/21335.jpg 10 | 2: /MagicTheGathering-all/20639.jpg 11 | 2: /MagicTheGathering-all/21788.jpg 12 | 1: /MagicTheGathering-all/20496.jpg 13 | 3: /MagicTheGathering-all/20655.jpg 14 | 1: /MagicTheGathering-all/20441.jpg 15 | 1: /MagicTheGathering-all/20398.jpg 16 | 2: /MagicTheGathering-all/20663.jpg 17 | 1: /MagicTheGathering-all/14277.jpg 18 | 1: /MagicTheGathering-all/11512.jpg 19 | 1: /MagicTheGathering-all/17101.jpg 20 | 3: /MagicTheGathering-all/21299.jpg 21 | 2: /MagicTheGathering-all/20684.jpg 22 | 4: /MagicTheGathering-all/21350.jpg 23 | 1: /MagicTheGathering-all/20411.jpg 24 | 2: /MagicTheGathering-all/20741.jpg 25 | 2: /MagicTheGathering-all/22015.jpg 26 | 2: /MagicTheGathering-all/21305.jpg 27 | 4: /MagicTheGathering-all/20750.jpg 28 | 1: /MagicTheGathering-all/10500.jpg 29 | 1: /MagicTheGathering-all/13836.jpg 30 | 3: /MagicTheGathering-all/22358.jpg 31 | 1: /MagicTheGathering-all/11282.jpg 32 | 1: /MagicTheGathering-all/18450.jpg 33 | 1: /MagicTheGathering-all/16510.jpg 34 | 1: /MagicTheGathering-all/10493.jpg 35 | 4: /MagicTheGathering-all/22755.jpg 36 | 1: /MagicTheGathering-all/21546.jpg 37 | 8: /MagicTheGathering-all/22682.jpg 38 | 1: /MagicTheGathering-all/17558.jpg 39 | 1: /MagicTheGathering-all/17565.jpg 40 | 2: /MagicTheGathering-all/21724.jpg 41 | 1: /MagicTheGathering-all/13369.jpg 42 | 1: /MagicTheGathering-all/22691.jpg 43 | 1: /MagicTheGathering-all/10484.jpg 44 | 1: /MagicTheGathering-all/17610.jpg 45 | 1: /MagicTheGathering-all/16396.jpg 46 | 1: /MagicTheGathering-all/1595.jpg 47 | 1: /MagicTheGathering-all/16617.jpg 48 | 1: /MagicTheGathering-all/17663.jpg 49 | 1: /MagicTheGathering-all/13475.jpg 50 | 1: /MagicTheGathering-all/10475.jpg 51 | 1: /MagicTheGathering-all/10473.jpg 52 | 4: /MagicTheGathering-all/18438.jpg 53 | p: graveyard 54 | p: foreverRemoved 55 | -------------------------------------------------------------------------------- /src/cardmanager/impl/card/MarkersCache.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package cardmanager.impl.card; 6 | 7 | import java.awt.Color; 8 | import java.awt.Graphics2D; 9 | import java.awt.image.BufferedImage; 10 | import java.util.HashMap; 11 | import java.util.Map; 12 | 13 | /** 14 | * 15 | * @author Jirka 16 | */ 17 | public class MarkersCache { 18 | 19 | private static MarkersCache instance; 20 | 21 | public static MarkersCache getInstance(int radius) { 22 | if (instance == null) { 23 | instance = new MarkersCache(radius); 24 | } 25 | return instance; 26 | } 27 | private Map cache; 28 | private final int radius; 29 | 30 | private MarkersCache(int radius) { 31 | this.radius = radius; 32 | cache = new HashMap(10); 33 | } 34 | 35 | public BufferedImage getMarkerImage(Color c, String txt) { 36 | String gid = c.getRGB() + "#" + txt; 37 | BufferedImage bi = cache.get(gid); 38 | Graphics2D g; 39 | if (bi == null) { 40 | try { 41 | bi = new BufferedImage(radius, radius, BufferedImage.TYPE_INT_ARGB); 42 | g = bi.createGraphics(); 43 | g.setFont(g.getFont().deriveFont((3f*g.getFont().getSize2D())/4f)); 44 | int sw = g.getFontMetrics().stringWidth(txt); 45 | int sh = g.getFontMetrics().getHeight(); 46 | g.setColor(c); 47 | g.fillOval(0, 0, radius, radius); 48 | g.setColor(invert(c)); 49 | g.drawString(txt, radius / 2 - sw / 2, radius / 2 + sh / 2); 50 | } catch (Exception ex) { 51 | ex.printStackTrace(); 52 | bi = null; 53 | } 54 | 55 | cache.put(gid, bi); 56 | return bi; 57 | } else { 58 | return bi; 59 | } 60 | } 61 | 62 | public static Color invert(Color bgColor) { 63 | return new Color(255 - bgColor.getRed(), 64 | 255 - bgColor.getGreen(), 65 | 255 - bgColor.getBlue()); 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/cardmanager/impl/TempSettings.java: -------------------------------------------------------------------------------- 1 | package cardmanager.impl; 2 | 3 | import cardmanager.impl.networking.ServerPlayerCreator; 4 | import cardmanager.networking.NetworkGame; 5 | import cardmanager.gui.impl.GameViewOutput; 6 | import cardmanager.impl.packages.Package; 7 | import cardmanager.impl.packages.PackageDeffinition; 8 | import cardmanager.gui.impl.MemoWatcher; 9 | 10 | public class TempSettings { 11 | 12 | private NetworkLogger logger; 13 | private PackageDeffinition battlePackage; 14 | private NetworkGame network; 15 | private MemoWatcher memoWatcher; 16 | private Package pckg; 17 | private GameViewOutput gvo; 18 | private CollectionOperator collection; 19 | private ServerPlayerCreator scp; 20 | 21 | public CollectionOperator getCollection() { 22 | return collection; 23 | } 24 | 25 | public void setCollection(CollectionOperator collection) { 26 | this.collection = collection; 27 | } 28 | 29 | 30 | 31 | 32 | public void setGameViewOutput(GameViewOutput gvo) { 33 | this.gvo=gvo; 34 | } 35 | public GameViewOutput getGameViewOutput() { 36 | return gvo; 37 | } 38 | 39 | public void setMemoWatcher(MemoWatcher memoWatcher) { 40 | this.memoWatcher=memoWatcher; 41 | } 42 | 43 | public MemoWatcher getMemoWatcher() { 44 | return memoWatcher; 45 | } 46 | 47 | public void setPackage(Package unpackPackageDef) { 48 | pckg=unpackPackageDef; 49 | } 50 | 51 | public Package getPackage() { 52 | return pckg; 53 | } 54 | 55 | 56 | 57 | public void setLoger(NetworkLogger aThis) { 58 | this.logger = aThis; 59 | } 60 | 61 | public NetworkLogger getLogger() { 62 | return logger; 63 | } 64 | 65 | public PackageDeffinition getBattlePackage() { 66 | return battlePackage; 67 | } 68 | 69 | public void setBattlePackage(PackageDeffinition p) { 70 | this.battlePackage = p; 71 | } 72 | 73 | public void setNetwork(NetworkGame aThis) { 74 | this.network = aThis; 75 | } 76 | 77 | public NetworkGame getNetwork() { 78 | return network; 79 | } 80 | 81 | public void setServer(ServerPlayerCreator server) { 82 | this.scp=server; 83 | } 84 | 85 | public ServerPlayerCreator getServer() { 86 | return scp; 87 | } 88 | 89 | 90 | } 91 | -------------------------------------------------------------------------------- /src/cardmanager/impl/packages/AbstractPackage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.impl.packages; 7 | 8 | import cardmanager.impl.Settings; 9 | import cardmanager.impl.card.Card; 10 | import java.util.ArrayList; 11 | import java.util.Collections; 12 | import java.util.HashMap; 13 | import java.util.List; 14 | import java.util.Map; 15 | import java.util.Map.Entry; 16 | import java.util.Observable; 17 | import java.util.Set; 18 | 19 | /** 20 | * 21 | * @author Jirka 22 | */ 23 | public abstract class AbstractPackage extends Observable implements Package{ 24 | public static final String STD_IN="Standart input"; 25 | 26 | protected List hand=new ArrayList();; 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | public static Package unpackPackageDef(Settings s, PackageDeffinition def){ 44 | PackageDef p=new PackageDef(); 45 | p.piles=new HashMap>(def.getPiles().size()+1); 46 | List stdIn=new ArrayList(def.getCardCount()); 47 | 48 | for (CountedCard cd : def.getCards()) { 49 | 50 | for(int i=0;i getHand() { 79 | return Collections.unmodifiableList(hand); 80 | } 81 | 82 | 83 | 84 | 85 | 86 | public Card removeFromHand(Card card) { 87 | if (hand.remove(card)) { 88 | super.setChanged(); 89 | notifyObservers("hand++"); 90 | return card; 91 | } else return null; 92 | } 93 | 94 | public void refactorHand(Card[] c) { 95 | for (int i = 0; i < c.length; i++) { 96 | Card card = c[i]; 97 | hand.set(i, card); 98 | 99 | } 100 | } 101 | 102 | 103 | } 104 | -------------------------------------------------------------------------------- /src/cardmanager/gui/ViewPackagePanel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | /* 7 | * ViewPackagePanel.java 8 | * 9 | * Created on 22.10.2010, 22:54:34 10 | */ 11 | 12 | package cardmanager.gui; 13 | 14 | import cardmanager.FileBearer; 15 | import cardmanager.impl.packages.PackageDeffinition; 16 | import java.util.ArrayList; 17 | import javax.swing.AbstractListModel; 18 | 19 | /** 20 | * 21 | * @author Jirka 22 | */ 23 | public class ViewPackagePanel extends javax.swing.JPanel { 24 | private SelectCardComponent view; 25 | private PackageDeffinition packagee; 26 | 27 | public SelectCardComponent getView() { 28 | return view; 29 | } 30 | 31 | 32 | /** Creates new form ViewPackagePanel */ 33 | public ViewPackagePanel(PackageDeffinition packagee) { 34 | initComponents(); 35 | this.packagee=packagee; 36 | view=new SelectCardComponent(new ArrayList(0)); 37 | view.setViewModality(true); 38 | view.setMultipleSellection(false); 39 | this.add(view); 40 | refreshView(); 41 | } 42 | 43 | /** This method is called from within the constructor to 44 | * initialize the form. 45 | * WARNING: Do NOT modify this code. The content of this method is 46 | * always regenerated by the Form Editor. 47 | */ 48 | @SuppressWarnings("unchecked") 49 | // //GEN-BEGIN:initComponents 50 | private void initComponents() { 51 | 52 | setLayout(new java.awt.GridLayout()); 53 | }// //GEN-END:initComponents 54 | 55 | public void refreshView() { 56 | Object l=null; 57 | try{ 58 | l=view.getList().getSelectedValue(); 59 | }catch (Exception ex){ 60 | 61 | } 62 | view.getList().setModel(new PackageDeffBasedModel(packagee)); 63 | view.getList().setSelectedValue(l, true); 64 | 65 | } 66 | private class PackageDeffBasedModel extends AbstractListModel{ 67 | private PackageDeffinition p; 68 | 69 | public PackageDeffBasedModel(PackageDeffinition p) { 70 | this.p=p; 71 | } 72 | 73 | public int getSize() { 74 | return p.getCards().size(); 75 | } 76 | 77 | public Object getElementAt(int index) { 78 | return p.getCards().get(index); 79 | } 80 | 81 | } 82 | 83 | // Variables declaration - do not modify//GEN-BEGIN:variables 84 | // End of variables declaration//GEN-END:variables 85 | 86 | } 87 | -------------------------------------------------------------------------------- /src/cardmanager/gui/CollectionView.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | /* 7 | * CollectionView.java 8 | * 9 | * Created on 19.10.2010, 13:58:55 10 | */ 11 | 12 | package cardmanager.gui; 13 | 14 | import cardmanager.impl.CollectionOperator; 15 | import java.io.File; 16 | 17 | 18 | /** 19 | * 20 | * @author Jirka 21 | */ 22 | public class CollectionView extends javax.swing.JDialog { 23 | SelectCardComponent sc; 24 | /** Creates new form CollectionView */ 25 | public CollectionView(java.awt.Frame parent, boolean modal,CollectionOperator collection) { 26 | super(parent, modal); 27 | initComponents(); 28 | sc=new SelectCardComponent(collection.getCollectionForSelectingView()); 29 | this.add(sc); 30 | this.setSize(800, 600); 31 | 32 | } 33 | 34 | public Object[] getSelected(){ 35 | return sc.getSelected(); 36 | } 37 | 38 | public SelectCardComponent getViewComponent() { 39 | return sc; 40 | } 41 | 42 | 43 | public void setMultipleSellection(boolean b){ 44 | sc.setMultipleSellection(b); 45 | } 46 | 47 | /** This method is called from within the constructor to 48 | * initialize the form. 49 | * WARNING: Do NOT modify this code. The content of this method is 50 | * always regenerated by the Form Editor. 51 | */ 52 | @SuppressWarnings("unchecked") 53 | // //GEN-BEGIN:initComponents 54 | private void initComponents() { 55 | 56 | setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); 57 | getContentPane().setLayout(new java.awt.GridLayout()); 58 | 59 | pack(); 60 | }// //GEN-END:initComponents 61 | 62 | /** 63 | * @param args the command line arguments 64 | */ 65 | public static void main(String args[]) { 66 | java.awt.EventQueue.invokeLater(new Runnable() { 67 | public void run() { 68 | CollectionView dialog = new CollectionView(new javax.swing.JFrame(), true,new CollectionOperator(new File("collection"))); 69 | dialog.addWindowListener(new java.awt.event.WindowAdapter() { 70 | @Override 71 | public void windowClosing(java.awt.event.WindowEvent e) { 72 | System.exit(0); 73 | } 74 | }); 75 | dialog.setVisible(true); 76 | } 77 | }); 78 | } 79 | 80 | // Variables declaration - do not modify//GEN-BEGIN:variables 81 | // End of variables declaration//GEN-END:variables 82 | 83 | 84 | 85 | 86 | 87 | 88 | } 89 | -------------------------------------------------------------------------------- /src/cardmanager/impl/packages/PackageDef.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.impl.packages; 7 | 8 | import cardmanager.impl.card.Card; 9 | import java.util.ArrayList; 10 | import java.util.Collections; 11 | import java.util.List; 12 | import java.util.Map; 13 | import java.util.Map.Entry; 14 | import java.util.Set; 15 | 16 | /** 17 | * 18 | * @author Jirka 19 | */ 20 | public class PackageDef extends AbstractPackage{ 21 | 22 | 23 | protected Map> piles; 24 | 25 | public Card getTopFrom(String id){ 26 | List l = getPile(id); 27 | Card c=null; 28 | if (l.size()>0){ 29 | c=l.remove(0); 30 | } 31 | return c; 32 | } 33 | 34 | 35 | 36 | public Map> getPiles() { 37 | return piles; 38 | } 39 | 40 | public List getPile(String id){ 41 | return piles.get(id); 42 | 43 | } 44 | 45 | public List getPilesNames(){ 46 | List r=new ArrayList(piles.size()); 47 | Set>> entries = piles.entrySet(); 48 | for (Entry> entry : entries) { 49 | r.add(entry.getKey()); 50 | } 51 | return r; 52 | } 53 | 54 | 55 | 56 | 57 | 58 | public List getPilesNamesWithCount() { 59 | List r=new ArrayList(piles.size()); 60 | Set>> entries = piles.entrySet(); 61 | for (Entry> entry : entries) { 62 | r.add(entry.getKey()+" ("+entry.getValue().size()+")"); 63 | } 64 | return r; 65 | } 66 | 67 | 68 | 69 | 70 | 71 | public void sufflePile(String pile) { 72 | List q = getPile(pile); 73 | if (q!=null) { 74 | Collections.shuffle(q); 75 | 76 | } 77 | 78 | } 79 | 80 | 81 | 82 | public Card selectCard(Card c, String pile) { 83 | List q = getPile(pile); 84 | if (q==null) return null; 85 | if (q.remove(c)) return c;else return null; 86 | 87 | 88 | } 89 | 90 | @Override 91 | public Card removeFromHand(Card card) { 92 | if (hand.remove(card)) { 93 | super.setChanged(); 94 | notifyObservers("hand++"); 95 | return card; 96 | } else return null; 97 | } 98 | 99 | @Override 100 | public void refactorHand(Card[] c) { 101 | for (int i = 0; i < c.length; i++) { 102 | Card card = c[i]; 103 | hand.set(i, card); 104 | 105 | } 106 | } 107 | 108 | 109 | } 110 | -------------------------------------------------------------------------------- /src/cardmanager/impl/card/CardCache.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package cardmanager.impl.card; 6 | 7 | import cardmanager.impl.CollectionOperator; 8 | import cardmanager.impl.Settings; 9 | import java.awt.image.BufferedImage; 10 | import java.io.File; 11 | import java.io.FileNotFoundException; 12 | import java.io.IOException; 13 | import java.util.HashMap; 14 | import java.util.HashSet; 15 | import java.util.Map; 16 | import java.util.Set; 17 | import javax.imageio.ImageIO; 18 | 19 | /** 20 | * 21 | * @author Jirka 22 | */ 23 | public class CardCache { 24 | 25 | private static CardCache instance; 26 | 27 | public static CardCache getInstance() { 28 | return instance; 29 | } 30 | 31 | static { 32 | try { 33 | instance = new CardCache(CollectionOperator.DEF_DIR, Settings.DEF_BGS); 34 | } catch (IOException ex) { 35 | throw new RuntimeException(ex); 36 | } 37 | } 38 | private Map cache; 39 | private Set blacklist=new HashSet(); 40 | private File dir; 41 | private File bgDir; 42 | private BufferedImage noimage; 43 | 44 | private CardCache(File DEF_DIR, File bgDir) throws IOException { 45 | dir = DEF_DIR; 46 | this.bgDir = bgDir; 47 | if (!dir.exists()) { 48 | throw new FileNotFoundException(dir + " doesnot exists"); 49 | } 50 | if (!dir.isDirectory()) { 51 | throw new FileNotFoundException(dir + " is not direcory"); 52 | } 53 | if (!bgDir.exists()) { 54 | throw new FileNotFoundException(dir + " doesnot exists"); 55 | } 56 | if (!bgDir.isDirectory()) { 57 | throw new FileNotFoundException(dir + " is not direcory"); 58 | } 59 | noimage = ImageIO.read(new File("data/noimage.jpg")); 60 | cache = new HashMap(100); 61 | } 62 | 63 | private BufferedImage getImageFromCache(String background, File dir) { 64 | BufferedImage bi = cache.get(background); 65 | if (bi == null && !blacklist.contains(background)) { 66 | try { 67 | bi = ImageIO.read(new File(dir, background)); 68 | } catch (Exception ex) { 69 | blacklist.add(background); 70 | ex.printStackTrace(); 71 | bi = null; 72 | } 73 | if (bi == null) { 74 | return noimage; 75 | } 76 | 77 | cache.put(background, bi); 78 | return bi; 79 | } else { 80 | if (bi == null) { 81 | return noimage; 82 | } 83 | return bi; 84 | } 85 | } 86 | public BufferedImage getBackground(String background) { 87 | return getImageFromCache(background, bgDir); 88 | } 89 | 90 | public BufferedImage getImage(String id) { 91 | return getImageFromCache(id, dir); 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /src/cardmanager/gui/impl/OfflineHelp.form: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 |
62 | -------------------------------------------------------------------------------- /src/cardmanager/gui/impl/OnlineHelp.form: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 |
62 | -------------------------------------------------------------------------------- /src/cardmanager/impl/packages/CardDefinition.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.impl.packages; 7 | 8 | import cardmanager.impl.packages.CountedCard; 9 | import cardmanager.FileBearer; 10 | import java.io.File; 11 | import java.io.Serializable; 12 | 13 | /** 14 | * 15 | * @author Jirka 16 | */ 17 | public class CardDefinition implements Serializable, FileBearer{ 18 | 19 | private File file; 20 | private String name; 21 | private String suffix; 22 | private String id; 23 | 24 | private static final String CL="collection"; 25 | 26 | @Override 27 | public boolean equals(Object obj) { 28 | if (obj instanceof CountedCard) return ((CountedCard)obj).card.equals(this); 29 | if (!(obj instanceof CardDefinition)) return false; 30 | return (((CardDefinition)obj).getId().equals(this.id)); 31 | } 32 | 33 | @Override 34 | public int hashCode() { 35 | return id.hashCode(); 36 | } 37 | 38 | 39 | 40 | public CardDefinition(File f) { 41 | file=f.getAbsoluteFile(); 42 | name=f.getName(); 43 | suffix=name.substring(name.lastIndexOf(".")+1,name.length()); 44 | name=name.substring(0,name.lastIndexOf(".")); 45 | id=f.getAbsolutePath().substring(f.getAbsolutePath().indexOf(CL)+CL.length(),(f.getAbsolutePath().length())); 46 | id=id.replace('\\','/'); 47 | } 48 | 49 | /** 50 | * @return the file 51 | */ 52 | 53 | 54 | public File getFile() { 55 | return file; 56 | } 57 | 58 | /** 59 | * @param file the file to set 60 | */ 61 | public void setFile(File file) { 62 | this.file = file; 63 | } 64 | 65 | /** 66 | * @return the name 67 | */ 68 | public String getName() { 69 | return name; 70 | } 71 | 72 | /** 73 | * @param name the name to set 74 | */ 75 | public void setName(String name) { 76 | this.name = name; 77 | } 78 | 79 | /** 80 | * @return the id 81 | */ 82 | public String getId() { 83 | return id; 84 | } 85 | 86 | /** 87 | * @param id the id to set 88 | */ 89 | public void setId(String id) { 90 | this.id = id; 91 | } 92 | 93 | /** 94 | * @return the suffix 95 | */ 96 | public String getSuffix() { 97 | return suffix; 98 | } 99 | 100 | /** 101 | * @param suffix the suffix to set 102 | */ 103 | public void setSuffix(String suffix) { 104 | this.suffix = suffix; 105 | } 106 | 107 | public static void main(String[] a){ 108 | CardDefinition c=new CardDefinition(new File("collection/base/BaseSet-00001.jpg")); 109 | System.out.println( c.getFile().getAbsolutePath()); 110 | System.out.println( c.getId()); 111 | System.out.println( c.name); 112 | System.out.println( c.suffix); 113 | 114 | 115 | 116 | 117 | 118 | } 119 | } 120 | -------------------------------------------------------------------------------- /src/cardmanager/impl/card/CardGeometry.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package cardmanager.impl.card; 6 | 7 | import java.awt.geom.AffineTransform; 8 | 9 | /** 10 | * 11 | * @author Jirka 12 | */ 13 | public class CardGeometry { 14 | 15 | private int x; 16 | private int y; 17 | private double r; 18 | private AffineTransform cachedM; 19 | private boolean dirtyM = true; 20 | private AffineTransform cachedR; 21 | private boolean dirtyR = true; 22 | 23 | public CardGeometry(CardGeometry cardGeometry) { 24 | this.x = cardGeometry.x; 25 | this.y = cardGeometry.y; 26 | this.r = cardGeometry.r; 27 | } 28 | 29 | public CardGeometry(int x, int y, double r) { 30 | this.x = x; 31 | this.y = y; 32 | this.r = r; 33 | } 34 | 35 | public String getSentence() { 36 | StringBuilder sb = new StringBuilder(); 37 | 38 | sb.append(getX()).append(":"). 39 | append(getY()).append(":"). 40 | append(getR()); 41 | return sb.toString(); 42 | } 43 | 44 | public AffineTransform getArchRotatedMatrix(int i, int i0) { 45 | return getArchRotateMatrix((double) i, (double) i0); 46 | } 47 | 48 | /** 49 | * @return the x 50 | */ 51 | public int getX() { 52 | return x; 53 | } 54 | 55 | /** 56 | * @param x the x to set 57 | */ 58 | public void setX(int x) { 59 | this.x = x; 60 | dirtyM = true; 61 | } 62 | 63 | /** 64 | * @return the y 65 | */ 66 | public int getY() { 67 | return y; 68 | } 69 | 70 | /** 71 | * @param y the y to set 72 | */ 73 | public void setY(int y) { 74 | this.y = y; 75 | dirtyM = true; 76 | } 77 | 78 | /** 79 | * @return the r 80 | */ 81 | public double getR() { 82 | return r; 83 | } 84 | 85 | /** 86 | * @param r the r to set 87 | */ 88 | public void setR(double r) { 89 | this.r = r; 90 | dirtyR = true; 91 | } 92 | 93 | public AffineTransform getMovementMatrix() { 94 | if (cachedM != null && dirtyM == false) { 95 | return cachedM; 96 | } 97 | cachedM = AffineTransform.getTranslateInstance((double) x, (double) y); 98 | return cachedM; 99 | } 100 | 101 | // private AffineTransform getRotateMatrix(){ 102 | // // - - ? 103 | // return AffineTransform.getRotateInstance(r,(double)x, (double)y); 104 | // } 105 | public AffineTransform getArchRotateMatrix(double xx, double yy) { 106 | if (cachedR != null && dirtyR == false) { 107 | return cachedR; 108 | } 109 | cachedR = AffineTransform.getRotateInstance(r, (double) x + xx, (double) y + yy); 110 | return cachedR; 111 | 112 | } 113 | // private AffineTransform getPureRotateMatrix(){ 114 | // return AffineTransform.getRotateInstance(r); 115 | // } 116 | } 117 | -------------------------------------------------------------------------------- /data/packages/doomtrooper/bauhausPride: -------------------------------------------------------------------------------- 1 | 3: /doomtrooper/classic/Apocalypseeng/epidermalplates.jpg 2 | 3: /doomtrooper/classic/Apocalypseeng/innocentbauble.jpg 3 | 3: /doomtrooper/classic/Apocalypseeng/passthebuck.jpg 4 | 2: /doomtrooper/classic/base/BaseSet-00001.jpg 5 | 2: /doomtrooper/classic/base/BaseSet-00004.jpg 6 | 3: /doomtrooper/classic/base/BaseSet-00030.jpg 7 | 3: /doomtrooper/classic/base/BaseSet-00035.jpg 8 | 5: /doomtrooper/classic/base/BaseSet-00107.jpg 9 | 5: /doomtrooper/classic/base/BaseSet-00109.jpg 10 | 3: /doomtrooper/classic/base/BaseSet-00110.jpg 11 | 3: /doomtrooper/classic/base/BaseSet-00119.jpg 12 | 3: /doomtrooper/classic/base/BaseSet-00123.jpg 13 | 5: /doomtrooper/classic/base/BaseSet-00124.jpg 14 | 5: /doomtrooper/classic/base/BaseSet-00130.jpg 15 | 4: /doomtrooper/classic/base/BaseSet-00133.jpg 16 | 2: /doomtrooper/classic/base/BaseSet-00152.jpg 17 | 5: /doomtrooper/classic/base/BaseSet-00174.jpg 18 | 3: /doomtrooper/classic/base/BaseSet-00286.jpg 19 | 5: /doomtrooper/classic/base/BaseSet-00288.jpg 20 | 5: /doomtrooper/classic/base/BaseSet-00293.jpg 21 | 5: /doomtrooper/classic/base/BaseSet-00303.jpg 22 | 5: /doomtrooper/classic/base/BaseSet-00304.jpg 23 | 5: /doomtrooper/classic/base/BaseSet-00308.jpg 24 | 3: /doomtrooper/classic/base/BaseSet-00312.jpg 25 | 1: /doomtrooper/classic/base/BaseSet-00315.jpg 26 | 5: /doomtrooper/classic/base/BaseSet-00320.jpg 27 | 5: /doomtrooper/classic/base/BaseSet-00321.jpg 28 | 5: /doomtrooper/classic/base/BaseSet-00322.jpg 29 | 3: /doomtrooper/classic/base/BaseSet-00332.jpg 30 | 1: /doomtrooper/classic/Golgothaeng/armory.jpg 31 | 1: /doomtrooper/classic/Golgothaeng/bauhaus.jpg 32 | 1: /doomtrooper/classic/Golgothaeng/bauhausbank.jpg 33 | 5: /doomtrooper/classic/Golgothaeng/scramblingdevice.jpg 34 | 3: /doomtrooper/classic/Inquisitioneng/ag17panzerknacker.jpg 35 | 3: /doomtrooper/classic/Inquisitioneng/archetypaltimepiece.jpg 36 | 5: /doomtrooper/classic/Inquisitioneng/armorofthetrueassassin.jpg 37 | 5: /doomtrooper/classic/Inquisitioneng/desperatetimes.jpg 38 | 5: /doomtrooper/classic/Inquisitioneng/doubleduty.jpg 39 | 4: /doomtrooper/classic/Inquisitioneng/industrialcomplex.jpg 40 | 5: /doomtrooper/classic/Inquisitioneng/lootandpillage.jpg 41 | 3: /doomtrooper/classic/Inquisitioneng/necromower.jpg 42 | 3: /doomtrooper/classic/Inquisitioneng/nimrodmk1.jpg 43 | 3: /doomtrooper/classic/Inquisitioneng/smellofwar.jpg 44 | 5: /doomtrooper/classic/Inquisitioneng/venusianmarshal.jpg 45 | 3: /doomtrooper/classic/Inquisitioneng/vincediamond.jpg 46 | 3: /doomtrooper/classic/Inquisitioneng/waveofrightousness.jpg 47 | 3: /doomtrooper/classic/Mortificatoreng/bauhaussecurityguard.jpg 48 | 4: /doomtrooper/classic/Mortificatoreng/joker.jpg 49 | 3: /doomtrooper/classic/Mortificatoreng/localthug.jpg 50 | 1: /doomtrooper/classic/Mortificatoreng/lunamemorialhospital.jpg 51 | 3: /doomtrooper/classic/Mortificatoreng/mercenary.jpg 52 | 3: /doomtrooper/classic/Mortificatoreng/tryandstopme.jpg 53 | 3: /doomtrooper/classic/Mortificatoreng/wolfe.jpg 54 | 3: /doomtrooper/classic/Paradiselosteng/brotherhoodarchives.JPG 55 | 3: /doomtrooper/classic/Warzoneeng/aidedecamp.jpg 56 | 4: /doomtrooper/classic/Warzoneeng/capitaine.jpg 57 | 4: /doomtrooper/classic/Warzoneeng/kommandant.jpg 58 | 3: /doomtrooper/classic/Warzoneeng/venusianjungle.jpg 59 | 5: /doomtrooper/classic/Inquisitioneng/hiddencache.jpg 60 | p: discarded 61 | p: anhilated 62 | -------------------------------------------------------------------------------- /src/cardmanager/impl/networking/NetworkStarter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.impl.networking; 7 | 8 | import cardmanager.networking.impl.ClientNetworkGame; 9 | import cardmanager.networking.NetworkGame; 10 | import cardmanager.networking.impl.ServerNetworkGame; 11 | import cardmanager.impl.Settings; 12 | import java.awt.Component; 13 | import java.net.InetAddress; 14 | import java.util.ArrayList; 15 | import javax.swing.DefaultListModel; 16 | import javax.swing.JDialog; 17 | import javax.swing.JList; 18 | import javax.swing.JOptionPane; 19 | 20 | /** 21 | * 22 | * @author Jirka 23 | */ 24 | public class NetworkStarter { 25 | private Settings settings; 26 | 27 | ServerPlayerCreator spc=null; 28 | ClientPlayerCreator cpc=null; 29 | ArrayList joinedPlayers=null; 30 | 31 | public ServerPlayerCreator getServer() { 32 | return spc; 33 | } 34 | 35 | 36 | 37 | public ArrayList getJoinedPlayers() { 38 | return joinedPlayers; 39 | } 40 | 41 | 42 | public NetworkStarter(Settings s) { 43 | this.settings=s; 44 | } 45 | 46 | public NetworkGame notifiedFinished() { 47 | return new ClientNetworkGame(settings, cpc.joinedPalyer); 48 | } 49 | 50 | public NetworkGame notifyFinished() { 51 | 52 | joinedPlayers=spc.getJoinedPlayers(); 53 | for (JoinedPlayer jp:getJoinedPlayers()){ 54 | try{ 55 | jp.getOut().write("sccabbleXOWQ18gamestartFGH4463UIO\n"); 56 | jp.getOut().flush(); 57 | }catch(Exception ex){ 58 | ex.printStackTrace(); 59 | JOptionPane.showMessageDialog((Component)null, ex); 60 | 61 | } 62 | } 63 | try{ 64 | Thread.sleep(500); 65 | }catch(Exception ex){ 66 | ex.printStackTrace(); 67 | } 68 | 69 | return new ServerNetworkGame(settings, joinedPlayers); 70 | } 71 | 72 | 73 | public void start(DefaultListModel jpl,DefaultListModel cpl/*logs?*/,JDialog blockers,JDialog blockerc){ 74 | 75 | if (settings.getImServer()){ 76 | 77 | 78 | try{ 79 | spc=new ServerPlayerCreator(jpl,settings); 80 | } catch (Exception ex) { 81 | jpl.addElement("error connection was not created,restart"); 82 | ex.printStackTrace(); 83 | blockers.setVisible(true); 84 | } 85 | 86 | 87 | spc.start(); 88 | blockers.setVisible(true); 89 | 90 | 91 | } 92 | else{ 93 | 94 | cpc=null; 95 | try { 96 | cpc = new ClientPlayerCreator(InetAddress.getByName(/*"localhost"/*/settings.getLastIp()), cpl,settings.getName(),blockerc,settings); 97 | } catch (Exception ex) { 98 | cpl.addElement("error connection was not created. You can close the window"); 99 | ex.printStackTrace(); 100 | blockers.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); 101 | 102 | } 103 | if (cpc!=null){ 104 | cpc.start(); 105 | } 106 | 107 | blockerc.setVisible(true); 108 | 109 | 110 | } 111 | 112 | 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /src/cardmanager/networking/impl/AbstractNetworkGame.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.networking.impl; 7 | 8 | 9 | import cardmanager.networking.NetworkGame; 10 | import cardmanager.impl.*; 11 | import cardmanager.impl.card.Card; 12 | import cardmanager.impl.card.CardGeometry; 13 | import cardmanager.impl.networking.JoinedPlayer; 14 | import cardmanager.impl.networking.SyncKeeper; 15 | import java.util.ArrayList; 16 | import java.util.List; 17 | 18 | /** 19 | * 20 | * @author Jirka 21 | */ 22 | public abstract class AbstractNetworkGame implements NetworkGame { 23 | 24 | public static String getNameFromNameAndCount(String name) { 25 | return name.substring(0, name.lastIndexOf(" ")).trim(); 26 | } 27 | 28 | 29 | 30 | public static String[] parse(String command) { 31 | String c= (command.substring(0,command.indexOf(":"))).trim(); 32 | String s= (command.substring(command.indexOf(":")+1)).trim(); 33 | String[] t=new String[2]; 34 | t[0]=c; 35 | t[1]=s; 36 | return t; 37 | } 38 | 39 | public static String prepareNames(String[] toArray) { 40 | String r= namesAllExceptMee; 41 | for (int i = 0; i < toArray.length; i++) { 42 | r=r+":"+toArray[i]; 43 | 44 | } 45 | return r; 46 | } 47 | public static String prepareAllNames(String[] toArray) { 48 | String r= allPlayersInOrder; 49 | for (int i = 0; i < toArray.length; i++) { 50 | r=r+":"+toArray[i]; 51 | 52 | } 53 | return r; 54 | } 55 | 56 | static String[] prepareNames(String s) { 57 | return s.split(":"); 58 | } 59 | static String[] prepareAllNames(String s) { 60 | return s.split(":"); 61 | } 62 | 63 | static String preparePiles(List pilesNamesWithCount) { 64 | if (pilesNamesWithCount==null || pilesNamesWithCount.size()==0) return ""; 65 | String s=pilesNamesWithCount.get(0); 66 | for (int i = 1; i < pilesNamesWithCount.size(); i++) { 67 | s=s+";"+pilesNamesWithCount.get(i); 68 | 69 | } 70 | return s; 71 | 72 | } 73 | 74 | static String[] parsePiles(String s){ 75 | return s.split(";"); 76 | } 77 | 78 | static String prepareSharedContent(String s) { 79 | return sharedContent+":"+s.replaceAll("\n","%{xichrgzngt}"); 80 | } 81 | static String parseSharedContent(String s) { 82 | return s.replaceAll("%\\{xichrgzngt\\}","\n"); 83 | } 84 | 85 | 86 | public static synchronized SyncKeeper syncRequest(JoinedPlayer fromwho,String reqestMessageToFromWho,SyncKeeper waitFor,int timeoout,String message,NetworkLogger log) { 87 | waitFor.setWaitingFor(null); 88 | if (fromwho!=null)fromwho.messageToServer(reqestMessageToFromWho); 89 | int timeout=0; 90 | while(waitFor.getWaitingFor()==null){ 91 | try{ 92 | Thread.sleep(50); 93 | timeout++; 94 | if (timeout>timeoout){ 95 | log.writeLocalMessage(message); 96 | return null; 97 | } 98 | }catch(InterruptedException ex){ 99 | throw new IllegalStateException(ex); 100 | } 101 | } 102 | 103 | return waitFor; 104 | } 105 | 106 | 107 | 108 | } 109 | -------------------------------------------------------------------------------- /src/cardmanager/TreeTest.form: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 |
76 | -------------------------------------------------------------------------------- /src/cardmanager/gui/impl/OnlineHelp.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | /* 7 | * OnlineHelp.java 8 | * 9 | * Created on Jun 30, 2012, 4:40:00 PM 10 | */ 11 | 12 | package cardmanager.gui.impl; 13 | 14 | /** 15 | * 16 | * @author jvanek 17 | */ 18 | public class OnlineHelp extends javax.swing.JDialog { 19 | 20 | /** Creates new form OnlineHelp */ 21 | public OnlineHelp(java.awt.Frame parent, boolean modal) { 22 | super(parent, modal); 23 | initComponents(); 24 | try{ 25 | jTextPane1.setPage("http://cardmanager.wz.cz/index_noAdvert.html"); 26 | }catch(Exception ex){ 27 | ex.printStackTrace(); 28 | } 29 | } 30 | 31 | /** This method is called from within the constructor to 32 | * initialize the form. 33 | * WARNING: Do NOT modify this code. The content of this method is 34 | * always regenerated by the Form Editor. 35 | */ 36 | @SuppressWarnings("unchecked") 37 | // //GEN-BEGIN:initComponents 38 | private void initComponents() { 39 | 40 | jScrollPane1 = new javax.swing.JScrollPane(); 41 | jTextPane1 = new javax.swing.JTextPane(); 42 | 43 | setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); 44 | 45 | jScrollPane1.setViewportView(jTextPane1); 46 | 47 | javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); 48 | getContentPane().setLayout(layout); 49 | layout.setHorizontalGroup( 50 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 51 | .addGap(0, 509, Short.MAX_VALUE) 52 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 53 | .addGroup(layout.createSequentialGroup() 54 | .addContainerGap() 55 | .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 485, Short.MAX_VALUE) 56 | .addContainerGap())) 57 | ); 58 | layout.setVerticalGroup( 59 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 60 | .addGap(0, 405, Short.MAX_VALUE) 61 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 62 | .addGroup(layout.createSequentialGroup() 63 | .addContainerGap() 64 | .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 381, Short.MAX_VALUE) 65 | .addContainerGap())) 66 | ); 67 | 68 | pack(); 69 | }// //GEN-END:initComponents 70 | 71 | /** 72 | * @param args the command line arguments 73 | */ 74 | public static void main(String args[]) { 75 | java.awt.EventQueue.invokeLater(new Runnable() { 76 | public void run() { 77 | OnlineHelp dialog = new OnlineHelp(new javax.swing.JFrame(), true); 78 | dialog.addWindowListener(new java.awt.event.WindowAdapter() { 79 | public void windowClosing(java.awt.event.WindowEvent e) { 80 | System.exit(0); 81 | } 82 | }); 83 | dialog.setVisible(true); 84 | } 85 | }); 86 | } 87 | 88 | // Variables declaration - do not modify//GEN-BEGIN:variables 89 | private javax.swing.JScrollPane jScrollPane1; 90 | private javax.swing.JTextPane jTextPane1; 91 | // End of variables declaration//GEN-END:variables 92 | 93 | } 94 | -------------------------------------------------------------------------------- /src/cardmanager/popuppokus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | /* 7 | * popuppokus.java 8 | * 9 | * Created on 7.12.2010, 16:19:18 10 | */ 11 | 12 | package cardmanager; 13 | 14 | import cardmanager.gui.impl.Popupizer; 15 | import java.awt.MouseInfo; 16 | import javax.swing.JMenu; 17 | import javax.swing.JMenuItem; 18 | import javax.swing.JPopupMenu; 19 | 20 | /** 21 | * 22 | * @author Jirka 23 | */ 24 | public class popuppokus extends javax.swing.JFrame { 25 | 26 | /** Creates new form popuppokus */ 27 | public popuppokus() { 28 | initComponents(); 29 | } 30 | 31 | /** This method is called from within the constructor to 32 | * initialize the form. 33 | * WARNING: Do NOT modify this code. The content of this method is 34 | * always regenerated by the Form Editor. 35 | */ 36 | @SuppressWarnings("unchecked") 37 | // //GEN-BEGIN:initComponents 38 | private void initComponents() { 39 | 40 | setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 41 | addMouseListener(new java.awt.event.MouseAdapter() { 42 | public void mouseReleased(java.awt.event.MouseEvent evt) { 43 | formMouseReleased(evt); 44 | } 45 | }); 46 | 47 | javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); 48 | getContentPane().setLayout(layout); 49 | layout.setHorizontalGroup( 50 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 51 | .addGap(0, 400, Short.MAX_VALUE) 52 | ); 53 | layout.setVerticalGroup( 54 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 55 | .addGap(0, 300, Short.MAX_VALUE) 56 | ); 57 | 58 | pack(); 59 | }// //GEN-END:initComponents 60 | 61 | private void formMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseReleased 62 | // TODO add your handling code here: 63 | Popupizer r=new Popupizer(); 64 | 65 | JPopupMenu jp=new JPopupMenu("hi"); 66 | JMenuItem jpi1=new JMenuItem("first item"); 67 | JMenuItem jpi2=new JMenuItem("second item"); 68 | JMenuItem jp1=new JMenu("middle menu"); 69 | JMenuItem jpi11=new JMenuItem("first subitem"); 70 | JMenuItem jpi22=new JMenuItem("second subitem"); 71 | jp1.add(jpi11); 72 | jp1.add(jpi22); 73 | jp.add(jpi1); 74 | jp.add(jp1); 75 | jp.add(jpi2); 76 | 77 | 78 | r.addAndInc(jpi1); 79 | r.addAndInc(jp1); 80 | r.addAndInc(jpi11); 81 | r.addAndInc(jpi22); 82 | r.addAndInc(jpi2); 83 | 84 | if (evt.getButton()==evt.BUTTON1){ 85 | jp.show(this, evt.getX(), evt.getY()); 86 | }else{ 87 | jp.show(null, MouseInfo.getPointerInfo().getLocation().x, MouseInfo.getPointerInfo().getLocation().y); 88 | } 89 | }//GEN-LAST:event_formMouseReleased 90 | 91 | /** 92 | * @param args the command line arguments 93 | */ 94 | public static void main(String args[]) { 95 | java.awt.EventQueue.invokeLater(new Runnable() { 96 | public void run() { 97 | new popuppokus().setVisible(true); 98 | } 99 | }); 100 | } 101 | 102 | // Variables declaration - do not modify//GEN-BEGIN:variables 103 | // End of variables declaration//GEN-END:variables 104 | 105 | } 106 | -------------------------------------------------------------------------------- /data/packages/doomtrooper/brotherhood: -------------------------------------------------------------------------------- 1 | 3: /doomtrooper/classic/Apocalypseeng/innocentbauble.jpg 2 | 3: /doomtrooper/classic/Apocalypseeng/passthebuck.jpg 3 | 4: /doomtrooper/classic/base/BaseSet-00109.jpg 4 | 3: /doomtrooper/classic/base/BaseSet-00119.jpg 5 | 3: /doomtrooper/classic/base/BaseSet-00123.jpg 6 | 5: /doomtrooper/classic/base/BaseSet-00124.jpg 7 | 5: /doomtrooper/classic/base/BaseSet-00130.jpg 8 | 4: /doomtrooper/classic/base/BaseSet-00133.jpg 9 | 5: /doomtrooper/classic/base/BaseSet-00174.jpg 10 | 3: /doomtrooper/classic/base/BaseSet-00286.jpg 11 | 5: /doomtrooper/classic/base/BaseSet-00288.jpg 12 | 5: /doomtrooper/classic/base/BaseSet-00293.jpg 13 | 5: /doomtrooper/classic/base/BaseSet-00303.jpg 14 | 5: /doomtrooper/classic/base/BaseSet-00304.jpg 15 | 5: /doomtrooper/classic/base/BaseSet-00308.jpg 16 | 3: /doomtrooper/classic/base/BaseSet-00312.jpg 17 | 1: /doomtrooper/classic/base/BaseSet-00315.jpg 18 | 5: /doomtrooper/classic/base/BaseSet-00320.jpg 19 | 5: /doomtrooper/classic/base/BaseSet-00321.jpg 20 | 5: /doomtrooper/classic/base/BaseSet-00322.jpg 21 | 3: /doomtrooper/classic/base/BaseSet-00332.jpg 22 | 1: /doomtrooper/classic/Golgothaeng/armory.jpg 23 | 1: /doomtrooper/classic/Golgothaeng/bauhausbank.jpg 24 | 5: /doomtrooper/classic/Golgothaeng/scramblingdevice.jpg 25 | 5: /doomtrooper/classic/Inquisitioneng/armorofthetrueassassin.jpg 26 | 5: /doomtrooper/classic/Inquisitioneng/desperatetimes.jpg 27 | 5: /doomtrooper/classic/Inquisitioneng/doubleduty.jpg 28 | 4: /doomtrooper/classic/Inquisitioneng/industrialcomplex.jpg 29 | 5: /doomtrooper/classic/Inquisitioneng/lootandpillage.jpg 30 | 3: /doomtrooper/classic/Inquisitioneng/necromower.jpg 31 | 3: /doomtrooper/classic/Inquisitioneng/nimrodmk1.jpg 32 | 3: /doomtrooper/classic/Inquisitioneng/smellofwar.jpg 33 | 3: /doomtrooper/classic/Inquisitioneng/waveofrightousness.jpg 34 | 4: /doomtrooper/classic/Mortificatoreng/joker.jpg 35 | 3: /doomtrooper/classic/Mortificatoreng/localthug.jpg 36 | 1: /doomtrooper/classic/Mortificatoreng/lunamemorialhospital.jpg 37 | 3: /doomtrooper/classic/Mortificatoreng/mercenary.jpg 38 | 3: /doomtrooper/classic/Mortificatoreng/tryandstopme.jpg 39 | 3: /doomtrooper/classic/Paradiselosteng/brotherhoodarchives.JPG 40 | 3: /doomtrooper/classic/Apocalypseeng/brotherclaudius.jpg 41 | 3: /doomtrooper/classic/Apocalypseeng/brotherstern.jpg 42 | 5: /doomtrooper/classic/Apocalypseeng/elementalmaster.jpg 43 | 4: /doomtrooper/classic/base/BaseSet-00047.jpg 44 | 5: /doomtrooper/classic/base/BaseSet-00048.jpg 45 | 4: /doomtrooper/classic/base/BaseSet-00049.jpg 46 | 4: /doomtrooper/classic/base/BaseSet-00050.jpg 47 | 3: /doomtrooper/classic/base/BaseSet-00204.jpg 48 | 4: /doomtrooper/classic/base/BaseSet-00206.jpg 49 | 5: /doomtrooper/classic/base/BaseSet-00207.jpg 50 | 4: /doomtrooper/classic/base/BaseSet-00271.jpg 51 | 4: /doomtrooper/classic/Golgothaeng/inquisitorsimon.jpg 52 | 5: /doomtrooper/classic/Inquisitioneng/ac41purifier.jpg 53 | 5: /doomtrooper/classic/Inquisitioneng/bookoflaw.jpg 54 | 5: /doomtrooper/classic/Inquisitioneng/bringeroflight.jpg 55 | 5: /doomtrooper/classic/Inquisitioneng/cardinaldurand.jpg 56 | 5: /doomtrooper/classic/Inquisitioneng/gustsofhesitation.jpg 57 | 5: /doomtrooper/classic/Inquisitioneng/hiddencache.jpg 58 | 2: /doomtrooper/classic/Inquisitioneng/nathanielsopportunity.jpg 59 | 3: /doomtrooper/classic/Mortificatoreng/crenshawtheredeemer.jpg 60 | 5: /doomtrooper/classic/Mortificatoreng/deathmaze.jpg 61 | 3: /doomtrooper/classic/Paradiselosteng/grinderislandteammember.JPG 62 | 3: /doomtrooper/classic/Paradiselosteng/indigoislandteammember.JPG 63 | 3: /doomtrooper/playersExp/revival/Guerrieri/Nicholai.jpg 64 | p: discarded 65 | p: anhilated 66 | -------------------------------------------------------------------------------- /src/cardmanager/gui/impl/MemoWatcher.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package cardmanager.gui.impl; 7 | 8 | import cardmanager.impl.Settings; 9 | import javax.swing.JTextArea; 10 | import javax.swing.event.DocumentEvent; 11 | import javax.swing.event.DocumentListener; 12 | 13 | /** 14 | * 15 | * @author Jirka 16 | */ 17 | public class MemoWatcher implements Runnable,DocumentListener { 18 | private JTextArea memo; 19 | private Settings settings; 20 | private long firstTimeModified=0; 21 | private long lastTimeModified=0; 22 | private boolean modificationInProgerss=false; 23 | public String last=""; 24 | 25 | public MemoWatcher(JTextArea jTextArea1, Settings settings) { 26 | this.memo=jTextArea1; 27 | this.settings=settings; 28 | new Thread(this).start(); 29 | memo.getDocument().addDocumentListener(this); 30 | } 31 | 32 | public void updateText(String s) { 33 | memo.getDocument().removeDocumentListener(this); 34 | try { 35 | int p = memo.getCaretPosition(); 36 | memo.setText(s); 37 | if (p>=s.length()){ 38 | memo.setCaretPosition(0); 39 | }else{ 40 | memo.setCaretPosition(p); 41 | } 42 | } catch (Exception ex) { 43 | try { 44 | memo.setText(s); 45 | memo.setCaretPosition(0); 46 | } catch (Exception exx) { 47 | exx.printStackTrace(); 48 | } 49 | ex.printStackTrace(); 50 | } 51 | memo.getDocument().addDocumentListener(this); 52 | } 53 | 54 | public void onChange() { 55 | lastTimeModified = System.currentTimeMillis(); 56 | if (!modificationInProgerss) { 57 | firstTimeModified = System.currentTimeMillis(); 58 | settings.getTemp().getLogger().writeSharedMessage("Started editing of shared textfield"); 59 | modificationInProgerss = true; 60 | } 61 | } 62 | 63 | public void run() { 64 | int counter=0; 65 | while(true){ 66 | try{ 67 | Thread.sleep(100); 68 | long currentTime = System.currentTimeMillis(); 69 | counter++; 70 | if(counter>10000) counter=0; 71 | if (modificationInProgerss && counter%10==0){ 72 | sendContent(); 73 | } 74 | if(modificationInProgerss && (currentTime-lastTimeModified)/1000>3){ 75 | modificationInProgerss=false; 76 | lastTimeModified=0; 77 | firstTimeModified=0; 78 | settings.getTemp().getLogger().writeSharedMessage("Finished editing of shared textfield"); 79 | //??sendContent(); 80 | } 81 | 82 | 83 | }catch(Throwable t){ 84 | t.printStackTrace(); 85 | } 86 | } 87 | } 88 | 89 | public void insertUpdate(DocumentEvent e) { 90 | onChange(); 91 | } 92 | 93 | public void removeUpdate(DocumentEvent e) { 94 | onChange(); 95 | } 96 | 97 | public void changedUpdate(DocumentEvent e) { 98 | onChange(); 99 | } 100 | 101 | private void sendContent() { 102 | if (settings.getTemp().getNetwork()!=null){ 103 | String q=memo.getText(); 104 | if (last.equals(q)) return; 105 | last=q; 106 | settings.getTemp().getNetwork().sendSharedContent(q); 107 | } 108 | 109 | } 110 | 111 | } 112 | -------------------------------------------------------------------------------- /src/cardmanager/impl/networking/JoinedPlayer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JoinedPlayer.java 3 | * 4 | * Created on 23. duben 2007, 10:19 5 | * 6 | * To change this template, choose Tools | Template Manager 7 | * and open the template in the editor. 8 | */ 9 | package cardmanager.impl.networking; 10 | 11 | import java.io.BufferedReader; 12 | import java.io.BufferedWriter; 13 | import java.io.IOException; 14 | import java.io.InputStreamReader; 15 | import java.io.OutputStreamWriter; 16 | import java.net.InetAddress; 17 | import java.net.Socket; 18 | import java.net.SocketException; 19 | import java.util.Observable; 20 | import java.util.Observer; 21 | 22 | /** 23 | * 24 | * @author Jirka 25 | */ 26 | public class JoinedPlayer extends Observable implements Runnable { 27 | 28 | private String name; 29 | private InetAddress ip; 30 | private BufferedWriter out; 31 | private BufferedReader in; 32 | private Socket socket; 33 | private Thread watchDog; 34 | 35 | public void startDog() { 36 | watchDog = new Thread(this); 37 | watchDog.start(); 38 | } 39 | 40 | public BufferedReader getIn() { 41 | return in; 42 | } 43 | 44 | public InetAddress getIp() { 45 | return ip; 46 | } 47 | 48 | public void setName(String name) { 49 | this.name = name; 50 | } 51 | 52 | public String getName() { 53 | return name; 54 | } 55 | 56 | public BufferedWriter getOut() { 57 | return out; 58 | } 59 | 60 | public Socket getSocket() { 61 | return socket; 62 | } 63 | 64 | /** Creates a new instance of JoinedPlayer */ 65 | public JoinedPlayer(Socket socket, BufferedReader in, BufferedWriter out, String name) { 66 | this.socket = socket; 67 | this.ip = socket.getInetAddress(); 68 | this.name = name; 69 | /* try { 70 | in = new BufferedReader( 71 | new InputStreamReader( 72 | socket.getInputStream())); 73 | 74 | out = new BufferedWriter( 75 | new OutputStreamWriter( 76 | socket.getOutputStream())); 77 | } catch (IOException ex) { 78 | ex.printStackTrace(); 79 | }*/ 80 | this.in = in; 81 | this.out = out; 82 | 83 | 84 | } 85 | 86 | @Override 87 | public String toString() { 88 | return name; 89 | } 90 | 91 | public void messageToServer(String s) { 92 | System.out.println("Client out: " + s); 93 | try { 94 | getOut().write(s + "\n"); 95 | getOut().flush(); 96 | } catch (IOException ex) { 97 | ex.printStackTrace(); 98 | } 99 | } 100 | 101 | public void run() { 102 | while (true) { 103 | try { 104 | String s = in.readLine(); 105 | if (s == null) { 106 | return; 107 | } 108 | System.out.println("Client in: " + s); 109 | this.setChanged(); 110 | notifyObservers(s); 111 | }catch (SocketException ex){ 112 | ex.printStackTrace(); 113 | break; 114 | } catch (Throwable t) { 115 | t.printStackTrace(); 116 | } 117 | } 118 | } 119 | 120 | public void closeAll() { 121 | try { 122 | getOut().close(); 123 | } catch (Exception ex) { 124 | ex.printStackTrace(); 125 | } 126 | try { 127 | getIn().close(); 128 | } catch (Exception ex) { 129 | ex.printStackTrace(); 130 | } 131 | try { 132 | getSocket().close(); 133 | } catch (Exception ex) { 134 | ex.printStackTrace(); 135 | } 136 | } 137 | } 138 | -------------------------------------------------------------------------------- /src/cardmanager/impl/card/Marker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package cardmanager.impl.card; 6 | 7 | import cardmanager.impl.card.CardGeometry; 8 | import java.awt.Color; 9 | import java.util.ArrayList; 10 | import java.util.Date; 11 | import java.util.List; 12 | import java.util.Random; 13 | 14 | public class Marker { 15 | 16 | private static final Random idHelepr = new Random(); 17 | CardGeometry geometry; 18 | Color color; 19 | String id; 20 | String txt; 21 | 22 | public String getTxt() { 23 | return txt; 24 | } 25 | 26 | public void setTxt(String txt) { 27 | this.txt = txt; 28 | } 29 | 30 | 31 | 32 | public CardGeometry getGeometry() { 33 | return geometry; 34 | } 35 | 36 | public void setColor(Color color) { 37 | this.color = color; 38 | } 39 | 40 | 41 | 42 | public String getId() { 43 | return id; 44 | } 45 | 46 | public Color getColor() { 47 | return color; 48 | } 49 | 50 | public void setGeometry(CardGeometry geometry) { 51 | this.geometry = geometry; 52 | } 53 | 54 | private Marker(CardGeometry geometry, Color color, String id,String txt) { 55 | this.geometry = geometry; 56 | this.color = color; 57 | this.id = id; 58 | this.txt=txt; 59 | } 60 | 61 | public Marker(Color color,String txt) { 62 | this(0, 0, color,txt); 63 | } 64 | 65 | public Marker(int x, int y, Color color,String txt) { 66 | this(new CardGeometry(x, y, 0), color, generateID(color,txt),txt); 67 | } 68 | 69 | public static String generateID(Color c,String txt) { 70 | int i = idHelepr.nextInt(); 71 | Date dt = new Date(); 72 | String clr = Integer.toHexString(c.getRGB()).substring(2).toUpperCase(); 73 | Integer hash =txt.hashCode(); 74 | return i + "#" + clr + "#" + dt.getTime()+"#"+hash.toString(); 75 | 76 | 77 | } 78 | 79 | public static Marker markerFromSentence(String c) { 80 | String[] elements = c.split(":"); 81 | String id = elements[0]; 82 | Color color = new Color(new Integer(elements[1])); 83 | String TXT = elements[2]; 84 | String txt=TXT.replace("URUGUL",":").replace("IOUNMB",";"); 85 | int x = new Integer(elements[3]); 86 | int y = new Integer(elements[4]); 87 | double r = new Double(elements[5]); 88 | Marker m = new Marker(new CardGeometry(x, y, r), color, id,txt); 89 | return m; 90 | } 91 | 92 | public static List markerssFromSentences(String q) { 93 | String[] c = q.split(";"); 94 | List r = new ArrayList(c.length); 95 | for (int i = 0; i < c.length; i++) { 96 | String string = c[i]; 97 | r.add(markerFromSentence(string)); 98 | } 99 | 100 | return r; 101 | 102 | } 103 | 104 | public String getSentence() { 105 | 106 | 107 | if (getGeometry() == null) { 108 | setGeometry(new CardGeometry(0, 0, 0)); 109 | 110 | } 111 | StringBuilder sb = new StringBuilder(); 112 | String TXT=txt.replace(":", "URUGUL").replace(";", "IOUNMB"); 113 | sb.append(getId()).append(":").append(color.getRGB()).append(":").append(TXT).append(":"). 114 | append(getGeometry().getSentence()).append(";"); 115 | return sb.toString(); 116 | } 117 | 118 | @Override 119 | public boolean equals(Object obj) { 120 | if (!(obj instanceof Marker)) { 121 | return false; 122 | } 123 | return this.getId().equals(((Marker) obj).getId()); 124 | } 125 | 126 | @Override 127 | public int hashCode() { 128 | return id.hashCode(); 129 | } 130 | } 131 | --------------------------------------------------------------------------------