package legends.model;

import legends.xml.annotation.Xml;

public class RelationshipProfile {
	@Xml("hf_id")
	private int hfId = -1;
	@Xml("meet_count")
	private int meetCount = -1;
	@Xml("last_meet_year")
	private int lastMeetYear = -1;
	@Xml("last_meet_seconds72")
	private int lastMeetSeconds = -1;
	@Xml("rep_friendly")
	private int repFriendly = -1;
	@Xml("rep_buddy")
	private int repBuddy = -1;
	@Xml("rep_quarreler")
	private int repQuarreler = -1;
	@Xml("rep_trade_partner")
	private int repTradePartner = -1;
	@Xml("rep_bonded")
	private int repBonded = -1;
	@Xml("rep_information_source")
	private int repInformationSource = -1;

	public int getHfId() {
		return hfId;
	}

	public void setHfId(int hfId) {
		this.hfId = hfId;
	}

	public int getMeetCount() {
		return meetCount;
	}

	public void setMeetCount(int meetCount) {
		this.meetCount = meetCount;
	}

	public int getLastMeetYear() {
		return lastMeetYear;
	}

	public void setLastMeetYear(int lastMeetYear) {
		this.lastMeetYear = lastMeetYear;
	}

	public int getLastMeetSeconds() {
		return lastMeetSeconds;
	}

	public void setLastMeetSeconds(int lastMeetSeconds) {
		this.lastMeetSeconds = lastMeetSeconds;
	}

	public int getRepFriendly() {
		return repFriendly;
	}

	public void setRepFriendly(int repFriendly) {
		this.repFriendly = repFriendly;
	}

	public int getRepBuddy() {
		return repBuddy;
	}

	public void setRepBuddy(int repBuddy) {
		this.repBuddy = repBuddy;
	}

	public int getRepQuarreler() {
		return repQuarreler;
	}

	public void setRepQuarreler(int repQuarreler) {
		this.repQuarreler = repQuarreler;
	}

	public int getRepTradePartner() {
		return repTradePartner;
	}

	public void setRepTradePartner(int repTradePartner) {
		this.repTradePartner = repTradePartner;
	}

	public int getRepBonded() {
		return repBonded;
	}

	public void setRepBonded(int repBonded) {
		this.repBonded = repBonded;
	}

	public int getRepInformationSource() {
		return repInformationSource;
	}

	public void setRepInformationSource(int repInformationSource) {
		this.repInformationSource = repInformationSource;
	}

	public String getType() {
		if (repBonded > 0)
			return "bonded"; // For animal partners.
		if (repBuddy > 0)
			return "friend";
		if (repFriendly > 0)
			return "friendly terms";
		if (repQuarreler > 0)
			return "quarreler";
		if (repTradePartner > 0)
			return "trade partner";
		if (repInformationSource > 0)
			return "source of information";

		return "unknown";
	}

}

@@ -411,43 +411,147 @@
 rep_
-quarreler%22)%0A%09private int repQuarrel
+grudge%22)%0A%09private int repGrudge = -1;%0A%09@Xml(%22rep_quarreler%22)%0A%09private int repQuarreler = -1;%0A%09@Xml(%22rep_flatterer%22)%0A%09private int repFlatter
 er =
@@ -1541,32 +1541,162 @@
 = repBuddy;%0A%09%7D%0A%0A
+%09public int getRepGrudge() %7B%0A%09%09return repGrudge;%0A%09%7D%0A%0A%09public void setRepGrudge(int repGrudge) %7B%0A%09%09this.repGrudge = repGrudge;%0A%09%7D%0A%0A
 %09public int getR
@@ -1819,32 +1819,180 @@
 pQuarreler;%0A%09%7D%0A%0A
+%09public int getRepFlatterer() %7B%0A%09%09return repFlatterer;%0A%09%7D%0A%0A%09public void setRepFlatterer(int repFlatterer) %7B%0A%09%09this.repFlatterer = repFlatterer;%0A%09%7D%0A%0A
 %09public int getR
@@ -2599,16 +2599,57 @@
 riend%22;%0A
+%09%09if (repGrudge %3E 0)%0A%09%09%09return %22grudge%22;%0A
 %09%09if (re
@@ -2734,24 +2734,71 @@
 quarreler%22;%0A
+%09%09if (repFlatterer %3E 0)%0A%09%09%09return %22flatterer%22;%0A
 %09%09if (repTra
@@ -2905,16 +2905,72 @@
 mation%22;
+%0A%09%09if (meetCount%3E0)%0A%09%09%09return %22met %22+meetCount+%22 times%22;
 %0A%0A%09%09retu

Add flatterer and grudge relationship reputation types.