Example #1
0
        public AnimationMapEffect(AnimationMapEffect copy)
            : base(copy)
        {
            Effect = new Animation(copy.Effect);
            SoundName = copy.SoundName;

            OnMove += new MoveEventHandler(AnimationMapEffect_OnMove);
        }
Example #2
0
        public Animation(Animation copy)
            : base(copy)
        {
            Frames = new List<Texture>();
            foreach (Texture frame in copy.Frames)
                AddFrame(new Texture(frame));

            StopFrame = copy.StopFrame;
            CurrentFrame = StopFrame;

            FrameRate = copy.FrameRate;

            LoopState = copy.LoopState;

            IsPlaying = false;

            Timer = new Timer();
            Timer.Start();
        }
Example #3
0
 public void AddAnimation(CombatantState state, Direction direction, Animation animation)
 {
     Animations[state].Add(direction, animation);
 }
Example #4
0
 void Effect_OnStopping(Animation sender, AnimationEventArgs e)
 {
     Effect.OnStopping -= new AnimationEventHandler(Effect_OnStopping);
     CallOnStopping();
 }