vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Remover.h
Go to the documentation of this file.
1 #ifndef REMOVER
2 #define REMOVER
3 
4 #include <vrecko/Ability.h>
5 #include <set>
6 #include <vrecko/IOPins.h>
7 #include <vrecko/Message.h>
8 
9 namespace CarSim {
10  // abilita, ktera bude mazat EnvironmentObjecty aut po jejich dojeti do cile
11  class Remover: public vrecko::Ability {
12  public:
13  Remover();
14  ~Remover() {};
15 
16  void preInitialize(void);
17 
18  // EO aut, ktera se prihlasila (pres processEvent), se smazou v teto metode
19  void update(void);
20  void processEvent(const std::string &input_name, void *value);
21 
22  protected:
23  // mnozina id environment objectu aut, ktera dojela do cile a
24  // ktera maji byt smazany
25  std::set<unsigned int> carsToRemove;
26 
27  DECLARE_INPUT(InCarToRemove, vrecko::MessageUnsignedInt);
28  };
29 }
30 
31 #endif
32 
33 
34