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

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