~parasiteofchar/s25rttr/AIpoc2

« back to all changes in this revision

Viewing changes to src/nobMilitary.h

  • Committer: poc
  • Date: 2015-02-14 18:27:20 UTC
  • Revision ID: parasiteofchar@googlemail.com-20150214182720-9p884ms594wgs1j1
new addon: Individual Custom Military
allows players to set the requested_soldier count for each individual military building

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
    public:
67
67
                ///addon: custom requested soldiercount
68
68
                unsigned requested_soldiers;
 
69
                ///addon: custom requested soldiercount, updated in CalcTroopsCount()
 
70
                int requested_soldiers_by_milSettings;
69
71
        /// Soldatenbesatzung
70
72
        list<nofPassiveSoldier*> troops;
71
73
 
211
213
                void SendSoldiersHome();
212
214
                /// order new troops
213
215
                void OrderNewSoldiers();
 
216
                /// set a custom value for the requested soldiers for this building
 
217
                void RequestedSoldiersInc();
 
218
                void RequestedSoldiersDec();
 
219
                void RequestedSoldiersRes();
214
220
 
215
221
        /// Darf das Militärgebäude abgerissen werden (Abriss-Verbot berücksichtigen)?
216
222
        bool IsDemolitionAllowed() const;