mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Some changes to logging.
This commit is contained in:
parent
2daae9fb47
commit
cc96a55523
7 changed files with 9 additions and 9 deletions
|
@ -257,7 +257,7 @@ public class AbilityPicker extends JXPanel implements MouseWheelListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
final String finalText = text;
|
final String finalText = text;
|
||||||
System.out.println(finalText);
|
// System.out.println(finalText);
|
||||||
|
|
||||||
ImageRenderer2.super.setText(finalText);
|
ImageRenderer2.super.setText(finalText);
|
||||||
setCaretPosition(0);
|
setCaretPosition(0);
|
||||||
|
|
|
@ -296,10 +296,10 @@ public class DialogManager extends JComponent implements MouseListener,
|
||||||
|
|
||||||
public void mouseWheelMoved(MouseWheelEvent e) {
|
public void mouseWheelMoved(MouseWheelEvent e) {
|
||||||
int notches = e.getWheelRotation();
|
int notches = e.getWheelRotation();
|
||||||
System.out.println("outx:"+notches);
|
// System.out.println("outx:"+notches);
|
||||||
if (currentDialog != null && currentDialog.equals(MTGDialogs.ChooseCommonDialog)) {
|
// if (currentDialog != null && currentDialog.equals(MTGDialogs.ChooseCommonDialog)) {
|
||||||
System.out.println("out:"+1);
|
// System.out.println("out:"+1);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -158,7 +158,7 @@ public class DeckGenerator {
|
||||||
List<Card> spellCardPool = generateSpellCardPool(cardPoolSize, allowedColors, setsToUse);
|
List<Card> spellCardPool = generateSpellCardPool(cardPoolSize, allowedColors, setsToUse);
|
||||||
List<Card> landCardPool = generateNonBasicLandCardPool(MAX_NON_BASIC_SOURCE, allowedColors, setsToUse);
|
List<Card> landCardPool = generateNonBasicLandCardPool(MAX_NON_BASIC_SOURCE, allowedColors, setsToUse);
|
||||||
|
|
||||||
System.out.println("deck generator card pool: spells=" + spellCardPool.size() + ", lands=" + landCardPool.size());
|
// System.out.println("deck generator card pool: spells=" + spellCardPool.size() + ", lands=" + landCardPool.size());
|
||||||
|
|
||||||
final List<String> setsToUseFinal = setsToUse;
|
final List<String> setsToUseFinal = setsToUse;
|
||||||
|
|
||||||
|
|
|
@ -411,7 +411,7 @@ public class ConnectDialog extends MageDialog {
|
||||||
List<String> servers = new ArrayList<String>();
|
List<String> servers = new ArrayList<String>();
|
||||||
String inputLine;
|
String inputLine;
|
||||||
while ((inputLine = in.readLine()) != null) {
|
while ((inputLine = in.readLine()) != null) {
|
||||||
System.out.println("Found server: " + inputLine);
|
logger.info("Found server: " + inputLine);
|
||||||
servers.add(inputLine);
|
servers.add(inputLine);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -123,7 +123,7 @@ public class GuiDisplayUtil {
|
||||||
|
|
||||||
c.setLocation(x, y);
|
c.setLocation(x, y);
|
||||||
} else {
|
} else {
|
||||||
System.out.println("null");
|
System.out.println("GuiDisplayUtil::keepComponentInsideScreen -> no GraphicsConfiguration");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -215,7 +215,6 @@ public class ManaSymbols {
|
||||||
}
|
}
|
||||||
replaced = replaced.replace("|source|", "{source}");
|
replaced = replaced.replace("|source|", "{source}");
|
||||||
replaced = replaced.replace("|this|", "{this}");
|
replaced = replaced.replace("|this|", "{this}");
|
||||||
System.out.println(replaced);
|
|
||||||
return replaced;
|
return replaced;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -629,6 +629,7 @@ public class GameController implements GameCallback {
|
||||||
logger.warn(" action player: " + player.getName() + ", id: " + player.getId());
|
logger.warn(" action player: " + player.getName() + ", id: " + player.getId());
|
||||||
Player priorityPlayer = game.getPlayer(game.getPriorityPlayerId());
|
Player priorityPlayer = game.getPlayer(game.getPriorityPlayerId());
|
||||||
logger.warn(" priority player: " + priorityPlayer.getName() + ", id: " + priorityPlayer.getId());
|
logger.warn(" priority player: " + priorityPlayer.getName() + ", id: " + priorityPlayer.getId());
|
||||||
|
logger.warn(" command: " + command.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue