Example #1
0
        //public BaseShip(int health, int cargoLimit, int weight, float energy, float qELimit, int shield = 0)
        //{
        //    passiveSlots = new List<Slot<BasePassiveModule>>();

        //    this.health = health;
        //    this.shield = shield;
        //    this.cargoLimit = cargoLimit;
        //    this.weight = weight;
        //    this.energy = energy;
        //    QELimit = qELimit;
        //}

        public BaseShip(BaseShip shipToReplace)
        {
            id         = shipToReplace.id;
            health     = shipToReplace.health;
            shield     = shipToReplace.shield;
            cargoLimit = shipToReplace.cargoLimit;
            weight     = shipToReplace.weight;
            energy     = shipToReplace.energy;
            QELimit    = shipToReplace.QELimit;
            shipType   = shipToReplace.shipType;
        }
Example #2
0
 public Cruiser(BaseShip ship)
 {
     UpdateShipStats();
     this.id         = ship.id;
     this.health     = ship.health;
     this.shield     = ship.shield;
     this.cargoLimit = ship.cargoLimit;
     this.weight     = ship.weight;
     this.QELimit    = ship.QELimit;
     this.energy     = ship.energy;
     this.ownerID    = ship.ownerID;
     this.shipType   = "Cruiser";
 }