Some reformat
This commit is contained in:
@@ -27,8 +27,8 @@ public enum ChatMode {
|
||||
}
|
||||
|
||||
public ChatMode getNext() {
|
||||
if (this == PUBLIC) return ALLIANCE;
|
||||
if (this == ALLIANCE) return FACTION;
|
||||
if (this == PUBLIC) { return ALLIANCE; }
|
||||
if (this == ALLIANCE) { return FACTION; }
|
||||
return PUBLIC;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,78 +48,55 @@ public enum Relation {
|
||||
}
|
||||
|
||||
public ChatColor getColor() {
|
||||
if (this == MEMBER)
|
||||
return Conf.colorMember;
|
||||
else if (this == ALLY)
|
||||
return Conf.colorAlly;
|
||||
else if (this == NEUTRAL)
|
||||
return Conf.colorNeutral;
|
||||
else
|
||||
return Conf.colorEnemy;
|
||||
if (this == MEMBER) { return Conf.colorMember; }
|
||||
else if (this == ALLY) { return Conf.colorAlly; }
|
||||
else if (this == NEUTRAL) { return Conf.colorNeutral; }
|
||||
else { return Conf.colorEnemy; }
|
||||
}
|
||||
|
||||
// return appropriate Conf setting for DenyBuild based on this relation and their online status
|
||||
public boolean confDenyBuild(boolean online) {
|
||||
if (isMember())
|
||||
return false;
|
||||
if (isMember()) { return false; }
|
||||
|
||||
if (online) {
|
||||
if (isEnemy())
|
||||
return Conf.territoryEnemyDenyBuild;
|
||||
else if (isAlly())
|
||||
return Conf.territoryAllyDenyBuild;
|
||||
else
|
||||
return Conf.territoryDenyBuild;
|
||||
} else {
|
||||
if (isEnemy())
|
||||
return Conf.territoryEnemyDenyBuildWhenOffline;
|
||||
else if (isAlly())
|
||||
return Conf.territoryAllyDenyBuildWhenOffline;
|
||||
else
|
||||
return Conf.territoryDenyBuildWhenOffline;
|
||||
if (isEnemy()) { return Conf.territoryEnemyDenyBuild; }
|
||||
else if (isAlly()) { return Conf.territoryAllyDenyBuild; }
|
||||
else { return Conf.territoryDenyBuild; }
|
||||
}
|
||||
else {
|
||||
if (isEnemy()) { return Conf.territoryEnemyDenyBuildWhenOffline; }
|
||||
else if (isAlly()) { return Conf.territoryAllyDenyBuildWhenOffline; }
|
||||
else { return Conf.territoryDenyBuildWhenOffline; }
|
||||
}
|
||||
}
|
||||
|
||||
// return appropriate Conf setting for PainBuild based on this relation and their online status
|
||||
public boolean confPainBuild(boolean online) {
|
||||
if (isMember())
|
||||
return false;
|
||||
if (isMember()) { return false; }
|
||||
|
||||
if (online) {
|
||||
if (isEnemy())
|
||||
return Conf.territoryEnemyPainBuild;
|
||||
else if (isAlly())
|
||||
return Conf.territoryAllyPainBuild;
|
||||
else
|
||||
return Conf.territoryPainBuild;
|
||||
} else {
|
||||
if (isEnemy())
|
||||
return Conf.territoryEnemyPainBuildWhenOffline;
|
||||
else if (isAlly())
|
||||
return Conf.territoryAllyPainBuildWhenOffline;
|
||||
else
|
||||
return Conf.territoryPainBuildWhenOffline;
|
||||
if (isEnemy()) { return Conf.territoryEnemyPainBuild; }
|
||||
else if (isAlly()) { return Conf.territoryAllyPainBuild; }
|
||||
else { return Conf.territoryPainBuild; }
|
||||
}
|
||||
else {
|
||||
if (isEnemy()) { return Conf.territoryEnemyPainBuildWhenOffline; }
|
||||
else if (isAlly()) { return Conf.territoryAllyPainBuildWhenOffline; }
|
||||
else { return Conf.territoryPainBuildWhenOffline; }
|
||||
}
|
||||
}
|
||||
|
||||
// return appropriate Conf setting for DenyUseage based on this relation
|
||||
public boolean confDenyUseage() {
|
||||
if (isMember())
|
||||
return false;
|
||||
else if (isEnemy())
|
||||
return Conf.territoryEnemyDenyUseage;
|
||||
else if (isAlly())
|
||||
return Conf.territoryAllyDenyUseage;
|
||||
else
|
||||
return Conf.territoryDenyUseage;
|
||||
if (isMember()) { return false; }
|
||||
else if (isEnemy()) { return Conf.territoryEnemyDenyUseage; }
|
||||
else if (isAlly()) { return Conf.territoryAllyDenyUseage; }
|
||||
else { return Conf.territoryDenyUseage; }
|
||||
}
|
||||
|
||||
public double getRelationCost() {
|
||||
if (isEnemy())
|
||||
return Conf.econCostEnemy;
|
||||
else if (isAlly())
|
||||
return Conf.econCostAlly;
|
||||
else
|
||||
return Conf.econCostNeutral;
|
||||
if (isEnemy()) { return Conf.econCostEnemy; }
|
||||
else if (isAlly()) { return Conf.econCostAlly; }
|
||||
else { return Conf.econCostNeutral; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user