]> git.mxchange.org Git - flightgear.git/commitdiff
Add a function to allow transmission of messages to AI entities - the actual implemen...
authordaveluff <daveluff>
Thu, 20 Mar 2003 11:53:44 +0000 (11:53 +0000)
committerdaveluff <daveluff>
Thu, 20 Mar 2003 11:53:44 +0000 (11:53 +0000)
src/ATC/AIEntity.cxx
src/ATC/AIEntity.hxx

index e2511a0ab4d96d5909eb0480906fdcffd1e38a28..126d0377852c7b948783117b1e4ed0d61dc2f286 100644 (file)
@@ -46,6 +46,9 @@ FGAIEntity::~FGAIEntity() {
 void FGAIEntity::Update(double dt) {
 }
 
+void FGAIEntity::RegisterTransmission(int code) {
+}
+
 // Run the internal calculations
 //void FGAIEntity::Update() {
 void FGAIEntity::Transform() {
index 9e99f5a87381cc8efba67ac983690adad44ddbcd..1c8afdc9e9e3fa877c09ed5ad644fb544aada722 100644 (file)
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-/*****************************************************************
-*
-* WARNING - Curt has some ideas about AI traffic so anything in here
-* may get rewritten or scrapped.  Contact Curt curt@flightgear.org 
-* before spending any time or effort on this code!!!
-*
-******************************************************************/
-
 #ifndef _FG_AIEntity_HXX
 #define _FG_AIEntity_HXX
 
@@ -51,6 +43,10 @@ public:
 
     // Run the internal calculations
     virtual void Update(double dt);
+       
+       // Send a transmission *TO* the AIEntity.
+       // FIXME int code is a hack - eventually this will receive Alexander's coded messages.
+       virtual void RegisterTransmission(int code);
 
 protected: