Пример #1
0
        public Ship(string filename, double x, double y) : base(filename, x, y)
        {
            Alive       = true;
            IsColliding = false;

            ScoreProps = new ScoreProperties();

            CanFireBullet  = true;
            CanFireMissile = true;
            CanFirePlasma  = true;
            CanScan        = true;

            Life               = 100;
            LifeBar            = new Rect(GetX(), GetY(), 50, 5);
            BulletCooldownBar  = new Rect(GetX(), GetY(), 50, 2);
            PlasmaCooldownBar  = new Rect(GetX(), GetY(), 50, 2);
            MissileCooldownBar = new Rect(GetX(), GetY(), 50, 2);
        }
Пример #2
0
        public Ship(string filename, double x, double y)
            : base(filename, x, y)
        {
            Alive = true;
            IsColliding = false;

            ScoreProps = new ScoreProperties();

            CanFireBullet = true;
            CanFireMissile = true;
            CanFirePlasma = true;
            CanScan = true;

            Life = 100;
            LifeBar = new Rect(GetX(), GetY(), 50, 5);
            BulletCooldownBar = new Rect(GetX(), GetY(), 50, 2);
            PlasmaCooldownBar = new Rect(GetX(), GetY(), 50, 2);
            MissileCooldownBar = new Rect(GetX(), GetY(), 50, 2);
        }