Esempio n. 1
0
 public CharacterView(Character character, Vector2 position, GameScreen screen)
     : base(screen, position)
 {
     this.character = character;
     characterPosition = Vector2.Zero;
     statusVisible = false;
 }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
 public CharacterView ViewForCharacter(Character character)
 {
     return Characters.Find(delegate(CharacterView view) { return view.Character == character; });
 }