~widelands-dev/widelands/trunk

« back to all changes in this revision

Viewing changes to src/logic/map_objects/tribes/tribe_descr.h

  • Committer: The Widelands Bunnybot
  • Date: 2022-02-27 18:58:23 UTC
  • Revision ID: bunnybot@widelands.org-20220227185823-tyvkc7z2dho9it5a
Fix misc clang-tidy checks in `logic` (#5255)

(by Noordfrees)
f48cadd044004aa7eb32d222927ec9b0ab744457

Show diffs side-by-side

added added

removed removed

Lines of Context:
190
190
        }
191
191
 
192
192
        // Read helptext from Lua table
193
 
        void load_helptexts(MapObjectDescr*, const LuaTable&);
 
193
        void load_helptexts(MapObjectDescr* descr, const LuaTable& table) const;
194
194
 
195
195
        // Make sure that everything is there and that dependencies are calculated.
196
196
        // This needs to be called exactly once during postloading.
206
206
        void load_buildings(const LuaTable& table, Descriptions& descriptions);
207
207
 
208
208
        // Helper function for adding a special worker type (carriers etc.)
209
 
        DescriptionIndex add_special_worker(const std::string& workername, Descriptions& descriptions);
 
209
        DescriptionIndex add_special_worker(const std::string& workername,
 
210
                                            Descriptions& descriptions) const;
210
211
        // Helper function for adding a special building type (port etc.)
211
212
        DescriptionIndex add_special_building(const std::string& buildingname,
212
 
                                              Descriptions& descriptions);
 
213
                                              Descriptions& descriptions) const;
213
214
        // Helper function to calculate trainingsites proportions for the AI
214
 
        void calculate_trainingsites_proportions(const Descriptions& descriptions);
 
215
        void calculate_trainingsites_proportions(const Descriptions& descriptions) const;
215
216
 
216
217
        void process_productionsites(Descriptions& descriptions);
217
218