3 Documentation
RElesgoe edited this page 2017-05-29 10:47:28 -07:00

pvpgn::bnetd::AdBanner

Declared in /bnetd/adbanner.h

Member functions

Public

  • bool is_empty() const;
  • std::size_t get_id() const noexcept;
  • std::string get_filename() const noexcept;
  • unsigned int get_extension_tag() const noexcept;
  • std::string get_url() const noexcept;
  • t_clienttag get_client() const noexcept;
  • t_gamelang get_language() const noexcept;

Private

  • friend void AdBannerSelector::load(const std::string& filename);
  • AdBanner(std::size_t id, bn_int extensiontag, const std::string& filename, const std::string& url, t_clienttag client, t_gamelang language);

pvpgn::bnetd::AdBannerSelector

Declared in /bnetd/adbanner.h

Member Functions

Public

  • AdBannerSelector() = default;
  • ~AdBannerSelector() = default;
  • bool is_loaded() const noexcept;
  • void load(const std::string& filename);
  • void unload() noexcept;
  • std::size_t size() const noexcept;
  • const AdBanner* const pick(t_clienttag client_tag, t_gamelang client_lang, std::size_t prev_ad_id);
  • const AdBanner* const find(t_clienttag client_tag, t_gamelang client_lang, std::size_t ad_id);