Beispiel #1
0
        public void HansGottaEat()
        {
            var restaurant = new Location("Restaurant")
            {
                LocationFeatures = new[] { LocationFeature.Table }
            };
            var hans = new Hans("Peter")
            {
                Location = restaurant
            };

            Assert.Equal(70, hans.Stats[Satiety]);
            hans.AddActivity(Activity.Eat(), restaurant);
            hans.Tick();

            Assert.Equal(86, hans.Stats[Satiety]);
        }
Beispiel #2
0
 public void ScheduleActivity(Hans hans, Activity activity, Location location)
 {
     hans.AddActivity(activity, location);
 }