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