Move state machine processing to TileTerrain.