~widelands-dev/widelands/trunk

« back to all changes in this revision

Viewing changes to src/wui/attack_window.h

  • Committer: The Widelands Bunnybot
  • Date: 2024-10-19 13:45:54 UTC
  • Revision ID: bunnybot@widelands.org-20241019134554-kz2gcbecf0y7bd7n
170 files were automatically formatted.

(by bunnybot)
5a9087b08ab9bbc48795ff0f7f1f370f60108b1a

Show diffs side-by-side

added added

removed removed

Lines of Context:
200
200
 
201
201
        [[nodiscard]] Widelands::Building* get_building() const {
202
202
                return attack_type_ != AttackPanel::AttackType::kBuilding ?
203
 
                nullptr :
204
 
                dynamic_cast<Widelands::Building*>(target_building_or_ship_.get(iplayer_.egbase()));
 
203
                          nullptr :
 
204
                          dynamic_cast<Widelands::Building*>(target_building_or_ship_.get(iplayer_.egbase()));
205
205
        }
206
206
        [[nodiscard]] Widelands::Ship* get_ship() const {
207
207
                return attack_type_ != AttackPanel::AttackType::kShip ?
208
 
                nullptr :
209
 
                dynamic_cast<Widelands::Ship*>(target_building_or_ship_.get(iplayer_.egbase()));
 
208
                          nullptr :
 
209
                          dynamic_cast<Widelands::Ship*>(target_building_or_ship_.get(iplayer_.egbase()));
210
210
        }
211
211
        [[nodiscard]] bool is_naval_invasion() const {
212
212
                return attack_type_ == AttackPanel::AttackType::kNavalInvasion;