VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
detonationEvent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 #pragma once
6 
9 #include <vrfutil/rwUUID.h>
10 #include <vlpi/entityIdentifier.h>
11 #include <vlpi/burstDescriptor.h>
12 #include <matrix/vlVector.h>
13 
14 namespace makVrfEvents
15 {
16  class DtFireEvent;
17 
21  {
22  public:
24 
25  DtDetonationEvent(const DtUUID &attacker,
26  const DtUUID &target,
27  const DtUUID &munition,
28  const DtString& munitionObjectId,
29  const DtVector& linVelocity,
30  const DtVector& location,
31  const DtBurstDescriptor &burst,
32  const DtVector& entLocation,
33  int result);
35  DtDetonationEvent& operator=(const DtDetonationEvent&);
36 
38  DtDetonationEvent(const DtFireEvent &fire);
39 
40  const DtUUID &attackerId() const;
41  void setAttackerId(const DtUUID &id);
42 
43  const DtUUID &targetId() const;
44  void setTargetId(const DtUUID &id);
45 
46  const DtUUID &munitionId() const;
47  void setMunitionId(const DtUUID &id);
48 
49  const DtVector& velocity() const;
50  void setVelocity(const DtVector& velocity);
51 
52  const DtVector& worldLocation() const;
53  void setWorldLocation(const DtVector& location);
54 
55  const DtVector& entityLocation() const;
56  void setEntityLocation(const DtVector& location);
57 
58  const DtString& munitionObjectId() const;
59  void setMunitionObjectId(const DtString&);
60 
61  int result() const;
62  void setResult(int result);
63 
64  int fuseType() const;
65  void setFuseType(int fuse);
66 
67  const DtEntityType &munitionType() const;
68  void setMunitionType(const DtEntityType &munType);
69 
70  int quantity() const;
71  void setQuantity(int quant);
72 
73  int rate() const;
74  void setRate(int rate);
75 
76  int warheadType() const;
77  void setWarheadType(int type);
78 
79  const DtBurstDescriptor &burst() const;
80  void setBurst(const DtBurstDescriptor &burst);
81 
82  virtual void setEventId(const DtString&);
83  const DtString& eventId() const;
84 
85  virtual DtEvent* clone() const { return new DtDetonationEvent(*this); };
86 
87  protected:
88  DtUUID myAttacker;
94  DtBurstDescriptor myBurst;
95  int myResult;
98  };
99 }
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
DtVector myWorldLocation
Definition: detonationEvent.h:93
Definition: fireEvent.h:16
DtVector myVelocity
Definition: detonationEvent.h:91
DtBurstDescriptor myBurst
Definition: detonationEvent.h:94
Contains the DtUUID class declaration.
Definition: detonationEvent.h:20
Definition: event.h:13
int myResult
Definition: detonationEvent.h:95
DtString myMunitionObjectId
Definition: detonationEvent.h:97
DtString myEventId
Definition: detonationEvent.h:96
DtVector myEntityLocation
Definition: detonationEvent.h:92
DtUUID myMunition
Definition: detonationEvent.h:90
#define DT_DLL_vrfMsgTransport
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfCommunicationManagerDefines.h:26
DtUUID myTarget
Definition: detonationEvent.h:89

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)