public Guest(Dictionary <string, Animation> animations, bool dir, Game1.champions champ, string name, float hp) : base(animations, champ, name) { _direction = dir; healthBar.CurrentValue = 100 - hp; if (champ == Game1.champions.Feng) { Champion = new Feng(); } else { Champion = new Knight(); } isMain = false; }
public Sprite(Dictionary <string, Animation> animations, Game1.champions champ, string name) { _animations = animations; _animationManager = new AnimationManager(_animations.First().Value); nickName.Text = name; if (champ == Game1.champions.Feng) { healthBarOffset = Feng.healthBarOffset; nickNameOffset = Feng.nickNameOffset; } else { healthBarOffset = Knight.healthBarOffset; nickNameOffset = Knight.nickNameOffset; } }