public Enemy(string url, string id) : base(url, id) { Target = null; AttackCooldown = 1; // AttackRadius = 300; // SightRadius = 500; Speed = 150; Scale = Settings.Scale; Tag = Tags.Enemy; Hp = new Stat(100); }
public Player(string id, string type, AccountState account) : base(type, id) { Scale = Settings.Scale; Tag = Tags.Player; AccState = account; Hp = new Stat(BaseHp); AttackDamage = BaseAd; Speed = BaseSpeed; AttackCooldownCounter = 0; AttackCooldown = 0.2f; }
public AccountState(string id, string nickname, Dictionary<Locations, GameLayer> locations) { this.nickname = nickname; HeroId = id; Gold = 0; Exp = new Stat(Settings.StartExp) {Current = 0}; Level = 1; _locations = locations; HpLevel = 1; AttackLevel = 1; SpeedLevel = 1; ClassLevel = 1; }
// высота объекта над землей public Entity(string url, string id) : base(url) { Id = id; IsAntialiased = false; Direction = 0; Speed = 0; Tag = Tags.Unknown; Hp = new Stat(0); AttackDamage = 0; ActionState = ActionState.Idle; Scale = Settings.Scale; MaskW = (int) (Texture.PixelsWide*ScaleX) - MaskLesser; MaskH = (int) (Texture.PixelsHigh*ScaleY) - MaskLesser; }