Exemplo n.º 1
0
        public AnimationMapEffect(AnimationMapEffect copy)
            : base(copy)
        {
            Effect = new Animation(copy.Effect);
            SoundName = copy.SoundName;

            OnMove += new MoveEventHandler(AnimationMapEffect_OnMove);
        }
Exemplo n.º 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();
        }
Exemplo n.º 3
0
 public void AddAnimation(CombatantState state, Direction direction, Animation animation)
 {
     Animations[state].Add(direction, animation);
 }
Exemplo n.º 4
0
 void Effect_OnStopping(Animation sender, AnimationEventArgs e)
 {
     Effect.OnStopping -= new AnimationEventHandler(Effect_OnStopping);
     CallOnStopping();
 }