Ejemplo n.º 1
0
        public void WakeUp(int minute)
        {
            SleepPeriod period = new SleepPeriod(lastSleepMinute, minute);

            AddSleepPeriod(period);

            Day4Puzzle.Log += " Guard " + Id + " was sleeping, adding sleep period: " + period.Duration() + " minutes";
        }
Ejemplo n.º 2
0
 private void AddSleepPeriod(SleepPeriod period)
 {
     sleepPeriods.Add(period);
 }