public AnimationMapEffect(AnimationMapEffect copy) : base(copy) { Effect = new Animation(copy.Effect); SoundName = copy.SoundName; OnMove += new MoveEventHandler(AnimationMapEffect_OnMove); }
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(); }
public void AddAnimation(CombatantState state, Direction direction, Animation animation) { Animations[state].Add(direction, animation); }
void Effect_OnStopping(Animation sender, AnimationEventArgs e) { Effect.OnStopping -= new AnimationEventHandler(Effect_OnStopping); CallOnStopping(); }