Пример #1
0
 public void Update(GameFightMonsterInformations msg)
 {
     if (msg == null) throw new ArgumentNullException("msg");
     //Id = msg.contextualId;
     //Look = msg.look;
     //Update(msg.disposition);
     //IsAlive = msg.alive;
     MonsterTemplate = ObjectDataManager.Instance.Get<Monster>(msg.creatureGenericId);
     MonsterGrade = MonsterTemplate.grades[msg.creatureGrade - 1];
 }
Пример #2
0
 public void Update(GameFightMonsterInformations msg)
 {
     if (msg == null) throw new ArgumentNullException("msg");
     Id = msg.contextualId;
     Look = msg.look;
     Position.Update(msg.disposition);
     IsAlive = msg.alive;
     MonsterTemplate = DataProvider.Instance.Get<Monster>(msg.creatureGenericId);
     MonsterGrade = MonsterTemplate.grades[msg.creatureGrade];
 }
Пример #3
0
 public MonsterFighter(GameFightMonsterInformations 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;
     MonsterTemplate = DataProvider.Instance.Get<Monster>(msg.creatureGenericId);
     MonsterGrade = MonsterTemplate.grades[msg.creatureGrade];
 }
Пример #4
0
 public MonsterFighter(GameFightMonsterInformations 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;
     MonsterTemplate = DataProvider.Instance.Get<Monster>(msg.creatureGenericId);
     MonsterGrade = MonsterTemplate.grades[msg.creatureGrade - 1];
     Stats = new MinimalStats(msg.stats);
 }
Пример #5
0
 public SummonedFighter(GameFightMonsterInformations msg, Map map, Fight fight)
     : base(msg, map, fight)
 {
 }
Пример #6
0
 public MonsterFighter(GameFightMonsterInformations msg, Fight fight) : base (msg, fight)
 {
     MonsterTemplate = ObjectDataManager.Instance.Get<Monster>(msg.creatureGenericId);
     MonsterGrade = MonsterTemplate.grades[msg.creatureGrade - 1];
     Level = (int) MonsterGrade.level;        
 }