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_ |
Definition at line 206 of file handlers.cpp.
|
inline |
Definition at line 207 of file handlers.cpp.
|
inlineoverridevirtual |
Returns true if it is possible to serialize the filter into a config.
Reimplemented from game_events::event_filter.
Definition at line 216 of file handlers.cpp.
|
inlineoverridevirtual |
Runs the filter and returns whether it passes on the given event.
Implements game_events::event_filter.
Definition at line 208 of file handlers.cpp.
References resources::controller, side_filter::match(), and ssf_.
|
inlineoverridevirtual |
Serializes the filter into a config, if possible.
Reimplemented from game_events::event_filter.
Definition at line 212 of file handlers.cpp.
References config::add_child(), side_filter::get_config(), and ssf_.
|
private |
Definition at line 221 of file handlers.cpp.
Referenced by operator()(), and serialize().