Esempio n. 1
0
 public static ShipPart GetElectronComputer()
 {
     var part = new ShipPart("Electron Computer");
     part.Computer = 1;
     part.IsBasic = true;
     return part;
 }
Esempio n. 2
0
 public static ShipPart GetHull()
 {
     var part = new ShipPart("Hull");
     part.Hull = 1;
     part.IsBasic = true;
     return part;
 }
Esempio n. 3
0
 public static ShipPart GetGaussShield()
 {
     var part = new ShipPart("Gauss Sheild");
     part.Shield = 1;
     part.IsBasic = true;
     return part;
 }
Esempio n. 4
0
 public static ShipPart GetNuclearSource()
 {
     var part = new ShipPart("Nuclear Source");
     part.EnergySource = 3;
     part.IsBasic = true;
     return part;
 }
Esempio n. 5
0
 public ShipPartDiscovery(ShipPart part)
 {
     Name = "Ship Part Discovery";
     part.IsAncient = true;
     ShipPart = part;
     Html = "ShipPartDiscovery.html";
 }
Esempio n. 6
0
 public static ShipPart GetIonCannon()
 {
     var part = new ShipPart("Ion Cannon");
     part.CannonDamage = new List<int> { 1 };
     part.EnergyRequirement = 1;
     part.IsBasic = true;
     return part;
 }
Esempio n. 7
0
 public ShipPart GetGluonComputer()
 {
     var part = new ShipPart("Gluon Computer");
     part.Computer = 3;
     part.EnergyRequirement = 2;
     part.Initiative = 2;
     return part;
 }
Esempio n. 8
0
 public static ShipPart GetNuclearDrive()
 {
     var part = new ShipPart("Nuclear Drive");
     part.Initiative = 1;
     part.Movement = 1;
     part.EnergyRequirement = 1;
     part.IsBasic = true;
     return part;
 }
Esempio n. 9
0
        public GalacticCenter()
        {
            Name = ShipNames.GALACTIC_CENTER;
            IsAncient = true;

            var part = new ShipPart();
            var print = new ShipBlueprint();
            print.AddShipPart(part);

            this._getBlueprintFunc = ()=> {return print;};
        }
Esempio n. 10
0
        public AncientInterceptor()
        {
            this.IsAncient = true;
            this.Name = ShipNames.INTERCEPTOR;
            var part = new ShipPart();
            part.Initiative = 2;
            part.Computer = 1;
            part.Hull = 1;
            part.CannonDamage = new List<int> { 1,1 };
            var print = new ShipBlueprint();
            print.AddShipPart(part);

            this._getBlueprintFunc = () => { return print; };
        }
Esempio n. 11
0
        public static ShipPart GetRandomShipPart()
        {
            var part = new ShipPart();
            var i = RandomGenerator.GetInt(1,6);
            if(i==1)
            {

                part.Name = "Axion Computer";
                part.Computer = 3;
            }
            else if(i==2)
            {
                part.Name = "Hypergrid Source";
                part.EnergySource = 11;
            }
            else if(i==3)
            {
                part.Name = "Shard Hull";
                part.Hull = 3;
            }
            else if (i == 4) {
                part.Name = "Ion Turrent";
                part.CannonDamage = new List<int> { 1, 1 };
                part.EnergyRequirement = 1;
            }
            else if (i == 5) {
                part.Name = "Conformal Drive";
                part.Initiative = 2;
                part.EnergyRequirement = 2;
            }

            else if (i == 6) {
                part.Name = "Flux Shield";
                part.Shield = 3;
                part.EnergyRequirement = 2;
            }

            return part;
        }
Esempio n. 12
0
 public void AddShipPart(ShipPart part)
 {
     ShipParts.Add(part);
 }
Esempio n. 13
0
 public Technology(ShipPart part, int defaultCost, int minCost, TechnologyType type)
     : this(part.Name, defaultCost, minCost, type)
 {
     ShipPart = part;
 }
Esempio n. 14
0
 private ShipPart GetAntimatterCannon()
 {
     var part = new ShipPart("Antimatter Cannon");
     part.CannonDamage = new List<int> { 4 };
     part.EnergyRequirement = 4;
     return part;
 }
Esempio n. 15
0
 private ShipPart GetFusionDrive()
 {
     var part = new ShipPart("Fusion Drive");
     part.Movement = 2;
     part.Initiative = 2;
     part.EnergyRequirement = 2;
     return part;
 }
Esempio n. 16
0
 private ShipPart GetPhaseShield()
 {
     var part = new ShipPart("Phase Shield");
     part.Shield = 2;
     part.EnergyRequirement = 1;
     return part;
 }
Esempio n. 17
0
 private ShipPart GetPlasmaCannon()
 {
     var part = new ShipPart("Plasma Cannon");
     part.CannonDamage = new List<int> { 2 };
     part.EnergyRequirement = 2;
     return part;
 }
Esempio n. 18
0
 private ShipPart GetPlasmaMissile()
 {
     var part = new ShipPart("Plasma Missile");
     part.MissileDamage = new List<int> { 2, 2 };
     return part;
 }
Esempio n. 19
0
 public ShipPart GetPositronComputer()
 {
     var part = new ShipPart("Positron Computer");
     part.Computer = 2;
     part.Initiative = 1;
     part.EnergyRequirement = 1;
     return part;
 }
Esempio n. 20
0
 public ShipPart GetTachyonDrive()
 {
     var part = new ShipPart("Tachyon Drive");
     part.Movement = 3;
     part.Initiative = 3;
     part.EnergyRequirement = 3;
     return part;
 }
Esempio n. 21
0
 public ShipPart GetImprovedHull()
 {
     var part = new ShipPart("Improved Hull");
     part.Hull = 2;
     return part;
 }
Esempio n. 22
0
 public void RemoveShipPart(ShipPart part)
 {
     ShipParts.Remove(part);
 }
Esempio n. 23
0
 public ShipPart GetGaussShield()
 {
     var part = new ShipPart("Gauss Shield");
     part.Shield = 1;
     return part;
 }
Esempio n. 24
0
 public ShipPart GetFusionSource()
 {
     var part = new ShipPart("Fusion Source");
     part.EnergySource = 6;
     return part;
 }
Esempio n. 25
0
 private ShipPart GetTachyonSource()
 {
     var part = new ShipPart("Tachyon Source");
     part.EnergySource = 9;
     return part;
 }