This is a totally random question but its aimed at game programming.

Do you know how neversoft did this event game? All I am wondering is say you are in "Suburbia" and you choose a goal to do, would it look somthing like:

Code:
while ( we are in suburbia ) 
{
   // player goes to goal

  goal1();
  goal2();
  goal3(); // etc
I could be wrong but its somthing I have always wondered how they coded it. I know it is all event programming etc. Im wondering maybe if each "goal" for that particualr area could be a single function call.

Any insight or ideas are appriciated!