public CharacterView(Character character, Vector2 position, GameScreen screen) : base(screen, position) { this.character = character; characterPosition = Vector2.Zero; statusVisible = false; }
public JobCharacterView(Character character, GameScreen screen, Vector2 position, bool isMirrorTexture) : base(character, position, screen) { mirroring = isMirrorTexture ? SpriteEffects.FlipHorizontally : SpriteEffects.None; LoadContent(); Character.JobChanged += (sender, args) => LoadJobTexture(); }
public CharacterView ViewForCharacter(Character character) { return Characters.Find(delegate(CharacterView view) { return view.Character == character; }); }