VR-Link API Documentation for HLA 1516
tFireInter.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef tFireInter_H_
8 #define tFireInter_H_
9 
10 #if DtTENA
11 
12 #include "tInteraction.h"
13 #include <vlpi/entityType.h>
14 
18 
20 
22 typedef void (*DtFireInteractionCb)(DtFireInteraction* inter, void* usr);
23 
28 {
29 public:
32 
34  virtual ~DtFireInteraction();
35 
38 
41 
43  virtual void setAttackerId(const DtGlobalObjectDesignator& id);
44 
46  virtual const DtGlobalObjectDesignator& attackerId() const;
47 
49  virtual void setTargetId(const DtGlobalObjectDesignator& id);
50 
52  virtual const DtGlobalObjectDesignator& targetId() const;
53 
56  virtual void setLocation(const DtVector& loc);
57 
59  virtual const DtVector& location() const;
60 
63  virtual void setVelocity(const DtVector& vel);
64 
66  virtual const DtVector& velocity() const;
67 
69  virtual void setMunitionType(const DtEntityType &t);
70 
72  virtual const DtEntityType &munitionType() const;
73 
75  virtual const char* name() const;
76 
78  virtual void printData() const;
79 
81  virtual void printDataToStream(std::ostream& stream) const;
82 
83 public:
84 
87  static DtInteraction* create();
88 
91  static void addCallback(DtExerciseConn* conn,
92  DtFireInteractionCb cb, void* usr);
93 
96  static void removeCallback(DtExerciseConn* conn,
97  DtFireInteractionCb cb, void* usr);
98 
99 
100 protected:
101  DtGlobalObjectDesignator myAttackerId;
102  DtGlobalObjectDesignator myTargetId;
103  DtVector myLocation;
104  DtVector myVelocity;
105  DtEntityType myMunitionType;
106 };
107 
108 #endif
109 #endif
110 
111 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)