public MobEntity(ModelType modelType, ushort s1, ushort s2, ushort s3, ushort s4, ushort s5, ushort s6, byte level, AbstractSkill mobSkill) { Health = new Resource(); Mana = new Resource(); MobSkill = mobSkill; Attributes = new int[6]; Buffs = new List <Buff>(20); Target = null; ModelType = modelType; Name = ModelType.ToString(); Level = level; SetStats(s1, s2, s3, s4, s5, s6); }
public MobEntity(MobEntity entity, Vector3 position, AuthoryServer server) { Health = new Resource(); Mana = new Resource(); this.MobSkill = entity.MobSkill; this.Server = server; this.ACTION_TICK += (ushort)(new Random().Next(0, 40)); this.Attributes = new int[entity.Attributes.Length]; this.Buffs = new List <Buff>(20); this.Skills = new List <AbstractSkill>(20); this.EntityTick = 0; this.SetPosition(position); this.SpawnPosition = position; this.MovementDirection = new Vector3(); Target = null; ModelType = entity.ModelType; Name = entity.Name; Level = entity.Level; entity.Attributes.CopyTo(Attributes, 0); CalculateResources(); Health.MaxValue = entity.Health.MaxValue; Health.RegenValue = entity.Health.RegenValue; Respawn(); }
public abstract void AddSkill(AbstractSkill skill, Vector3 position);
public override void AddSkill(AbstractSkill skill, Vector3 position) { Skills.Add(skill); Server.OutgoingMessageHandler.SendChannelingInfo(this); }