1 #ifndef _NALCG_ANIMATION_FACTORY_H_
2 #define _NALCG_ANIMATION_FACTORY_H_
8 class MovementAnimation
;
9 class AnimationManager
;
11 class CameraShakeAnimation
;
12 class BleedingAnimation
;
13 class PromotionAnimation
;
15 class AnimationFactory
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_