~widelands-dev/widelands/trunk

« back to all changes in this revision

Viewing changes to src/logic/map.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:
199
199
                std::function<std::string()> descname;
200
200
        };
201
201
        static const std::vector<OldWorldInfo> kOldWorldNames;
202
 
        static const OldWorldInfo& get_old_world_info_by_new_name(const std::string& old_name);
 
202
        static const OldWorldInfo& get_old_world_info_by_new_name(const std::string& new_name);
203
203
        static const OldWorldInfo& get_old_world_info_by_old_name(const std::string& old_name);
204
204
 
205
205
        using PortSpacesSet = std::set<Coords>;
625
625
        void calculate_minimum_required_widelands_version(bool is_post_one_world);
626
626
 
627
627
private:
628
 
        void recalc_border(const FCoords&);
629
 
        void recalc_brightness(const FCoords&);
 
628
        void recalc_border(const FCoords&) const;
 
629
        void recalc_brightness(const FCoords&) const;
630
630
        void recalc_nodecaps_pass1(const EditorGameBase&, const FCoords&);
631
631
        void recalc_nodecaps_pass2(const EditorGameBase&, const FCoords& f);
632
632
        NodeCaps
635
635
                                     const FCoords&,
636
636
                                     bool consider_mobs = true,
637
637
                                     NodeCaps initcaps = CAPS_NONE) const;
638
 
        void check_neighbour_heights(FCoords, uint32_t& radius);
 
638
        void check_neighbour_heights(FCoords, uint32_t& area);
639
639
        int calc_buildsize(const EditorGameBase&,
640
640
                           const FCoords& f,
641
641
                           bool avoidnature,