Exemplo n.º 1
0
        public void setUpAction( SpriteGlobals.spriteDirections direction, SpriteGlobals.spriteActions action, AnimationComponent actionAnimation )
        {
            // Start setUpActionDefenition.

            _spriteAnimationList[ (int)direction, (int)action ] = actionAnimation;
        }
Exemplo n.º 2
0
        public void setUpAction( SpriteGlobals.spriteDirections direction, SpriteGlobals.spriteActions action,
            int startX, int startY, double playLength, int playMax, int numberOfFrames, bool reverse,
            string name, Vector2 position, int width, int height, Texture2D texture,
            bool isRunning = false, bool continuous = false, bool glow = false,
            Nullable<Color> tint = null, float rotation = 0.0f, Nullable<Vector2> origin = null,
            float scale = 1.0f, SpriteEffects spriteEffect = SpriteEffects.None, float layer = 1.0f)
        {
            // Start setUpActionDefenition.

            _spriteAnimationList[ (int)direction, (int)action ].setUp(
                                                startX, startY, playLength,playMax, numberOfFrames, reverse, name,
                                                position, width, height, texture, isRunning, continuous, glow,
                                                tint, rotation, origin, scale, spriteEffect, layer );
        }
Exemplo n.º 3
0
 public AnimationComponent getAction( SpriteGlobals.spriteDirections direction, SpriteGlobals.spriteActions action )
 {
     return _spriteAnimationList[( int ) direction, ( int ) action];
 }