/** * Immediately add any new abilities to the engine. */ public void AnalyzeEngineAbilityAdd(EngineAbility newability) { switch (newability.Name) { case "Auxiliary Tank": { this.engine.MaxWater = 18; this.engine.CurrentWater = 18; this.lblWater.Text = "18"; break; } case "Burrowing Apparatus": { this.engine.IsBurrow = true; break; } case "Stupdendous Steering": { this.engine.MovesDiag = true; break; } case "Incredible Engine": { this.engine.MaxGadgets = 2; break; } case "Efficiency Model": { this.engine.MaxMove = 6; this.engine.MoveCoalCost = 1; break; } case "Extra Coal Bin": { this.engine.MaxCoal = 18; this.engine.CurrentCoal = 18; this.lblCoal.Text = "18"; break; } case "Precision Engine": { this.engine.IsPrecision = true; break; } case "Tank Treads": { this.engine.MoveOverWreckage = true; break; } } }
public void AddEngineAbility(EngineAbility ability) { this.ability = ability; this.icon.Image = ability.icon; this.AnalyzeEngineAbilityAdd(ability); }