VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
engagementZonesManager.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 #pragma once
9 
11 #include <matrix/vlVector.h>
12 
13 #include <map>
14 
15 class DtVrfObject;
16 class DtSimManager;
18 
23 {
24 public:
27 
29  virtual ~DtEngagementZonesManager();
30 
31  virtual DtSimManager* simManager() const;
32 
34  virtual void init();
35 
37  virtual void tick();
38 
41  virtual bool contactConsideredHostile(const DtVrfObject* engagementArea, const DtVector& localLocation, int perceivedForce);
42 
44  virtual bool isInsideEngagementArea(const DtVrfObject* engagementArea, const DtVector& localLocation) const;
45 
46 private:
49 
51  DtEngagementZonesManager & operator=(const DtEngagementZonesManager & orig);
52 
53 protected:
55  typedef std::map<DtString, bool> PerceivedHostile;
56  typedef std::map<const DtVrfObject*, PerceivedHostile> Cache;
57 
59 };
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
The DtEngagementZonesManager will keep track of all the engagement zones and their state...
Definition: engagementZonesManager.h:22
std::map< DtString, bool > PerceivedHostile
Definition: engagementZonesManager.h:55
This class represents the data gathered by a sensor about a particular single sensor contact...
Definition: rwSensorContactInfo.h:67
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtSimManager * mySimManager
Definition: engagementZonesManager.h:54
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
Cache myCache
Definition: engagementZonesManager.h:58
std::map< const DtVrfObject *, PerceivedHostile > Cache
Definition: engagementZonesManager.h:56

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)