Exemple #1
0
 public static ShipPart GetElectronComputer()
 {
     var part = new ShipPart("Electron Computer");
     part.Computer = 1;
     part.IsBasic = true;
     return part;
 }
Exemple #2
0
 public static ShipPart GetHull()
 {
     var part = new ShipPart("Hull");
     part.Hull = 1;
     part.IsBasic = true;
     return part;
 }
Exemple #3
0
 public static ShipPart GetGaussShield()
 {
     var part = new ShipPart("Gauss Sheild");
     part.Shield = 1;
     part.IsBasic = true;
     return part;
 }
Exemple #4
0
 public static ShipPart GetNuclearSource()
 {
     var part = new ShipPart("Nuclear Source");
     part.EnergySource = 3;
     part.IsBasic = true;
     return part;
 }
 public ShipPartDiscovery(ShipPart part)
 {
     Name = "Ship Part Discovery";
     part.IsAncient = true;
     ShipPart = part;
     Html = "ShipPartDiscovery.html";
 }
Exemple #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;
 }
 public ShipPart GetGluonComputer()
 {
     var part = new ShipPart("Gluon Computer");
     part.Computer = 3;
     part.EnergyRequirement = 2;
     part.Initiative = 2;
     return part;
 }
Exemple #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;
 }
Exemple #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;};
        }
        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; };
        }
        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;
        }
Exemple #12
0
 public void AddShipPart(ShipPart part)
 {
     ShipParts.Add(part);
 }
Exemple #13
0
 public Technology(ShipPart part, int defaultCost, int minCost, TechnologyType type)
     : this(part.Name, defaultCost, minCost, type)
 {
     ShipPart = part;
 }
 private ShipPart GetAntimatterCannon()
 {
     var part = new ShipPart("Antimatter Cannon");
     part.CannonDamage = new List<int> { 4 };
     part.EnergyRequirement = 4;
     return part;
 }
 private ShipPart GetFusionDrive()
 {
     var part = new ShipPart("Fusion Drive");
     part.Movement = 2;
     part.Initiative = 2;
     part.EnergyRequirement = 2;
     return part;
 }
 private ShipPart GetPhaseShield()
 {
     var part = new ShipPart("Phase Shield");
     part.Shield = 2;
     part.EnergyRequirement = 1;
     return part;
 }
 private ShipPart GetPlasmaCannon()
 {
     var part = new ShipPart("Plasma Cannon");
     part.CannonDamage = new List<int> { 2 };
     part.EnergyRequirement = 2;
     return part;
 }
 private ShipPart GetPlasmaMissile()
 {
     var part = new ShipPart("Plasma Missile");
     part.MissileDamage = new List<int> { 2, 2 };
     return part;
 }
 public ShipPart GetPositronComputer()
 {
     var part = new ShipPart("Positron Computer");
     part.Computer = 2;
     part.Initiative = 1;
     part.EnergyRequirement = 1;
     return part;
 }
 public ShipPart GetTachyonDrive()
 {
     var part = new ShipPart("Tachyon Drive");
     part.Movement = 3;
     part.Initiative = 3;
     part.EnergyRequirement = 3;
     return part;
 }
 public ShipPart GetImprovedHull()
 {
     var part = new ShipPart("Improved Hull");
     part.Hull = 2;
     return part;
 }
Exemple #22
0
 public void RemoveShipPart(ShipPart part)
 {
     ShipParts.Remove(part);
 }
 public ShipPart GetGaussShield()
 {
     var part = new ShipPart("Gauss Shield");
     part.Shield = 1;
     return part;
 }
 public ShipPart GetFusionSource()
 {
     var part = new ShipPart("Fusion Source");
     part.EnergySource = 6;
     return part;
 }
 private ShipPart GetTachyonSource()
 {
     var part = new ShipPart("Tachyon Source");
     part.EnergySource = 9;
     return part;
 }