Refactored animation mechanism to easily support attack event later.
Added support for attack event animation.