Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public AgentLiving()
     : base()
 {
     CurrentState = new StateLiving();
     SkillsList   = new List <Skill>();
 }