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