OpenTTD Source: BadgeDropdownFilter Class Reference

OpenTTD Source 15.0-RC2

Public Member Functions | Private Attributes
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

  badges | List 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:

- src/newgrf_badge.h
- src/newgrf_badge.cpp