|
|
(One intermediate revision by one user not shown) |
Line 1: |
Line 1: |
− | Source is at https://bitbucket.org/mstrobel/BotF2/
| + | #redirect [[Source Code]] |
− | | + | |
− | Program Code Language: C#
| + | |
− | | + | |
− | | + | |
− | <img>http://botf2.square7.ch/wiki-files/images/BotF2-MicrosoftVisualC2010Express.jpg</img>
| + | |
− | | + | |
− | | + | |
− | == some code ==
| + | |
− | | + | |
− | | + | |
− | {|class="wikitable sortable"
| + | |
− | ! bgcolor="#dadada" style="border:4px solid #999999;padding:0.2em;padding-top:0.2em;" |where
| + | |
− | ! bgcolor="#dadada" style="border:4px solid #999999;padding:0.2em;padding-top:0.2em;" |Folder
| + | |
− | ! bgcolor="#dadada" style="border:4px solid #999999;padding:0.2em;padding-top:0.2em;" |File
| + | |
− | ! bgcolor="#dadada" style="border:4px solid #999999;padding:0.2em;padding-top:0.2em;" |Function
| + | |
− | ! bgcolor="#dadada" style="border:4px solid #999999;padding:0.2em;padding-top:0.2em;" |empty
| + | |
− | ! bgcolor="#dadada" style="border:4px solid #999999;padding:0.2em;padding-top:0.2em;" |Description
| + | |
− | ! bgcolor="#dadada" style="border:4px solid #999999;padding:0.2em;padding-top:0.2em;" |Custom1
| + | |
− | ! bgcolor="#dadada" style="border:4px solid #999999;padding:0.2em;padding-top:0.2em;" |Custom2
| + | |
− | | + | |
− | |-
| + | |
− | |style=text-align:left|S-Core
| + | |
− | |style=text-align:center|Universe
| + | |
− | |style=text-align:center|Colony.cs
| + | |
− | |style=text-align:center|GetProductionOutput(ProductionCategory category)
| + | |
− | |style=text-align:center|
| + | |
− | |style=text-align:left|
| + | |
− | 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);
| + | |
− | |style=text-align:left|
| + | |
− | |style=text-align:left|
| + | |
− | | + | |
− | |-
| + | |
− | |style=text-align:left|S-Core
| + | |
− | |style=text-align:center|Universe
| + | |
− | |style=text-align:center|Colony.cs
| + | |
− | |style=text-align:center|planet.HasFoodBonus (OutputModifier)
| + | |
− | |style=text-align:center|
| + | |
− | |style=text-align:left|
| + | |
− | if (planet.HasFoodBonus)
| + | |
− | modifier.Efficiency += 0.15f;
| + | |
− | |style=text-align:left|
| + | |
− | |style=text-align:left|
| + | |
− | | + | |
− | |-
| + | |
− | |style=text-align:left|S-Core
| + | |
− | |style=text-align:center|Universe
| + | |
− | |style=text-align:center|Colony.cs
| + | |
− | |style=text-align:center|planet.HasEnergyBonus (OutputModifier)
| + | |
− | |style=text-align:center|
| + | |
− | |style=text-align:left|
| + | |
− | if (planet.HasEnergyBonus)
| + | |
− | modifier.Efficiency += 0.15f;
| + | |
− | |style=text-align:left|
| + | |
− | |style=text-align:left|
| + | |
− | | + | |
− | |-
| + | |
− | |style=text-align:left|S-ClientComp
| + | |
− | |style=text-align:center|Views\GalaxyScreen
| + | |
− | |style=text-align:center|GalaxyScreenView.cs
| + | |
− | |style=text-align:center|GalaxyScreenView()
| + | |
− | |style=text-align:center|
| + | |
− | |style=text-align:left|GalaxyView Hotkeys Definition (see [[Hotkey]]s)
| + | |
− | |style=text-align:left|
| + | |
− | |style=text-align:left|
| + | |
− | | + | |
− | |}
| + | |