A state is an object's current mode of operation. Game objects are finite state machines, meaning that, at any point in their existance, they are in a certain state. States are divided into up three blocks of code (referred to as state subroutines), wherein a