Finite State Machine.
A "machine" called every frame to control an object. An FSM can take care of allmost everything by looking at the current state, plus the input provided for it, and thereby achieving a new state.
The Game Dictionary™ is a trademark of GameDev.net LLC. No duplication, reproduction, or transmission of the Game Dictionary or its content is allowed without the consent of GameDev.net LLC.