The Battle for Wesnoth  1.17.6+dev
Public Member Functions | Private Attributes | List of all members
game_events::filter_side Struct Reference
Inheritance diagram for game_events::filter_side:

Public Member Functions

 filter_side (const vconfig &cfg)
 
bool operator() (const queued_event &) const override
 Runs the filter and returns whether it passes on the given event. More...
 
void serialize (config &cfg) const override
 Serializes the filter into a config, if possible. More...
 
bool can_serialize () const override
 Returns true if it is possible to serialize the filter into a config. More...
 
- Public Member Functions inherited from game_events::event_filter
virtual ~event_filter ()=default
 
 event_filter ()=default
 

Private Attributes

side_filter ssf_
 

Detailed Description

Definition at line 199 of file handlers.cpp.

Constructor & Destructor Documentation

◆ filter_side()

game_events::filter_side::filter_side ( const vconfig cfg)
inline

Definition at line 200 of file handlers.cpp.

Member Function Documentation

◆ can_serialize()

bool game_events::filter_side::can_serialize ( ) const
inlineoverridevirtual

Returns true if it is possible to serialize the filter into a config.

Reimplemented from game_events::event_filter.

Definition at line 209 of file handlers.cpp.

◆ operator()()

bool game_events::filter_side::operator() ( const queued_event event_info) const
inlineoverridevirtual

Runs the filter and returns whether it passes on the given event.

Implements game_events::event_filter.

Definition at line 201 of file handlers.cpp.

References resources::controller.

◆ serialize()

void game_events::filter_side::serialize ( config cfg) const
inlineoverridevirtual

Serializes the filter into a config, if possible.

Reimplemented from game_events::event_filter.

Definition at line 205 of file handlers.cpp.

References config::add_child().

Member Data Documentation

◆ ssf_

side_filter game_events::filter_side::ssf_
private

Definition at line 214 of file handlers.cpp.


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