blackberry-gaming/GamePlay — pull request #140 by kcunney (2012-02-08 00:33:11+00:00)
Title: Fixes a number of issues in the Animation part of gameplay.

Fixes bug where play()/stop() called in the Listener::animationEvent() method results in crash of gameplay.
End listeners now called from onEnd() again.
Only call unschedule() on any running clip's from the Animation's destructor.
In stop(), we now set a flag to mark the clip to be removed from the AnimationController, rather than immediately removing it from the list of running clips. Before this was causing a crash when calling stop() on an AnimationClip from Listener::animationEvent().
In play(), if the AnimationClip is already playing, we set a flag to indicate to the controller that the clip must be restarted, and moved to the end of the running clips queue.
Fixes bug where the eventTime would be overridden on Listener's each time the Listener was added to an AnimationClip.
Adds getDuration() to the AnimationClip class.