VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tenaBroker/tenaBroker/detInTrans.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2015 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <tenaBroker/tenaTrans.h>
15 
16 namespace MAKVrExchange
17 {
18 
19  class DtPortalFireInteraction;
20 
21  namespace DtTenaBroker
22  {
23 
27  : public DtTenaInteractionTranslator<DtPortalDetonationInteraction,DtDetonationInteraction>
28  {
29  public:
30 
32  Dt_DEF_TRANSLATOR_NAME( "Detonation" );
33 
36 
39 
40  protected:
41 
42  void loadWarheadTypeMappingFile();
43  void loadDetonatinResultMappingFile();
44 
46  virtual DtPortalDetonationInteraction* translate(
47  DtPortalDetonationInteraction* destination,
48  const DtDetonationInteraction& source );
49 
51  virtual DtDetonationInteraction* translate( DtDetonationInteraction* destination,
52  const DtPortalDetonationInteraction& source );
53 
54  virtual void generateFirePdu( const DtDetonationInteraction& incomding );
55 
57  virtual void remapDetonationResult( DtDetonationInteraction* incoming,
58  DtDetonationResult detonationType) const;
59  virtual void remapDetonationResult( DtPortalDetonationInteraction* outgoing,
60  DtU32 detonationType ) const;
61 
62  virtual void printDumpGuiToText( const DtPortalDetonationInteraction& inter );
63  virtual void printDumpGuiToText( const DtDetonationInteraction& inter );
64  virtual void printDumpGuiToText( const DtPortalFireInteraction& inter );
65 
66  protected:
67 
68  std::map<unsigned int,unsigned int> myTenaToPortalWarheadMap;
69  std::map<unsigned int,unsigned int> myPortalToTenaWarheadMap;
70 
71  std::map<unsigned int,DtDetonationResult> myTenaToPortalResultMap;
72  std::map<DtDetonationResult,unsigned int> myPortalToTenaResultMap;
73 
74  };
75 
76  }
77 }

Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)