7 #ifndef __intelligence_Scanner_h__ 8 #define __intelligence_Scanner_h__ 35 Scanner(
void) { setName(
"Scanner"); }
40 add(track, FE_SPEC(
"ai:track",
41 "Location of attention"));
42 add(autoRotate, FE_SPEC(
"ai:autoRotate",
43 "Default Rotational Velocity"));
44 add(rotVelocity, FE_SPEC(
"ai:rotVelocity",
45 "Current Rotational Velocity"));
46 add(selection, FE_SPEC(
"ai:selection",
48 add(purview, FE_SPEC(
"ai:observation",
49 "Record describing region of sight"));
50 add(nearest, FE_SPEC(
"ai:nearest",
51 "The nearest Record in selection"));
52 add(maxRotVelocity, FE_SPEC(
"ai:maxRotVel",
53 "Max angular velocity in degrees/second"));
54 add(maxRotAcceleration, FE_SPEC(
"ai:maxRotAccel",
55 "Max angular acceleration in degrees/second^2"));
56 add(tracking, FE_SPEC(
"ai:tracking",
57 "Flag to track a point"));
58 add(ignoreFriend, FE_SPEC(
"ai:ignFriend",
59 "Flag to ignore friends"));
60 add(ignoreNeutral, FE_SPEC(
"ai:ignNeutral",
61 "Flag to ignore those neither friend nor enemy"));
62 add(ignoreEnemy, FE_SPEC(
"ai:ignEnemy",
63 "Flag to ignore enemies"));
69 identifier()=
"Scanner";
72 observationRV.
bind(scope());
74 observationRV.observer()=record();
77 cylinderRV.
bind(scope());
80 set(cylinderRV.span(),8.0f);
81 cylinderRV.baseRadius()=0.4f;
82 cylinderRV.endRadius()=4.0f;
88 maxRotVelocity()=1.0f;
89 maxRotAcceleration()=1.0f;
92 ignoreNeutral()=
false;
virtual void addFunctors(void)
Called at instantiation to add functors.
Definition: lab/intelligence/Scanner.h:36
Controlled RecordView.
Definition: Controlled.h:19
void bind(sp< Scope > &rspScope)
Associate with a Scope.
Definition: RecordView.h:319
kernel
Definition: namespace.dox:3
Bound accessor in a RecordView.
Definition: RecordView.h:147
Cylinder RecordView.
Definition: Cylinder.h:27
Scanner RecordView.
Definition: lab/intelligence/Scanner.h:19
Observation RecordView.
Definition: Observation.h:22
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
Record createRecord(void)
Create a Record using all the attributes.
Definition: RecordView.h:469
virtual void initializeRecord(void)
Called at instantiation to initialize attributes.
Definition: lab/intelligence/Scanner.h:65