public static StateLiving operator -(StateLiving argState1, StateLiving argState2) { StateLiving result = new StateLiving(); result.Health = argState1.Health - argState2.Health; result.Strenght = argState1.Strenght - argState2.Strenght; result.Stamina = argState1.Stamina - argState2.Stamina; result.Intelligence = argState1.Intelligence - argState2.Intelligence; result.FoodSatiety = argState1.FoodSatiety - argState2.FoodSatiety; result.WaterSatiety = argState1.WaterSatiety - argState2.WaterSatiety; result.Peacefulness = argState1.Peacefulness - argState2.Peacefulness; return(result); }
public AgentLiving() : base() { CurrentState = new StateLiving(); SkillsList = new List <Skill>(); }