@Test public void testGetAlignment() { assertSame(Alignment.CRIMINAL, rep.getAlignment()); rep.addToNoble(600); assertSame(Alignment.CITIZEN, rep.getAlignment()); }
@Override public Alignment getAlignment() { long ret = bourgeoisPoints + noblePoints - assassinPoints - banditPoints - thiefPoints; return ret < 0 ? Alignment.CRIMINAL : Alignment.CITIZEN; }
ReputationImpl implements Reputation { @Override public Alignment getAlignment() { long ret = bourgeoisPoints + noblePoints - assassinPoints - banditPoints - thiefPoints; return ret < 0 ? Alignment.CRIMINAL : Alignment.CITIZEN; } }
ReputationImpl implements Reputation { @Override public Alignment getAlignment() { long ret = bourgeoisPoints + noblePoints - assassinPoints - banditPoints - thiefPoints; return ret < 0 ? Alignment.CRIMINAL : Alignment.CITIZEN; } ReputationImpl(int assassinPoints, int banditPoints, int bourgeoisPoints, int thieffPoints, int noblePoints, 
			boolean belongsToFaction); }
ReputationImpl implements Reputation { @Override public Alignment getAlignment() { long ret = bourgeoisPoints + noblePoints - assassinPoints - banditPoints - thiefPoints; return ret < 0 ? Alignment.CRIMINAL : Alignment.CITIZEN; } ReputationImpl(int assassinPoints, int banditPoints, int bourgeoisPoints, int thieffPoints, int noblePoints, 
			boolean belongsToFaction); @Override void addToAssassin(int points); @Override void addToBandit(int points); @Override void addToBourgeois(int points); @Override void addToNoble(int points); @Override void addToThief(int points); @Override Alignment getAlignment(); @Override int getAssassin(); @Override int getBandit(); @Override int getBourgeois(); @Override int getThief(); @Override int getNoble(); @Override boolean belongsToFaction(); @Override void setBelongsToFaction(boolean belongs); }
ReputationImpl implements Reputation { @Override public Alignment getAlignment() { long ret = bourgeoisPoints + noblePoints - assassinPoints - banditPoints - thiefPoints; return ret < 0 ? Alignment.CRIMINAL : Alignment.CITIZEN; } ReputationImpl(int assassinPoints, int banditPoints, int bourgeoisPoints, int thieffPoints, int noblePoints, 
			boolean belongsToFaction); @Override void addToAssassin(int points); @Override void addToBandit(int points); @Override void addToBourgeois(int points); @Override void addToNoble(int points); @Override void addToThief(int points); @Override Alignment getAlignment(); @Override int getAssassin(); @Override int getBandit(); @Override int getBourgeois(); @Override int getThief(); @Override int getNoble(); @Override boolean belongsToFaction(); @Override void setBelongsToFaction(boolean belongs);  }