Technique · engine
Jump table
A table of code addresses indexed by a number, which a game uses to run one of several routines without a chain of comparisons.
A jump table turns a number into a routine. The index is often a state machine’s state or an object’s type, so one table serves every case.