title: Is it possible to check a condition after every method in a loop? If so, how?
body: <p>Like I said in the title I have a loop in an RPG I'm making about High School. This is the main loop that sets up your day to act out individual sequences in chronological order. My question is how could I make it so that I check whether the <code>boolean</code> "beat" or the <code>boolean</code> "lost" (referring to the status of the game) has been tripped to true after every method in the loop but still keeping the methods together in a loop. Is nested if statements inside my while loop the only way?</p>
  
  <pre><code>while (!g.getBeat() || g.getLost()) 
  {
      g.wakeUp();
      g.goToSchool();
      g.beforeLunch();
      g.lunchActivity();
      g.afterLunch();
      g.afterSchool();
      g.home();
      g.sleep();
  }
  </code></pre>