fixed rate plugin. add builded executable jar to mage.client, but can't load card classes - seems because of class loading changed.

This commit is contained in:
magenoxx 2011-01-24 10:22:32 +03:00
parent 8003a1073e
commit 6e7576abe7
7 changed files with 6 additions and 5 deletions

Binary file not shown.

View file

@ -70,7 +70,7 @@
</build>
<properties>
<plugin-version>0.3</plugin-version>
<plugin-version>0.5</plugin-version>
<jspf-version>0.9.1</jspf-version>
</properties>
</project>

View file

@ -20,12 +20,12 @@
<dependency>
<groupId>org.mage</groupId>
<artifactId>Mage-Card-Plugin</artifactId>
<version>0.3</version>
<version>0.5</version>
</dependency>
<dependency>
<groupId>org.mage</groupId>
<artifactId>Mage-Sets</artifactId>
<version>0.3</version>
<version>0.5.1</version>
</dependency>
<dependency>
<groupId>com.googlecode.jspf</groupId>

View file

@ -49,11 +49,11 @@ public class RateThread extends Thread {
Card card1 = getRandomUniqueNonLandCard(null);
Card card2 = getRandomUniqueNonLandCard(card1);
mageCard1 = impl.getMageCard(new CardView(card1), dimensions, UUID.randomUUID(), new RateCallback(card1, card2, this, bigCard));
mageCard1 = impl.getMageCard(new CardView(card1), dimensions, UUID.randomUUID(), new RateCallback(card1, card2, this, bigCard), false);
mageCard1.setCardBounds(bigCardDimension.frameWidth + 80, 10, dimensions.frameWidth, dimensions.frameHeight);
frame.add(mageCard1);
mageCard2 = impl.getMageCard(new CardView(card2), dimensions, UUID.randomUUID(), new RateCallback(card2, card1, this, bigCard));
mageCard2 = impl.getMageCard(new CardView(card2), dimensions, UUID.randomUUID(), new RateCallback(card2, card1, this, bigCard), false);
mageCard2.setCardBounds(bigCardDimension.frameWidth + 80 + dimensions.frameWidth + 30, 10, dimensions.frameWidth, dimensions.frameHeight);
frame.add(mageCard2);

View file

@ -14,6 +14,7 @@ public class CardsStorage {
private static List<Card> uniqueCards = new ArrayList<Card>();
static {
System.out.println("sets count: " + Sets.getInstance().values().size());
for (ExpansionSet set: Sets.getInstance().values()) {
allCards.addAll(set.createCards());
}