Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
        // высота объекта над землей

        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;
        }