private void SetState(LichState newState) { state = newState; staticAnimation.Reset(); deadAnimation.Reset(); runningAnimation.Reset(); shootingAnimation.Reset(); }
public Lich(Vector2 position, Vector2 size, float directionAngle, Animation staticAnimation, Animation deadAnimation, Animation shootingAnimation, Animation runningAnimation, Animation fireballAnimation, Animation fireballBlowing, ISound fireballBlowSound, ISound evilLaugh, ISound deathSound) : base(position, size, directionAngle, 120) { this.staticAnimation = staticAnimation; this.deadAnimation = deadAnimation; this.shootingAnimation = shootingAnimation; this.runningAnimation = runningAnimation; this.fireballAnimation = fireballAnimation; this.fireballBlowing = fireballBlowing; this.fireballBlowSound = fireballBlowSound; this.evilLaugh = evilLaugh; this.deathSound = deathSound; this.state = LichState.Static; }