public CharacterFighter(GameFightCharacterInformations msg, Map map, Fight fight)
 {
     Id = msg.contextualId;
     Fight = fight;
     Look = msg.look;
     Position = new ObjectPosition(map, msg.disposition);
     Team = fight.GetTeam((FightTeamColor) msg.teamId);
     IsAlive = msg.alive;
     Alignment = new AlignmentInformations(msg.alignmentInfos);
     Breed = DataProvider.Instance.Get<Breed>(msg.breed);
 }
 public void Update(GameFightCharacterInformations msg)
 {
     if (msg == null) throw new ArgumentNullException("msg");
     Id = msg.contextualId;
     Look = msg.look;
     Position.Update(msg.disposition);
     IsAlive = msg.alive;
     Alignment = new AlignmentInformations(msg.alignmentInfos);
     Breed = DataProvider.Instance.Get<Breed>(msg.breed);
     Stats.Update(msg.stats);
 }
 public CharacterFighter(GameFightCharacterInformations msg, Fight fight)
 {
     Id = msg.contextualId;
     Fight = fight;
     Look = msg.look;
     Map = fight.Map;
     Update(msg.disposition);
     Team = fight.GetTeam((FightTeamColor) msg.teamId);
     IsAlive = msg.alive;
     Alignment = new AlignmentInformations(msg.alignmentInfos);
     Breed = DataProvider.Instance.Get<Breed>(msg.breed);
     Stats = new MinimalStats(msg.stats);
 }
        public void Update(GameFightCharacterInformations msg)
        {
            if (msg == null) throw new ArgumentNullException("msg");
            //Id = msg.contextualId;
            //Look = msg.look;
            //Map = Fight.Map;
            //Update(msg.disposition);
            //IsAlive = msg.alive;
            Alignment = new AlignmentInformations(msg.alignmentInfos);
            Name = msg.name;
            Level = msg.level;
            if (Breed == null || Breed.Id != msg.breed)
                Breed = new Breeds.Breed(ObjectDataManager.Instance.Get<Breed>(msg.breed, true));

            Stats.Update(msg.stats);
        }
 public CharacterFighter(GameFightCharacterInformations msg, Fight fight) : base (msg, fight)
 {
     Alignment = new AlignmentInformations(msg.alignmentInfos);
     Breed = new Breeds.Breed(ObjectDataManager.Instance.Get<Breed>(msg.breed, true));            
 }