mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Merge branch 'master' of https://github.com/magefree/mage.git
This commit is contained in:
commit
d925dda0f8
22 changed files with 63 additions and 64 deletions
|
@ -4,4 +4,4 @@ set JAVA_HOME="C:\Program Files\Java\jre6"
|
|||
set CLASSPATH=%JAVA_HOME%/bin;%CLASSPATH%
|
||||
set PATH=%JAVA_HOME%/bin;%PATH%
|
||||
:NOJAVADIR
|
||||
start javaw -jar .\lib\mage-client-${project.version}.jar -Xms256M -Xmx1024M
|
||||
start javaw -jar .\lib\mage-client-${project.version}.jar -Xms256M -Xmx1024M -XX:MaxPermSize=256M -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
cd "`dirname "$0"`"
|
||||
|
||||
java -jar ./lib/mage-client-${project.version}.jar -Xms256M -Xmx1024M &
|
||||
java -jar ./lib/mage-client-${project.version}.jar -Xms256M -Xmx1024M -XX:MaxPermSize=256M -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled &
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
java -jar ./lib/mage-client-${project.version}.jar -Xms256M -Xmx1024M &
|
||||
java -jar ./lib/mage-client-${project.version}.jar -Xms256M -Xmx1024M -XX:MaxPermSize=256M -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled &
|
|
@ -4,4 +4,4 @@ set JAVA_HOME="C:\Program Files (x86)\Java\jre6\"
|
|||
set CLASSPATH=%JAVA_HOME%/bin;%CLASSPATH%
|
||||
set PATH=%JAVA_HOME%/bin;%PATH%
|
||||
:NOJAVADIR
|
||||
start javaw -jar .\lib\mage-client-${project.version}.jar -Xms256M -Xmx1024M
|
||||
start javaw -jar .\lib\mage-client-${project.version}.jar -Xms256M -Xmx1024M -XX:MaxPermSize=256M -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled
|
|
@ -318,7 +318,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
@Override
|
||||
public void run() {
|
||||
disableButtons();
|
||||
if (PreferencesDialog.getCachedValue(PreferencesDialog.KEY_CARD_IMAGES_CHECK, "true").equals("true")) {
|
||||
if (PreferencesDialog.getCachedValue(PreferencesDialog.KEY_CARD_IMAGES_CHECK, "false").equals("true")) {
|
||||
checkForNewImages();
|
||||
}
|
||||
logger.info("Client start up time: " + ((System.currentTimeMillis() - startTime) / 1000 + " seconds"));
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
@ECHO OFF
|
||||
java -Djava.security.policy=./config/security.policy -Djava.util.logging.config.file=./config/logging.config -Dlog4j.configuration=file:./config/log4j.properties -jar ./lib/mage-server-${project.version}.jar -Xms256M -Xmx512M
|
||||
java -Djava.security.policy=./config/security.policy -Djava.util.logging.config.file=./config/logging.config -Dlog4j.configuration=file:./config/log4j.properties -jar ./lib/mage-server-${project.version}.jar -Xms256M -Xmx512M -XX:MaxPermSize=256m
|
||||
pause
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
cd "`dirname "$0"`"
|
||||
|
||||
java -Djava.security.policy=./config/security.policy -Djava.util.logging.config.file=./config/logging.config -Dlog4j.configuration=file:./config/log4j.properties -jar ./lib/mage-server-${project.version}.jar -Xms256M -Xmx512M
|
||||
java -Djava.security.policy=./config/security.policy -Djava.util.logging.config.file=./config/logging.config -Dlog4j.configuration=file:./config/log4j.properties -jar ./lib/mage-server-${project.version}.jar -Xms256M -Xmx512M -XX:MaxPermSize=256m
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
java -Djava.security.policy=./config/security.policy -Djava.util.logging.config.file=./config/logging.config -Dlog4j.configuration=file:./config/log4j.properties -jar ./lib/mage-server-${project.version}.jar -Xms256M -Xmx512M
|
||||
java -Djava.security.policy=./config/security.policy -Djava.util.logging.config.file=./config/logging.config -Dlog4j.configuration=file:./config/log4j.properties -jar ./lib/mage-server-${project.version}.jar -Xms256M -Xmx512M -XX:MaxPermSize=256m
|
||||
|
|
|
@ -4,4 +4,4 @@ set JAVA_HOME="C:\Program Files (x86)\Java\jre6\"
|
|||
set CLASSPATH=%JAVA_HOME%/bin;%CLASSPATH%
|
||||
set PATH=%JAVA_HOME%/bin;%PATH%
|
||||
:NOJAVADIR
|
||||
java -Djava.security.policy=./config/security.policy -Djava.util.logging.config.file=./config/logging.config -Dlog4j.configuration=file:./config/log4j.properties -jar ./lib/mage-server-${project.version}.jar -Xms256M -Xmx512M
|
||||
java -Djava.security.policy=./config/security.policy -Djava.util.logging.config.file=./config/logging.config -Dlog4j.configuration=file:./config/log4j.properties -jar ./lib/mage-server-${project.version}.jar -Xms256M -Xmx512M -XX:MaxPermSize=256m
|
|
@ -27,8 +27,6 @@
|
|||
*/
|
||||
package mage.sets.futuresight;
|
||||
|
||||
import com.sun.corba.se.impl.orbutil.closure.Constant;
|
||||
import java.util.UUID;
|
||||
import mage.Constants;
|
||||
import mage.Constants.CardType;
|
||||
import mage.Constants.Rarity;
|
||||
|
@ -37,10 +35,8 @@ import mage.abilities.common.ZoneChangeTriggeredAbility;
|
|||
import mage.abilities.effects.common.ReturnSourceFromGraveyardToBattlefieldEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.counters.CounterType;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
|
@ -27,9 +27,6 @@
|
|||
*/
|
||||
package mage.sets.gatecrash;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import mage.Constants;
|
||||
import mage.Constants.CardType;
|
||||
import mage.Constants.Outcome;
|
||||
|
@ -55,6 +52,10 @@ import mage.target.common.TargetCreatureOrPlayerAmount;
|
|||
import mage.target.targetpointer.FixedTarget;
|
||||
import mage.watchers.WatcherImpl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* GATECRASH FAQ 11.01.2013
|
||||
*
|
||||
|
@ -198,8 +199,8 @@ class AureliasFuryDamagedByWatcher extends WatcherImpl<AureliasFuryDamagedByWatc
|
|||
|
||||
public AureliasFuryDamagedByWatcher(final AureliasFuryDamagedByWatcher watcher) {
|
||||
super(watcher);
|
||||
this.damagedCreatures = watcher.damagedCreatures;
|
||||
this.damagedPlayers = watcher.damagedPlayers;
|
||||
this.damagedCreatures.addAll(watcher.damagedCreatures);
|
||||
this.damagedPlayers.addAll(watcher.damagedPlayers);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -27,9 +27,6 @@
|
|||
*/
|
||||
package mage.sets.iceage;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import mage.Constants;
|
||||
import mage.Constants.CardType;
|
||||
import mage.Constants.Rarity;
|
||||
|
@ -52,6 +49,10 @@ import mage.game.permanent.Permanent;
|
|||
import mage.target.common.TargetCreaturePermanent;
|
||||
import mage.watchers.WatcherImpl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Plopman
|
||||
|
@ -105,7 +106,7 @@ class BlockedByWatcher extends WatcherImpl<BlockedByWatcher> {
|
|||
|
||||
public BlockedByWatcher(final BlockedByWatcher watcher) {
|
||||
super(watcher);
|
||||
this.blockedByWatcher = watcher.blockedByWatcher;
|
||||
this.blockedByWatcher.addAll(watcher.blockedByWatcher);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -110,7 +110,7 @@ class FaithsRewardWatcher extends WatcherImpl<FaithsRewardWatcher> {
|
|||
|
||||
public FaithsRewardWatcher(final FaithsRewardWatcher watcher) {
|
||||
super(watcher);
|
||||
this.cards = (ArrayList<UUID>) watcher.cards.clone();
|
||||
this.cards.addAll(watcher.cards);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -27,15 +27,8 @@
|
|||
*/
|
||||
package mage.sets.newphyrexia;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import mage.Constants;
|
||||
import mage.Constants.CardType;
|
||||
import mage.Constants.Rarity;
|
||||
import mage.Constants.TurnPhase;
|
||||
import mage.Constants.WatcherScope;
|
||||
import mage.Constants.Zone;
|
||||
import mage.Constants.*;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.ZoneChangeTriggeredAbility;
|
||||
|
@ -47,6 +40,10 @@ import mage.game.events.GameEvent;
|
|||
import mage.game.permanent.Permanent;
|
||||
import mage.watchers.WatcherImpl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward
|
||||
|
@ -149,7 +146,7 @@ class CathedralMembraneWatcher extends WatcherImpl<CathedralMembraneWatcher> {
|
|||
|
||||
public CathedralMembraneWatcher(final CathedralMembraneWatcher watcher) {
|
||||
super(watcher);
|
||||
this.blockedCreatures = watcher.blockedCreatures;
|
||||
this.blockedCreatures.addAll(watcher.blockedCreatures);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -30,6 +30,7 @@ package mage.sets.scarsofmirrodin;
|
|||
import mage.Constants;
|
||||
import mage.Constants.CardType;
|
||||
import mage.Constants.Rarity;
|
||||
import mage.Constants.WatcherScope;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.ActivateOncePerTurnActivatedAbility;
|
||||
|
@ -40,15 +41,16 @@ import mage.abilities.effects.OneShotEffect;
|
|||
import mage.abilities.effects.common.continious.BoostSourceEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.filter.common.FilterNonlandPermanent;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.DamagedPlayerEvent;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.watchers.WatcherImpl;
|
||||
|
||||
import java.util.*;
|
||||
import mage.Constants.WatcherScope;
|
||||
import mage.filter.common.FilterNonlandPermanent;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author nantuko
|
||||
|
@ -125,9 +127,7 @@ class SteelHellkiteWatcher extends WatcherImpl<SteelHellkiteWatcher> {
|
|||
|
||||
public SteelHellkiteWatcher(final SteelHellkiteWatcher watcher) {
|
||||
super(watcher);
|
||||
for (UUID playerId: watcher.damagedPlayers) {
|
||||
damagedPlayers.add(playerId);
|
||||
}
|
||||
damagedPlayers.addAll(watcher.damagedPlayers);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -27,13 +27,8 @@
|
|||
*/
|
||||
package mage.sets.zendikar;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.Constants;
|
||||
import mage.Constants.CardType;
|
||||
import mage.Constants.Duration;
|
||||
import mage.Constants.Outcome;
|
||||
import mage.Constants.Rarity;
|
||||
import mage.Constants.WatcherScope;
|
||||
import mage.Constants.*;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.TriggeredAbilityImpl;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
|
@ -50,6 +45,8 @@ import mage.players.Player;
|
|||
import mage.target.common.TargetCardInLibrary;
|
||||
import mage.watchers.WatcherImpl;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jeffwadsworth
|
||||
|
@ -122,6 +119,7 @@ class CardsDrawnControllerWatcher extends WatcherImpl<CardsDrawnControllerWatche
|
|||
|
||||
public CardsDrawnControllerWatcher(final CardsDrawnControllerWatcher watcher) {
|
||||
super(watcher);
|
||||
this.cardsDrawn = watcher.cardsDrawn;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -27,9 +27,6 @@
|
|||
*/
|
||||
package mage.sets.zendikar;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import mage.Constants;
|
||||
import mage.Constants.CardType;
|
||||
import mage.Constants.Outcome;
|
||||
|
@ -49,6 +46,10 @@ import mage.game.permanent.Permanent;
|
|||
import mage.players.Player;
|
||||
import mage.watchers.WatcherImpl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jeffwadsworth
|
||||
|
@ -142,7 +143,7 @@ class BlockedByWatcher extends WatcherImpl<BlockedByWatcher> {
|
|||
|
||||
public BlockedByWatcher(final BlockedByWatcher watcher) {
|
||||
super(watcher);
|
||||
this.blockedByWatcher = watcher.blockedByWatcher;
|
||||
this.blockedByWatcher.addAll(watcher.blockedByWatcher);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
*/
|
||||
package mage.sets.zendikar;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.Constants.CardType;
|
||||
import mage.Constants.Rarity;
|
||||
import mage.Constants.WatcherScope;
|
||||
|
@ -43,6 +42,8 @@ import mage.players.Player;
|
|||
import mage.target.TargetPlayer;
|
||||
import mage.watchers.WatcherImpl;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jeffwadsworth
|
||||
|
@ -114,6 +115,7 @@ class CardsDrawnOpponentWatcher extends WatcherImpl<CardsDrawnOpponentWatcher> {
|
|||
|
||||
public CardsDrawnOpponentWatcher(final CardsDrawnOpponentWatcher watcher) {
|
||||
super(watcher);
|
||||
this.cardsDrawn = watcher.cardsDrawn;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -49,7 +49,7 @@ public class AttackedThisTurnWatcher extends WatcherImpl<AttackedThisTurnWatcher
|
|||
|
||||
public AttackedThisTurnWatcher(final AttackedThisTurnWatcher watcher) {
|
||||
super(watcher);
|
||||
this.attackedThisTurnCreatures = watcher.attackedThisTurnCreatures;
|
||||
this.attackedThisTurnCreatures.addAll(watcher.attackedThisTurnCreatures);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -27,15 +27,16 @@
|
|||
*/
|
||||
package mage.watchers.common;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import mage.Constants.WatcherScope;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.events.GameEvent.EventType;
|
||||
import mage.watchers.WatcherImpl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
|
@ -50,7 +51,7 @@ public class DamagedByWatcher extends WatcherImpl<DamagedByWatcher> {
|
|||
|
||||
public DamagedByWatcher(final DamagedByWatcher watcher) {
|
||||
super(watcher);
|
||||
this.damagedCreatures = watcher.damagedCreatures;
|
||||
this.damagedCreatures.addAll(watcher.damagedCreatures);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -27,15 +27,16 @@
|
|||
*/
|
||||
package mage.watchers.common;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import mage.Constants.WatcherScope;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.events.GameEvent.EventType;
|
||||
import mage.watchers.WatcherImpl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* Watcher stores whitch sources did damage to a player
|
||||
*
|
||||
|
@ -52,7 +53,7 @@ public class PlayerDamagedBySourceWatcher extends WatcherImpl<PlayerDamagedBySou
|
|||
|
||||
public PlayerDamagedBySourceWatcher(final PlayerDamagedBySourceWatcher watcher) {
|
||||
super(watcher);
|
||||
this.damageSources = watcher.damageSources;
|
||||
this.damageSources.addAll(watcher.damageSources);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -27,15 +27,16 @@
|
|||
*/
|
||||
package mage.watchers.common;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import mage.Constants.WatcherScope;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.events.GameEvent.EventType;
|
||||
import mage.watchers.WatcherImpl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* Watcher stores which sources did damage to anything.
|
||||
*
|
||||
|
@ -51,7 +52,7 @@ public class SourceDidDamageWatcher extends WatcherImpl<SourceDidDamageWatcher>
|
|||
|
||||
public SourceDidDamageWatcher(final SourceDidDamageWatcher watcher) {
|
||||
super(watcher);
|
||||
this.damageSources = watcher.damageSources;
|
||||
this.damageSources.addAll(watcher.damageSources);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue