VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
strategies/fire.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
5 
6 #pragma once
7 
8 #include "strategies/export.h"
12 
13 #include <string>
14 #include <map>
15 
16 #include <vl/fireInteraction.h>
17 
18 class DtMessage;
19 class DtManagedInterface;
20 class DtExerciseConn;
21 class DtTerrainStrategy;
22 
24 {
25 public:
26  virtual ~DtFireStrategy();
27 
28  std::string name();
29  static std::string theName();
30 
31  virtual bool init();
32  virtual void tick();
33  virtual void shutdown();
34 
35  static DtLinkStrategy* create(DtManagedInterface* gl);
36 
37 protected:
39  void handleCSharpFireMessage(DtMessage* msg);
40  static void vrlFireCb(DtFireInteraction* fire, void* usr);
41  void handleVrlFire(DtFireInteraction* fire);
43  virtual void addVrlCallback(DtExerciseConn* exConn);
44  virtual void removeVrlCallback(DtExerciseConn* exConn);
45 
47 
48  static std::string theStrategyName;
49 
51 
52  DtTerrainStrategy* myTerrainStrategy;
53 };
virtual void addVrlCallback(DtExerciseConn *exConn)=0
Add/Remove VR-Link C++ Interaction Callback.
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:61
DtMessageDelegate * myHandler
Definition: strategies/fire.h:50
DtExerciseConn * myExconn
Definition: strategies/fire.h:46
#define MANAGEDINTERFACE_MODULE_DLL
Definition: export.h:34
This is the DtMessage class.
Definition: message.h:20
The DtManagedInterface Class is a singleton that is used to manage the message flow between C# and th...
Definition: managedInterface.h:49
This file provides protocol independence for Fire Interactions.
Instances of DtFireInteraction are used to represent the firing of a weapon.
Definition: firePdu.h:34
This is the DtSubscribeStrategy class. It is the abstract base class for all derived interaction subs...
Definition: subscribeStrategy.h:27
Definition: strategies/fire.h:23
virtual void shutdown()
Shutdown the strategy.
Defines the DtManagedInterface Singleton object that manages the message flow between C# and the rest...
virtual void removeVrlCallback(DtExerciseConn *exConn)=0
Delegate template for binding static or member functions for callback at later time The return type a...
Definition: delegate.h:69
static std::string theStrategyName
Definition: strategies/fire.h:48
DtTerrainStrategy * myTerrainStrategy
Definition: strategies/fire.h:52

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)