Free Electron
Controlled.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_Controlled_h__
8 #define __intelligence_Controlled_h__
9 namespace fe
10 {
11 namespace ext
12 {
13 
14 /**************************************************************************//**
15  @brief Controlled RecordView
16 
17  @ingroup intelligence
18 *//***************************************************************************/
19 class FE_DL_EXPORT Controlled: public Audible
20 {
21  public:
22  Functor<WeakRecord> controlRecord;
23  Functor<String> faction;
24  Functor<I32> subservience;
25 
26  Controlled(void) { setName("Controlled"); }
27 virtual void addFunctors(void)
28  {
30 
31  add(controlRecord, FE_SPEC("ai:controlCen",
32  "Who controls us"));
33  add(faction, FE_SPEC("ai:faction","Allegiance"));
34  add(subservience, FE_SPEC("ai:subservience",
35  "Magnitude of control over us"));
36  }
37 virtual void initializeRecord(void)
38  {
40 
41  identifier()="Controlled";
42 
43  faction()="";
44  subservience()=0;
45  }
46 };
47 
48 } /* namespace ext */
49 } /* namespace fe */
50 
51 #endif /* __intelligence_Controlled_h__ */
Controlled RecordView.
Definition: Controlled.h:19
virtual void initializeRecord(void)
Called at instantiation to initialize attributes.
Definition: Audible.h:62
kernel
Definition: namespace.dox:3
virtual void addFunctors(void)
Called at instantiation to add functors.
Definition: Audible.h:41
Audible RecordView.
Definition: Audible.h:28
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