Allow hero states to implement jumping as they want.

This will be useful to introduce a delay for the jump (#253).