public void ChangeMyOpinionAbout(MemoryItem opinionAbout, OpinionType newOpinion, string influencingEventDescription) { //TODO //var opinion = _myOpinions.FirstOrDefault(x => x.OpinionAbout == opinion); //opinion?.ChangeOpinion(newOpinion, influencingEventDescription); }
public Opinion(MemoryItem about, OpinionType opinion, string influencingEventDescription) { OpinionAbout = about; Type = opinion; InfluencingEvents = new List <string> { influencingEventDescription }; }
public void ChangeOpinion(OpinionType changeTo, string influencingEventDescription) { //You can't change your opinion to not having one; you can become neutral //but once you have formed an opinion you cannot goback to not having one. //You just choose to be neutral. Type = changeTo == OpinionType.NoOpinion ? OpinionType.Neutral : changeTo; if (InfluencingEvents == null) { InfluencingEvents = new List <string>(); } InfluencingEvents.Add(influencingEventDescription); }