VR-Forces 5.0.1 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 DtVector& linVelocity,
29  const DtVector& location,
30  const DtBurstDescriptor &burst,
31  const DtVector& entLocation,
32  int result);
34  DtDetonationEvent& operator=(const DtDetonationEvent&);
35 
37  DtDetonationEvent(const DtFireEvent &fire);
38 
39  const DtUUID &attackerId() const;
40  void setAttackerId(const DtUUID &id);
41 
42  const DtUUID &targetId() const;
43  void setTargetId(const DtUUID &id);
44 
45  const DtUUID &munitionId() const;
46  void setMunitionId(const DtUUID &id);
47 
48  const DtVector& velocity() const;
49  void setVelocity(const DtVector& velocity);
50 
51  const DtVector& worldLocation() const;
52  void setWorldLocation(const DtVector& location);
53 
54  const DtVector& entityLocation() const;
55  void setEntityLocation(const DtVector& location);
56 
57  int result() const;
58  void setResult(int result);
59 
60  int fuseType() const;
61  void setFuseType(int fuse);
62 
63  const DtEntityType &munitionType() const;
64  void setMunitionType(const DtEntityType &munType);
65 
66  int quantity() const;
67  void setQuantity(int quant);
68 
69  int rate() const;
70  void setRate(int rate);
71 
72  int warheadType() const;
73  void setWarheadType(int type);
74 
75  const DtBurstDescriptor &burst() const;
76  void setBurst(const DtBurstDescriptor &burst);
77 
78  virtual void setEventId(const DtString&);
79  const DtString& eventId() const;
80 
81  virtual DtEvent* clone() const { return new DtDetonationEvent(*this); };
82 
83  protected:
84  DtUUID myAttacker;
90  DtBurstDescriptor myBurst;
91  int myResult;
93  };
94 }
UUID is a unique ID wrapper class.
Definition: rwUUID.h:226
DtVector myWorldLocation
Definition: detonationEvent.h:89
Definition: fireEvent.h:16
DtVector myVelocity
Definition: detonationEvent.h:87
DtBurstDescriptor myBurst
Definition: detonationEvent.h:90
Contains the DtUUID class declaration.
Definition: detonationEvent.h:20
Definition: event.h:13
int myResult
Definition: detonationEvent.h:91
DtString myEventId
Definition: detonationEvent.h:92
DtVector myEntityLocation
Definition: detonationEvent.h:88
DtUUID myMunition
Definition: detonationEvent.h:86
#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:85

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)