mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- CheckStyle.
This commit is contained in:
@@ -58,7 +58,9 @@ public class ViewWinLose {
|
||||
control = new QuestWinLose(this, match);
|
||||
break;
|
||||
case Draft:
|
||||
if (!Singletons.getModel().getGauntletMini().isGauntletDraft()) break;
|
||||
if (!Singletons.getModel().getGauntletMini().isGauntletDraft()) {
|
||||
break;
|
||||
}
|
||||
case Sealed:
|
||||
control = new LimitedWinLose(this, match);
|
||||
break;
|
||||
@@ -68,8 +70,9 @@ public class ViewWinLose {
|
||||
default: // will catch it after switch
|
||||
break;
|
||||
}
|
||||
if( null == control)
|
||||
if (null == control) {
|
||||
control = new ControlWinLose(this, match);
|
||||
}
|
||||
|
||||
|
||||
pnlLeft.setOpaque(false);
|
||||
|
||||
@@ -66,8 +66,8 @@ public enum CDock implements ICDoc {
|
||||
private GameState game;
|
||||
private Player player;
|
||||
|
||||
public void onGameStarts(GameState game0, Player player0)
|
||||
{
|
||||
public void onGameStarts(GameState game0, Player player0) {
|
||||
|
||||
game = game0;
|
||||
player = player0;
|
||||
}
|
||||
|
||||
@@ -36,9 +36,9 @@ public enum CPlayers implements ICDoc {
|
||||
*/
|
||||
@Override
|
||||
public void update() {
|
||||
for(Player p : Singletons.getModel().getGame().getRegisteredPlayers())
|
||||
for (Player p : Singletons.getModel().getGame().getRegisteredPlayers()) {
|
||||
VPlayers.SINGLETON_INSTANCE.updatePlayerLabels(p);
|
||||
|
||||
}
|
||||
VPlayers.SINGLETON_INSTANCE.updateStormLabel();
|
||||
}
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ public class VCommand implements IVDoc<CCommand> {
|
||||
|
||||
// TODO player is hard-coded into tabletop...should be dynamic
|
||||
// (haven't looked into it too deeply). Doublestrike 12-04-12
|
||||
tabletop = new PlayArea(scroller, id0 == EDocID.COMMAND_0 );
|
||||
tabletop = new PlayArea(scroller, id0 == EDocID.COMMAND_0);
|
||||
|
||||
control = new CCommand(player, this);
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ public class VField implements IVDoc<CField> {
|
||||
|
||||
// TODO player is hard-coded into tabletop...should be dynamic
|
||||
// (haven't looked into it too deeply). Doublestrike 12-04-12
|
||||
tabletop = new PlayArea(scroller, id0 == EDocID.FIELD_1 );
|
||||
tabletop = new PlayArea(scroller, id0 == EDocID.FIELD_1);
|
||||
|
||||
control = new CField(player, this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user