Function that animates egg shaking
of horizontal shaking. Doubled on the first call (where count is 0)
Optional
repeatCount: numberthe number of times this function should be called (asynchronous recursion?!?)
Optional
count: numberthe current number of times this function has been called.
nothing since it's a Promise
Generates a Pokemon to be hatched by the egg Also stores the generated pokemon in this.eggHatchData
the hatched PlayerPokemon
Class that represents egg hatching