forked from External/mage
All 1-character strings converted to primitives
"b" + "r" now changed to 'b' + 'w'. It's more straight-forward, and may cause perfomance improvements - character primitives allocation is faster and less expensive than string creation.
This commit is contained in:
parent
31589778ca
commit
f60ebfbb1f
451 changed files with 989 additions and 978 deletions
|
|
@ -100,7 +100,7 @@ public class GameEndDialog extends MageDialog {
|
|||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (PlayerView player : gameEndView.getPlayers()) {
|
||||
sb.append(player.getName()).append(" Life: ").append(player.getLife()).append(" ");
|
||||
sb.append(player.getName()).append(" Life: ").append(player.getLife()).append(' ');
|
||||
}
|
||||
this.txtLife.setText(sb.toString());
|
||||
|
||||
|
|
@ -128,8 +128,8 @@ public class GameEndDialog extends MageDialog {
|
|||
sdf.applyPattern( "yyyyMMdd_HHmmss" );
|
||||
String fileName = new StringBuilder(dir).append(File.separator)
|
||||
.append(sdf.format(gameEndView.getStartTime()))
|
||||
.append("_").append(gameEndView.getMatchView().getGameType())
|
||||
.append("_").append(gameEndView.getMatchView().getGames().size())
|
||||
.append('_').append(gameEndView.getMatchView().getGameType())
|
||||
.append('_').append(gameEndView.getMatchView().getGames().size())
|
||||
.append(".txt").toString();
|
||||
PrintWriter out = new PrintWriter(fileName);
|
||||
out.print(gamePanel.getGameLog());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue