mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
add initial Launch4j support and one card
This commit is contained in:
parent
be2fdd6487
commit
1fdc50570f
6 changed files with 402 additions and 216 deletions
|
@ -141,6 +141,44 @@
|
||||||
</descriptors>
|
</descriptors>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.akathist.maven.plugins.launch4j</groupId>
|
||||||
|
<artifactId>launch4j-maven-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>l4j-mage-client</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>launch4j</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<headerType>console</headerType>
|
||||||
|
<outfile>target/mage-client-${project.version}.exe</outfile>
|
||||||
|
<jar>target/mage-client.jar</jar>
|
||||||
|
<errTitle>Mage Client</errTitle>
|
||||||
|
<classPath>
|
||||||
|
<mainClass>mage.client.MageFrame</mainClass>
|
||||||
|
<addDependencies>true</addDependencies>
|
||||||
|
<preCp>anything</preCp>
|
||||||
|
</classPath>
|
||||||
|
<jre>
|
||||||
|
<minVersion>1.5.0</minVersion>
|
||||||
|
</jre>
|
||||||
|
<versionInfo>
|
||||||
|
<fileVersion>0.7.2.0</fileVersion>
|
||||||
|
<txtFileVersion>MAGE Client</txtFileVersion>
|
||||||
|
<fileDescription>Mage Client</fileDescription>
|
||||||
|
<copyright>(C) Mage Development Team</copyright>
|
||||||
|
<productVersion>0.7.2.0</productVersion>
|
||||||
|
<txtProductVersion>MAGE Client</txtProductVersion>
|
||||||
|
<productName>MAGE</productName>
|
||||||
|
<internalName>Mage-Client</internalName>
|
||||||
|
<originalFilename>original.exe</originalFilename>
|
||||||
|
</versionInfo>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
<finalName>mage-client</finalName>
|
<finalName>mage-client</finalName>
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
<include>org.mage:Mage-Theme-Plugin</include>
|
<include>org.mage:Mage-Theme-Plugin</include>
|
||||||
<include>org.mage:Mage-Card-Plugin</include>
|
<include>org.mage:Mage-Card-Plugin</include>
|
||||||
<include>org.mage:Mage-Counter-Plugin</include>
|
<include>org.mage:Mage-Counter-Plugin</include>
|
||||||
|
<include>org.mage:Mage-Counter-Plugin</include>
|
||||||
</includes>
|
</includes>
|
||||||
</dependencySet>
|
</dependencySet>
|
||||||
</dependencySets>
|
</dependencySets>
|
||||||
|
@ -38,5 +39,13 @@
|
||||||
<directory>release/</directory>
|
<directory>release/</directory>
|
||||||
<outputDirectory>/</outputDirectory>
|
<outputDirectory>/</outputDirectory>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
|
<fileSet>
|
||||||
|
<filtered>false</filtered>
|
||||||
|
<directory>target/</directory>
|
||||||
|
<includes>
|
||||||
|
<include>*.exe</include>
|
||||||
|
</includes>
|
||||||
|
<outputDirectory>/</outputDirectory>
|
||||||
|
</fileSet>
|
||||||
</fileSets>
|
</fileSets>
|
||||||
</assembly>
|
</assembly>
|
||||||
|
|
|
@ -171,6 +171,44 @@
|
||||||
<encoding>UTF-8</encoding>
|
<encoding>UTF-8</encoding>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.akathist.maven.plugins.launch4j</groupId>
|
||||||
|
<artifactId>launch4j-maven-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>l4j-mage-server</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>launch4j</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<headerType>console</headerType>
|
||||||
|
<outfile>target/mage-server-${project.version}.exe</outfile>
|
||||||
|
<jar>target/mage-server.jar</jar>
|
||||||
|
<errTitle>Mage Server</errTitle>
|
||||||
|
<classPath>
|
||||||
|
<mainClass>mage.server.Main</mainClass>
|
||||||
|
<addDependencies>true</addDependencies>
|
||||||
|
<preCp>anything</preCp>
|
||||||
|
</classPath>
|
||||||
|
<jre>
|
||||||
|
<minVersion>1.5.0</minVersion>
|
||||||
|
</jre>
|
||||||
|
<versionInfo>
|
||||||
|
<fileVersion>0.7.2.0</fileVersion>
|
||||||
|
<txtFileVersion>MAGE Server</txtFileVersion>
|
||||||
|
<fileDescription>Mage Server</fileDescription>
|
||||||
|
<copyright>(C) Mage Development Team</copyright>
|
||||||
|
<productVersion>0.7.2.0</productVersion>
|
||||||
|
<txtProductVersion>MAGE Server</txtProductVersion>
|
||||||
|
<productName>MAGE</productName>
|
||||||
|
<internalName>Mage-Server</internalName>
|
||||||
|
<originalFilename>original.exe</originalFilename>
|
||||||
|
</versionInfo>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
<finalName>mage-server</finalName>
|
<finalName>mage-server</finalName>
|
||||||
|
|
|
@ -52,5 +52,13 @@
|
||||||
<directory>release/</directory>
|
<directory>release/</directory>
|
||||||
<outputDirectory>/</outputDirectory>
|
<outputDirectory>/</outputDirectory>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
|
<fileSet>
|
||||||
|
<filtered>false</filtered>
|
||||||
|
<directory>target/</directory>
|
||||||
|
<includes>
|
||||||
|
<include>*.exe</include>
|
||||||
|
</includes>
|
||||||
|
<outputDirectory>/</outputDirectory>
|
||||||
|
</fileSet>
|
||||||
</fileSets>
|
</fileSets>
|
||||||
</assembly>
|
</assembly>
|
||||||
|
|
79
Mage.Sets/src/mage/sets/mirrodinbesieged/TreasureMage.java
Normal file
79
Mage.Sets/src/mage/sets/mirrodinbesieged/TreasureMage.java
Normal file
|
@ -0,0 +1,79 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without modification, are
|
||||||
|
* permitted provided that the following conditions are met:
|
||||||
|
*
|
||||||
|
* 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||||
|
* conditions and the following disclaimer.
|
||||||
|
*
|
||||||
|
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||||
|
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||||
|
* provided with the distribution.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||||
|
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
|
||||||
|
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||||
|
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||||
|
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||||
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
|
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*
|
||||||
|
* The views and conclusions contained in the software and documentation are those of the
|
||||||
|
* authors and should not be interpreted as representing official policies, either expressed
|
||||||
|
* or implied, of BetaSteward_at_googlemail.com.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package mage.sets.mirrodinbesieged;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
import mage.Constants.CardType;
|
||||||
|
import mage.Constants.Rarity;
|
||||||
|
import mage.MageInt;
|
||||||
|
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||||
|
import mage.abilities.effects.SearchEffect;
|
||||||
|
import mage.abilities.effects.common.search.SearchLibraryRevealPutInHandEffect;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.filter.Filter;
|
||||||
|
import mage.filter.FilterCard;
|
||||||
|
import mage.target.common.TargetCardInLibrary;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Loki
|
||||||
|
*/
|
||||||
|
public class TreasureMage extends CardImpl<TreasureMage> {
|
||||||
|
|
||||||
|
private static FilterCard filter = new FilterCard("an artifact card with converted mana cost 6 or more");
|
||||||
|
|
||||||
|
static {
|
||||||
|
filter.getCardType().add(CardType.ARTIFACT);
|
||||||
|
filter.setConvertedManaCost(5);
|
||||||
|
filter.setConvertedManaCostComparison(Filter.ComparisonType.GreaterThan);
|
||||||
|
}
|
||||||
|
|
||||||
|
public TreasureMage (UUID ownerId) {
|
||||||
|
super(ownerId, 34, "Treasure Mage", Rarity.UNCOMMON, new CardType[]{CardType.CREATURE}, "{2}{U}");
|
||||||
|
this.expansionSetCode = "MBS";
|
||||||
|
this.subtype.add("Human");
|
||||||
|
this.subtype.add("Wizard");
|
||||||
|
this.color.setBlue(true);
|
||||||
|
this.power = new MageInt(2);
|
||||||
|
this.toughness = new MageInt(2);
|
||||||
|
TargetCardInLibrary target = new TargetCardInLibrary(0, 1, filter);
|
||||||
|
SearchEffect effect = new SearchLibraryRevealPutInHandEffect(target);
|
||||||
|
this.addAbility(new EntersBattlefieldTriggeredAbility(effect, true));
|
||||||
|
}
|
||||||
|
|
||||||
|
public TreasureMage (final TreasureMage card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public TreasureMage copy() {
|
||||||
|
return new TreasureMage(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
14
pom.xml
14
pom.xml
|
@ -31,6 +31,7 @@
|
||||||
<module>Mage.Client</module>
|
<module>Mage.Client</module>
|
||||||
<module>Mage.Plugins</module>
|
<module>Mage.Plugins</module>
|
||||||
<module>Mage.Server.Plugins</module>
|
<module>Mage.Server.Plugins</module>
|
||||||
|
<module>Mage.Tests</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
|
@ -43,8 +44,21 @@
|
||||||
<name>Jetlang Repository for Maven</name>
|
<name>Jetlang Repository for Maven</name>
|
||||||
<url>http://jetlang.googlecode.com/svn/repo/</url>
|
<url>http://jetlang.googlecode.com/svn/repo/</url>
|
||||||
</repository>
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>akathist-repository</id>
|
||||||
|
<name>Akathist Repository</name>
|
||||||
|
<url>http://www.9stmaryrd.com/maven</url>
|
||||||
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
|
<pluginRepositories>
|
||||||
|
<pluginRepository>
|
||||||
|
<id>akathist-repository</id>
|
||||||
|
<name>Akathist Repository</name>
|
||||||
|
<url>http://www.9stmaryrd.com/maven</url>
|
||||||
|
</pluginRepository>
|
||||||
|
</pluginRepositories>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<mage-version>0.7.2</mage-version>
|
<mage-version>0.7.2</mage-version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
Loading…
Reference in a new issue