示例#1
0
 private static Rohstoffe Rohstoffkosten()
 {
     Rohstoffe r = new Rohstoffe();          
     r.Population = 1;
     r.BronzeSword = 10;
     r.Beer = 5;
     return r;
 }
示例#2
0
        private static Rohstoffe Rohstoffkosten()
        {
            Rohstoffe r = new Rohstoffe();

            r.Population  = 1;
            r.BronzeSword = 10;
            r.Beer        = 5;
            return(r);
        }
示例#3
0
		public Einheit(int SequencePrio, System.Drawing.Bitmap Bild, string Type, int PlayerLevel, int HitDamage, int MissDamage, int HitPercentage, int HitPoints, int XpForDefeat, bool Produceable, int ProductionTimeSeconds, Rohstoffe rohstoffe, Skills skills) {
			sequencePrio = SequencePrio;
			type = Type;
			playerLevel = PlayerLevel;
			hitPoints = HitPoints;
			maxhp = HitPoints;
			hitDamage = HitDamage;
			missDamage = MissDamage;
			hitPercentage = HitPercentage;
			xpForDefeat = XpForDefeat;
			produceable = Produceable;
			productionTimeSeconds = ProductionTimeSeconds;
			r = rohstoffe;
			s = skills;
			bild = Bild;
		}
示例#4
0
 public Einheit(int SequencePrio, System.Drawing.Bitmap Bild, string Type, int PlayerLevel, int HitDamage, int MissDamage, int HitPercentage, int HitPoints, int XpForDefeat, bool Produceable, int ProductionTimeSeconds, Rohstoffe rohstoffe, Skills skills)
 {
     sequencePrio          = SequencePrio;
     type                  = Type;
     playerLevel           = PlayerLevel;
     hitPoints             = HitPoints;
     maxhp                 = HitPoints;
     hitDamage             = HitDamage;
     missDamage            = MissDamage;
     hitPercentage         = HitPercentage;
     xpForDefeat           = XpForDefeat;
     produceable           = Produceable;
     productionTimeSeconds = ProductionTimeSeconds;
     r    = rohstoffe;
     s    = skills;
     bild = Bild;
 }
示例#5
0
        private static Rohstoffe Rohstoffkosten()
        {
            Rohstoffe r = new Rohstoffe();

            return(r);
        }
示例#6
0
 private static Rohstoffe Rohstoffkosten()
 {
     Rohstoffe r = new Rohstoffe();          
     return r;
 }
示例#7
0
		private void schreibeVerlustAnRohstoffe() {
			Rohstoffe a = new Rohstoffe();
			foreach (Einheit e in todeVomAngreiferGesamt) {
				a.Beer += e.rohstoffe.Beer;
				a.Bow += e.rohstoffe.Bow;
				a.BronzeSword += e.rohstoffe.BronzeSword;
				a.Cannon += e.rohstoffe.Cannon;
				a.Crossbow += e.rohstoffe.Crossbow;
				a.Horse += e.rohstoffe.Horse;
				a.IronSword += e.rohstoffe.IronSword;
				a.Longbow += e.rohstoffe.Longbow;
				a.Population += e.rohstoffe.Population;
				a.SteelSword += e.rohstoffe.SteelSword;
				a.TitaniumSword += e.rohstoffe.TitaniumSword;
			}

			Rohstoffe d = new Rohstoffe();
			foreach (Einheit e in todeVomVerteidigerrGesamt) {
				d.Beer += e.rohstoffe.Beer;
				d.Bow += e.rohstoffe.Bow;
				d.BronzeSword += e.rohstoffe.BronzeSword;
				d.Cannon += e.rohstoffe.Cannon;
				d.Crossbow += e.rohstoffe.Crossbow;
				d.Horse += e.rohstoffe.Horse;
				d.IronSword += e.rohstoffe.IronSword;
				d.Longbow += e.rohstoffe.Longbow;
				d.Population += e.rohstoffe.Population;
				d.SteelSword += e.rohstoffe.SteelSword;
				d.TitaniumSword += e.rohstoffe.TitaniumSword;
			}


			kampbericht += "<div id=\"container1\">";
			kampbericht += "<div id=\"container2\">";
			kampbericht += "<h2>Verlust an Rohstoffe</h2>";

			kampbericht += "<div style=\"float:left; width:398px\"><h3>Angreifer</h3>";
			kampbericht += "<p>" + a.Crossbow + " Armbrüste</p>";
			kampbericht += "<p>" + a.Beer + " Bier</p>";
			kampbericht += "<p>" + a.Bow + " Bögen</p>";
			kampbericht += "<p>" + a.BronzeSword + " Bronzeschwerter</p>";
			kampbericht += "<p>" + a.IronSword + " Eisenschwerter</p>";
			kampbericht += "<p>" + a.Cannon + " Kanonen</p>";
			kampbericht += "<p>" + a.Longbow + " Langbogen</p>";
			kampbericht += "<p>" + a.Horse + " Pferde</p>";
			kampbericht += "<p>" + a.Population + " Siedler</p>";
			kampbericht += "<p>" + a.SteelSword + " Stahlschwerter</p>";
			kampbericht += "<p>" + a.TitaniumSword + " Titaniumschwerter</p>";

			kampbericht += "</div>";

			kampbericht += "<div style=\"float:right; width:398px\"><h3>Verteidiger</h3>";
			kampbericht += "<p>" + d.Crossbow + " Armbrüste</p>";
			kampbericht += "<p>" + d.Beer + " Bier</p>";
			kampbericht += "<p>" + d.Bow + " Bögen</p>";
			kampbericht += "<p>" + d.BronzeSword + " Bronzeschwerter</p>";
			kampbericht += "<p>" + d.IronSword + " Eisenschwerter</p>";
			kampbericht += "<p>" + d.Cannon + " Kanonen</p>";
			kampbericht += "<p>" + d.Longbow + " Langbogen</p>";
			kampbericht += "<p>" + d.Horse + " Pferde</p>";
			kampbericht += "<p>" + d.Population + " Siedler</p>";
			kampbericht += "<p>" + d.SteelSword + " Stahlschwerter</p>";
			kampbericht += "<p>" + d.TitaniumSword + " Titaniumschwerter</p>";
			kampbericht += "</div>";

			kampbericht += "<div style=\"clear:both\">&nbsp;</div>";
			kampbericht += "</div>";
			kampbericht += "</div>";

		}
示例#8
0
        private void schreibeVerlustAnRohstoffe()
        {
            Rohstoffe a = new Rohstoffe();

            foreach (Einheit e in todeVomAngreiferGesamt)
            {
                a.Beer          += e.rohstoffe.Beer;
                a.Bow           += e.rohstoffe.Bow;
                a.BronzeSword   += e.rohstoffe.BronzeSword;
                a.Cannon        += e.rohstoffe.Cannon;
                a.Crossbow      += e.rohstoffe.Crossbow;
                a.Horse         += e.rohstoffe.Horse;
                a.IronSword     += e.rohstoffe.IronSword;
                a.Longbow       += e.rohstoffe.Longbow;
                a.Population    += e.rohstoffe.Population;
                a.SteelSword    += e.rohstoffe.SteelSword;
                a.TitaniumSword += e.rohstoffe.TitaniumSword;
            }

            Rohstoffe d = new Rohstoffe();

            foreach (Einheit e in todeVomVerteidigerrGesamt)
            {
                d.Beer          += e.rohstoffe.Beer;
                d.Bow           += e.rohstoffe.Bow;
                d.BronzeSword   += e.rohstoffe.BronzeSword;
                d.Cannon        += e.rohstoffe.Cannon;
                d.Crossbow      += e.rohstoffe.Crossbow;
                d.Horse         += e.rohstoffe.Horse;
                d.IronSword     += e.rohstoffe.IronSword;
                d.Longbow       += e.rohstoffe.Longbow;
                d.Population    += e.rohstoffe.Population;
                d.SteelSword    += e.rohstoffe.SteelSword;
                d.TitaniumSword += e.rohstoffe.TitaniumSword;
            }


            kampbericht += "<div id=\"container1\">";
            kampbericht += "<div id=\"container2\">";
            kampbericht += "<h2>Verlust an Rohstoffe</h2>";

            kampbericht += "<div style=\"float:left; width:398px\"><h3>Angreifer</h3>";
            kampbericht += "<p>" + a.Crossbow + " Armbrüste</p>";
            kampbericht += "<p>" + a.Beer + " Bier</p>";
            kampbericht += "<p>" + a.Bow + " Bögen</p>";
            kampbericht += "<p>" + a.BronzeSword + " Bronzeschwerter</p>";
            kampbericht += "<p>" + a.IronSword + " Eisenschwerter</p>";
            kampbericht += "<p>" + a.Cannon + " Kanonen</p>";
            kampbericht += "<p>" + a.Longbow + " Langbogen</p>";
            kampbericht += "<p>" + a.Horse + " Pferde</p>";
            kampbericht += "<p>" + a.Population + " Siedler</p>";
            kampbericht += "<p>" + a.SteelSword + " Stahlschwerter</p>";
            kampbericht += "<p>" + a.TitaniumSword + " Titaniumschwerter</p>";

            kampbericht += "</div>";

            kampbericht += "<div style=\"float:right; width:398px\"><h3>Verteidiger</h3>";
            kampbericht += "<p>" + d.Crossbow + " Armbrüste</p>";
            kampbericht += "<p>" + d.Beer + " Bier</p>";
            kampbericht += "<p>" + d.Bow + " Bögen</p>";
            kampbericht += "<p>" + d.BronzeSword + " Bronzeschwerter</p>";
            kampbericht += "<p>" + d.IronSword + " Eisenschwerter</p>";
            kampbericht += "<p>" + d.Cannon + " Kanonen</p>";
            kampbericht += "<p>" + d.Longbow + " Langbogen</p>";
            kampbericht += "<p>" + d.Horse + " Pferde</p>";
            kampbericht += "<p>" + d.Population + " Siedler</p>";
            kampbericht += "<p>" + d.SteelSword + " Stahlschwerter</p>";
            kampbericht += "<p>" + d.TitaniumSword + " Titaniumschwerter</p>";
            kampbericht += "</div>";

            kampbericht += "<div style=\"clear:both\">&nbsp;</div>";
            kampbericht += "</div>";
            kampbericht += "</div>";
        }