Exemple #1
0
 // ***************************************************************************
 // Clont Object
 public Antrieb Clone()
 {
     Antrieb a = new Antrieb(TypeId, Group, Name, RateOfFire, Damage, SoundId, Weight, Description, LocationBehavior.Clone());
     a.RequiredLiquid = RequiredLiquid;
     a.Renderer = Renderer;
     return a;
 }
Exemple #2
0
 // ***************************************************************************
 // Konstruktor
 public Weapon( Visier visier, Antrieb antrieb, Stabilisator stabilisator, Hauptteil hauptteil, int id, EGroup group, String name, float weight, string description, ILocationBehavior locationBehavior )
     : base(id, group, name, description, weight, locationBehavior)
 {
     this.Visier = visier;
     this.Antrieb = antrieb;
     this.Stabilisator = stabilisator;
     this.Hauptteil = hauptteil;
 }
Exemple #3
0
        private void DrawAntrieb(Microsoft.Xna.Framework.Graphics.SpriteBatch sb, Antrieb antrieb)
        {
            int x = (int)(GetPosition().X);
            int y = (int)(GetPosition().Y);

            sb.DrawString(UIButton.FONT_DEFAULT, antrieb.Name, new Vector2(padding + x, padding + y), Color.Black);
            sb.DrawString(UIButton.FONT_DEFAULT, "Schaden: " + antrieb.Damage + " Feuerrate: " + antrieb.RateOfFire, new Vector2(padding + x, padding + y + lineHeight), Color.Black);
            sb.DrawString(UIButton.FONT_DEFAULT, "Gewicht: " + antrieb.Weight, new Vector2(padding + x, padding + y + lineHeight * 2), Color.Black);
        }
Exemple #4
0
 public void SetAntriebIcon( Antrieb antrieb )
 {
     antriebCraftingIcon = antrieb.CraftingItem;
 }
Exemple #5
0
 private void DrawAntrieb( Microsoft.Xna.Framework.Graphics.SpriteBatch sb, Antrieb antrieb )
 {
     sb.DrawString( UIButton.FONT_DEFAULT, antrieb.Name, new Vector2( TEXT_PADDING + textX, TEXT_PADDING + textY ), Color.Black );
     sb.DrawString( UIButton.FONT_DEFAULT, "Schaden: " + antrieb.Damage, new Vector2( TEXT_PADDING + textX, TEXT_PADDING + textY + TEXT_LINE_HEIGHT * 2 ), Color.Black );
     sb.DrawString( UIButton.FONT_DEFAULT, "Feuerrate: " + antrieb.RateOfFire, new Vector2( TEXT_PADDING + textX, TEXT_PADDING + textY + TEXT_LINE_HEIGHT * 3 ), Color.Black );
     sb.DrawString( UIButton.FONT_DEFAULT, "Gewicht: " + antrieb.Weight, new Vector2( TEXT_PADDING + textX, TEXT_PADDING + textY + TEXT_LINE_HEIGHT * 4 ), Color.Black );
 }
        public void SetAntrieb(Antrieb newAntrieb)
        {
            DecrimentRequired(Antrieb);
            IncrementRequired(newAntrieb);

            Antrieb = newAntrieb;
            antriebButton.BackgroundTextur = newAntrieb.Icon;
            antriebButton.BackgroundColor = Color.White;
            weaponPanel.SetAntriebIcon(newAntrieb);
            rateOfFireButton.Text = rateOfFire + GetTotalRateOfFire();
            demageButton.Text = demage + newAntrieb.Damage;
        }