VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
launchSmokeController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
13 #include "vlutil/vlString.h"
15 
16 #include <list>
17 
20 
26 {
27 public:
29  DtLaunchSmokeController(const DtString & name, DtVrfObject* owner,
30  DtSimManager * simManager, DtComponentDescriptor* desc = NULL,
31  DtReaderWriterRegistry * parentRegistry = 0);
32 
34  virtual ~DtLaunchSmokeController();
35 
38 
41 
44  virtual const char* type() const;
45 
47  virtual void registerTaskMsgCallbacks();
48 
52  static void launchSmokeTaskCallback(DtSimMessage * msg, void * usr);
53 
56  virtual void processLaunchSmokeTask(DtSimMessage * msg);
57 
60  virtual bool init();
61 
63  virtual void tick();
64 
66  static DtSimComponent* creator(const DtString & name, DtVrfObject* owner,
67  DtSimManager * simManager, DtComponentDescriptor* desc,
68  DtReaderWriterRegistry * parentRegistry);
69 
71  virtual bool useSmokeBomb();
72 
75  virtual bool launchSmoke();
76 
78  virtual void sendDetonation(const DtVector& geocLoc) const;
79 
81  virtual void launchSmokeTowards(double heading);
82 
84  virtual double calculateHeadingTowards(DtRwSensorContactInfo* closest) const;
85 
87  virtual DtRwSensorContactInfo* findClosestThreat() const;
88 
90  virtual void terrainClamp(const DtVector& geocLocIn, DtVector& geocLocOut) const;
91 
93  virtual void createSmoke(const std::list<DtVector>& cloudLocations);
94 
95 protected:
97  virtual bool createPSR();
98 
99 protected:
101 
104 
105  std::list<DtVector> myPoints;
106  double myArcRange;
107 };
108 

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)