Free Electron
Thruster.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_Thruster_h__
8 #define __intelligence_Thruster_h__
9 namespace fe
10 {
11 namespace ext
12 {
13 
14 /**************************************************************************//**
15  @brief Thruster RecordView
16 
17  @ingroup intelligence
18 *//***************************************************************************/
19 class FE_DL_EXPORT Thruster: public Controlled
20 {
21  public:
23  Functor<F32> thrustLimit;
24 
25  Thruster(void) { setName("Thruster"); }
26 virtual void addFunctors(void)
27  {
29 
30  add(thrust, FE_SPEC("ai:thrust",
31  "Current propulsion"));
32  add(thrustLimit, FE_SPEC("ai:thrustLimit",
33  "Maximum propulsion"));
34  }
35 virtual void initializeRecord(void)
36  {
38 
39  identifier()="Thruster";
40 
41 // nextSong()="thrust";
42 
43  set(thrust());
44  thrustLimit()=1.0f;
45  }
46 };
47 
48 } /* namespace ext */
49 } /* namespace fe */
50 
51 #endif /* __intelligence_Thruster_h__ */
Controlled RecordView.
Definition: Controlled.h:19
kernel
Definition: namespace.dox:3
Bound accessor in a RecordView.
Definition: RecordView.h:147
Thruster RecordView.
Definition: Thruster.h:19
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
virtual void initializeRecord(void)
Called at instantiation to initialize attributes.
Definition: Thruster.h:35
virtual void addFunctors(void)
Called at instantiation to add functors.
Definition: Thruster.h:26