OpenTTD Source 20250704-master-gf23845805a
BadgeDropdownFilter Class Reference

Public Member Functions

 BadgeDropdownFilter (const BadgeFilterChoices &conf)
 
bool Filter (std::span< const BadgeID > badges) const
 Test if the given badges matches the filtered badge list.
 

Private Attributes

const BadgeFilterChoices & badges
 

Detailed Description

Definition at line 80 of file newgrf_badge.h.

Constructor & Destructor Documentation

◆ BadgeDropdownFilter()

BadgeDropdownFilter::BadgeDropdownFilter ( const BadgeFilterChoices &  conf)
inline

Definition at line 82 of file newgrf_badge.h.

Member Function Documentation

◆ Filter()

bool BadgeDropdownFilter::Filter ( std::span< const BadgeID badges) const

Test if the given badges matches the filtered badge list.

Parameters
badgesList of badges.
Returns
true iff all required badges are present in the provided list.

Definition at line 350 of file newgrf_badge.cpp.

Field Documentation

◆ badges

const BadgeFilterChoices& BadgeDropdownFilter::badges
private

Definition at line 86 of file newgrf_badge.h.


The documentation for this class was generated from the following files: