Mitgliedschaft: Unterschied zwischen den Versionen

Aus BotE Wiki
Zur Navigation springen Zur Suche springen
(Vergabe von MinorBuildings, soweit ich es verstanden habe...)
Zeile 14: Zeile 14:
  
  
Buildings are generated in System.cpp:
+
Buildings of minor systems are generated in System.cpp:
 
*first (special)buildings are removed which shouldn't be available for our empire
 
*first (special)buildings are removed which shouldn't be available for our empire
 
*then check whether resources are available at the new system
 
*then check whether resources are available at the new system
Zeile 21: Zeile 21:
 
*at the moment just randomly selected from which major race buildings set is taken
 
*at the moment just randomly selected from which major race buildings set is taken
 
*if spaceflightnation=yes then first buildable shipyard is created
 
*if spaceflightnation=yes then first buildable shipyard is created
...to be continued
+
*now depending on kind of minor race buildings are build
 +
*if there are to less food buildings ("foodBuildings < m_dHabitants/4") some of them are added

Version vom 23. September 2012, 12:23 Uhr

Englisch-Symbol.jpg for English just click here


Mitgliedschaft ist das beste diplomatische Angebot, das ein Imperium an ein kleines Volk schicken kann.

Wenn ein kleines Volk das Angebot annimmt, wird es Teil des Imperiums. Sein System und sämtliche Flotten gehören ab jetzt zu dem Imperium, das ihm das Angebot geschickt hat.

Es besteht die Möglichkeit, dass das kleine Volk die Mitgliedschaft wieder kündigt, zum Beispiel wenn die Moral sehr niedrig ist oder es erfolgreich von einem anderen Imperium bestochen wurde.

Natürlich kann auch das Imperium die Mitgliedschaft, wie jeden anderen Vertrag, kündigen, dies dürfte aber nur im Ausnahmefall sinnvoll sein.


Im Programm-Code ist die Mitgliedschaft in DiplomacyController.cpp hinterlegt. Erst mit der Mitgliedschaft werden die Gebäude in Minor-Systems geschaffen und mit Arbeitern besetzt.


Buildings of minor systems are generated in System.cpp:

  • first (special)buildings are removed which shouldn't be available for our empire
  • then check whether resources are available at the new system
  • checking technological progress of the minor race (MinorRaces.data entry 11)
  • checking kind of the minor race (MinorRaces.data entry 12)
  • at the moment just randomly selected from which major race buildings set is taken
  • if spaceflightnation=yes then first buildable shipyard is created
  • now depending on kind of minor race buildings are build
  • if there are to less food buildings ("foodBuildings < m_dHabitants/4") some of them are added