Pawn now changes into a queen when its promoted.
[NALCG.git] / src / view / animationfactory.h
blobee3fb759498d8dee5e3d336475045d094223e02d
1 #ifndef _NALCG_ANIMATION_FACTORY_H_
2 #define _NALCG_ANIMATION_FACTORY_H_
4 #include <Ogre.h>
6 using namespace Ogre;
8 class MovementAnimation;
9 class AnimationManager;
10 class DyingAnimation;
11 class CameraShakeAnimation;
12 class BleedingAnimation;
13 class PromotionAnimation;
14 class View;
15 class AnimationFactory
17 public:
18 static MovementAnimation* createMovementAnimation(const char type,
19 const Vector3& destination, SceneNode *movingNode,
20 SceneNode *targetPiece, SceneManager *sceneMgr,
21 AnimationManager *animationManager);
23 static BleedingAnimation* createBleedingAnimation(SceneNode *pieceNode,
24 SceneManager *sceneMgr, const Real& delay, const Real& duration,
25 const std::string& effectName = "Effects/Blood");
27 static DyingAnimation* createDyingAnimation(SceneNode *pieceNode,
28 SceneManager *sceneMgr, double delay, double dyingSpeedMultiplier = 1.0);
30 static CameraShakeAnimation* createCameraShakeAnimation(Camera* camera, SceneManager* sceneMgr);
32 static PromotionAnimation* createPromotionAnimation(
33 unsigned int promoteTo, SceneNode *movingNode, SceneManager *sceneMgr, View* view);
36 #endif // _NALCG_ANIMATION_FACTORY_H_