Exemple #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";
        }
Exemple #2
0
 private void AddSleepPeriod(SleepPeriod period)
 {
     sleepPeriods.Add(period);
 }