Ejemplo n.º 1
0
 /// <summary>
 /// Makes the guest go to the cinema
 /// </summary>
 private void _getToCinema()
 {
     if (Path.Any())
     {
         _Move();
     }
     else if (!(Area is Cinema))
     {
         SetPath(Hotel.GetArea(Area, typeof(Cinema)));
         FinalDes = Hotel.GetArea(Area, typeof(Cinema));
     }
     else
     {
         if (Area.AreaStatus == AreaStatus.PLAYING_MOVIE)
         {
             Status   = MovableStatus.WATCHING;
             _hteTime = Hotel.HowLongWillMovieTake() + Path.Count();
         }
         else
         {
             Status   = MovableStatus.WAITING_TO_START;
             _hteTime = ((Cinema)Area).Duration;
         }
     }
 }