Free Electron
Targeter.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __intelligence_Targeter_h__
8 #define __intelligence_Targeter_h__
9 namespace fe
10 {
11 namespace ext
12 {
13 
14 /**************************************************************************//**
15  @brief Targeter RecordView
16 
17  @ingroup intelligence
18 *//***************************************************************************/
19 class FE_DL_EXPORT Targeter: public Controlled
20 {
21  public:
23  Functor<I32> requests;
24 
25  Targeter(void) { setName("Targeter"); }
26 virtual void addFunctors(void)
27  {
29 
30  add(target, FE_SPEC("ai:target",
31  "Location of intended impact"));
32  add(requests, FE_SPEC("ai:requests",
33  "Number of actions queued"));
34  }
35 virtual void initializeRecord(void)
36  {
38 
39  identifier()="Targeter";
40  requests()=0;
41  }
42 };
43 
44 } /* namespace ext */
45 } /* namespace fe */
46 
47 #endif /* __intelligence_Targeter_h__ */
Controlled RecordView.
Definition: Controlled.h:19
kernel
Definition: namespace.dox:3
Bound accessor in a RecordView.
Definition: RecordView.h:147
virtual void addFunctors(void)
Called at instantiation to add functors.
Definition: Targeter.h:26
virtual void initializeRecord(void)
Called at instantiation to initialize attributes.
Definition: Targeter.h:35
virtual void initializeRecord(void)
Called at instantiation to initialize attributes.
Definition: Controlled.h:37
virtual void addFunctors(void)
Called at instantiation to add functors.
Definition: Controlled.h:27
Targeter RecordView.
Definition: Targeter.h:19