VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtDetonationElementProcessor.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2014 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvVrl/vrvVrl.h>
15 #include <set>
18 
19 #include <vl/detonationInteraction.h>
20 
21 #ifndef DT_PROTOCOL_NAMESPACE
22 #error Namespace Protocol Macro DT_PROTOCOL_NAMESPACE not defined.
23 #endif
24 
25 namespace makVrv
26 {
27 
28  class DtAgent;
29  class DtModelAgent;
30 
31  namespace DT_PROTOCOL_NAMESPACE
32  {
33  class DtVrlinkConnection;
34 
39  {
40  public:
41 
44  , myForceId( 0 )
45  {
46  }
47  void setForceId(int i)
48  {
49  myForceId = i;
50  }
51 
52  int forceId() const
53  {
54  return myForceId;
55  }
56 
57  void setDetonationPdu(const DtDetonationInteraction& pdu)
58  {
59  myDetonation = pdu;
60  }
61 
62  const DtDetonationInteraction& detonation() const
63  {
64  return myDetonation;
65  }
66 
67  const DtGlobalObjectDesignator& attackerId() const
68  {
69  return myDetonation.attackerId();
70  }
71 
72  const DtGlobalObjectDesignator& targetId() const
73  {
74  return myDetonation.targetId();
75  }
76 
77  DtDetonationResult detonationResult() const
78  {
79  return myDetonation.result();
80  }
81 
82  protected:
83 
84  int myForceId;
86 
87  };
88 
90  {
91  public:
92 
94 
96 
97  virtual void visualize(const DtUnicode& visDefName, int modelSet);
98  virtual void setLocation(const DtVector&);
99 
101  {
102  return myInteractionListener;
103  }
104 
105  protected:
106 
108 
109  };
110 
112  {
113  public:
114 
117  static void registerInstance(DtVrlinkConnection& conn,
118  DtDetonationElementProcessor* instance);
119 
121  static DtDetonationElementProcessor* findInstance(DtVrlinkConnection& conn);
122 
125 
127  virtual ~DtDetonationElementProcessor();
128 
130  virtual void processInteraction(const DtDetonationInteraction& fireInteraction );
131 
132  protected:
133 
134  const DtUnicode& chooseModelDefinition(
135  const std::vector<DtUnicode>& definitions);
136 
137  protected:
138 
141 
143 
144  };
145  }
146 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)