[Univ of Cambridge] [Dept of Engineering]
next up previous contents
Next: Creating the Dodgem class Up: Dodgems: A longer exercise Previous: Graphics Routines

Decision Routine

// Decide which way - if any - to turn. Don't bother turning if
// the dodgem is less than 'turn_amount' from the ideal direction
Turn which_way(int ideal_direction, int current_direction);



Tim Love
2001-07-05