- CheckStyle.

This commit is contained in:
Chris
2012-11-30 01:34:20 +00:00
parent 0e2a1d461a
commit f21f7b7738
10 changed files with 23 additions and 25 deletions

View File

@@ -267,8 +267,8 @@ public final class CardRules {
if (slashPos == -1) { if (slashPos == -1) {
throw new RuntimeException(String.format("Vanguard '%s' has bad hand/life stats", this.getName())); throw new RuntimeException(String.format("Vanguard '%s' has bad hand/life stats", this.getName()));
} }
this.hand = Integer.parseInt(pt.substring(0,pt.indexOf('/')).replace("+", "")); this.hand = Integer.parseInt(pt.substring(0, pt.indexOf('/')).replace("+", ""));
this.life = Integer.parseInt(pt.substring(pt.indexOf('/')+1).replace("+", "")); this.life = Integer.parseInt(pt.substring(pt.indexOf('/') + 1).replace("+", ""));
} }
if (this.characteristics.getSetsData().isEmpty()) { if (this.characteristics.getSetsData().isEmpty()) {
@@ -416,5 +416,3 @@ public final class CardRules {
} }

View File

@@ -113,7 +113,7 @@ public class CardRulesReader {
break; break;
case 'H': case 'H':
if(line.startsWith("HandLifeModifier:")) { if (line.startsWith("HandLifeModifier:")) {
this.characteristics[this.curCharacteristics].setPtLine(CardRulesReader.getValueAfterKey(line, "HandLifeModifier:")); this.characteristics[this.curCharacteristics].setPtLine(CardRulesReader.getValueAfterKey(line, "HandLifeModifier:"));
} }
break; break;

View File

@@ -108,7 +108,7 @@ public abstract class Player extends GameEntity implements Comparable<Player> {
/** The max hand size. */ /** The max hand size. */
private int maxHandSize = 7; private int maxHandSize = 7;
/** Starting hand size */ /** Starting hand size. */
private int startingHandSize = 7; private int startingHandSize = 7;
/** The unlimited hand size. */ /** The unlimited hand size. */
@@ -3024,13 +3024,13 @@ public abstract class Player extends GameEntity implements Comparable<Player> {
} }
public int getStartingHandSize() public int getStartingHandSize() {
{
return this.startingHandSize; return this.startingHandSize;
} }
public void setStartingHandSize(int shs) public void setStartingHandSize(int shs) {
{
this.startingHandSize = shs; this.startingHandSize = shs;
} }