Difference between revisions of "Program Code"

From Supremacy Wiki
Jump to: navigation, search
(some code)
(some code: GalaxyView Hotkeys Definition # (see Hotkeys))
Line 64: Line 64:
  
 
|-
 
|-
|style=text-align:left|S-Core
+
|style=text-align:left|S-ClientComp
|style=text-align:center|Universe
+
|style=text-align:center|Views\GalaxyScreen
|style=text-align:center|Colony.cs
+
|style=text-align:center|GalaxyScreenView.cs
|style=text-align:center|THIS IS ONLY A PATTERN !!
+
|style=text-align:center|GalaxyScreenView()
 
|style=text-align:center|  
 
|style=text-align:center|  
 +
|style=text-align:left|GalaxyView Hotkeys Definition (see [[Hotkey]]s)
 
|style=text-align:left|
 
|style=text-align:left|
 
|style=text-align:left|
 
|style=text-align:left|
|style=text-align:left|
+
 
 
|}
 
|}

Revision as of 18:49, 5 January 2014

Source is at https://bitbucket.org/mstrobel/supremacy/

Program Code Language: C#



some code

where Folder File Function empty Description Custom1 Custom2
S-Core Universe Colony.cs GetProductionOutput(ProductionCategory category)

see last line, too !

  • Food: minimum 10
  • Research:
                       float moraleMod = _morale.CurrentValue / (0.5f * MoraleHelper.MaxValue);
                       baseOutput = (int)(moraleMod * baseOutput);
  • Industry: minimum 10 !
                       float moraleMod = _morale.CurrentValue / (0.5f * MoraleHelper.MaxValue);
                       baseOutput = (int)(moraleMod * baseOutput);
  • last line: return ((int)(baseOutput + (baseOutput * modifier.Efficiency)) + modifier.Bonus);
S-Core Universe Colony.cs planet.HasFoodBonus (OutputModifier)
                       if (planet.HasFoodBonus)
                       modifier.Efficiency += 0.15f;
S-Core Universe Colony.cs planet.HasEnergyBonus (OutputModifier)
                   if (planet.HasEnergyBonus)
                       modifier.Efficiency += 0.15f;
S-ClientComp Views\GalaxyScreen GalaxyScreenView.cs GalaxyScreenView() GalaxyView Hotkeys Definition (see Hotkeys)