The Battle for Wesnoth  1.19.9+dev
Public Member Functions | Public Attributes | List of all members
gui2::game_tip Struct Reference

#include <tips.hpp>

Public Member Functions

 game_tip (const config &cfg)
 

Public Attributes

t_string text
 The text of the tip. More...
 
t_string source
 The source of the tip. More...
 
std::vector< std::string > unit_filter
 List of units to filter the tip upon. More...
 

Detailed Description

Definition at line 52 of file tips.hpp.

Constructor & Destructor Documentation

◆ game_tip()

gui2::game_tip::game_tip ( const config cfg)

Definition at line 28 of file tips.cpp.

Member Data Documentation

◆ source

t_string gui2::game_tip::source

The source of the tip.

Definition at line 60 of file tips.hpp.

◆ text

t_string gui2::game_tip::text

The text of the tip.

Definition at line 57 of file tips.hpp.

◆ unit_filter

std::vector<std::string> gui2::game_tip::unit_filter

List of units to filter the tip upon.

If the list is empty the tip is shown. Else the unit must have encountered at least one of the units in the list.

Definition at line 68 of file tips.hpp.


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