SimpleAI
 All Classes Namespaces Files Functions Variables Typedefs Macros Groups Pages
SelectEmpty.h
Go to the documentation of this file.
1 
5 #pragma once
6 
7 #include "filter/IFilter.h"
8 
9 namespace ai {
10 
14 class SelectEmpty: public IFilter {
15 public:
16  FILTER_CLASS_SINGLETON(SelectEmpty)
17 
18  void filter (const AIPtr& entity) override;
19 };
20 
21 inline void SelectEmpty::filter (const AIPtr& entity) {
22  getFilteredEntities(entity).clear();
23 }
24 
25 }
This filter just clears the selection.
Definition: SelectEmpty.h:14