Public Member Functions | |
filter_attack (const vconfig &cfg, bool first) | |
bool | operator() (const queued_event &event_info) 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... | |
![]() | |
virtual | ~event_filter ()=default |
event_filter ()=default | |
Private Attributes | |
vconfig | swf_ |
bool | first_ |
Definition at line 238 of file handlers.cpp.
|
inline |
Definition at line 239 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 255 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 240 of file handlers.cpp.
References config::child(), game_events::queued_event::data, config::empty(), unit_map::end(), unit_map::find(), resources::gameboard, game_events::queued_event::loc1, game_events::queued_event::loc2, game_events::matches_special_filter(), and game_board::units().
|
inlineoverridevirtual |
Serializes the filter into a config, if possible.
Reimplemented from game_events::event_filter.
Definition at line 251 of file handlers.cpp.
References config::add_child().
|
private |
Definition at line 261 of file handlers.cpp.
|
private |
Definition at line 260 of file handlers.cpp.