VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
provideIndirectFireTask.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 #include "vrfutil/rwUUID.h"
10 #include <readerWriter/rwVector.h>
11 
13 
15 {
16 public:
18  {
19  FireAtLocation = 0,
20  FireAtPolarCoordinate = 1,
21  FireAdjust = 2,
22  FireAtKnownTargetPoint = 3,
23  FireAtTarget = 4
24  };
25 
28 
31  DtProvideIndirectFireTask(const DtString& writeName,
32  DtReaderWriterRegistry * parentRegistry = 0);
33 
35  DtProvideIndirectFireTask(const DtString& writeName, const
37  parentRegistry = 0);
38 
41 
42  virtual ~DtProvideIndirectFireTask();
43 
45  virtual const DtSimTaskMessageType& type() const;
46 
48  virtual DtSimTask* clone(const DtString& name, DtReaderWriterRegistry *
49  parentRegistry = 0) const;
50 
52  virtual DtString stringRep() const;
53 
56  virtual int netRepSize() const;
57 
59  virtual bool setFromNet(const char* contentBuffer,
60  unsigned contentSize);
61 
64  virtual bool setToNet();
65 
66  static DtSimTask * creator();
67 
69  virtual void setProvideIndirectFireType(ProvideIndirectFireType t);
70  virtual ProvideIndirectFireType provideIndirectFireType() const;
71 
73  virtual void setLocation(const DtVector&);
74  virtual const DtVector& location() const;
75 
76  virtual void setTarget(const DtUUID&);
77  virtual const DtUUID& target() const;
78 
79  virtual void setForwardObserver(const DtUUID&);
80  virtual const DtUUID& forwardObserver() const;
81 
83  virtual void setDirection(double);
84  virtual double direction() const;
85 
87  virtual void setDistance(double);
88  virtual double distance() const;
89 
90  virtual void setFuseSetting(int);
91  virtual int fuseSetting() const;
92 
95  virtual void setOriginatingUnit(const DtUUID&);
96  virtual const DtUUID& originatingUnit() const;
97 
98 protected:
107 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtProvideIndirectFireTask.
Definition: provideIndirectFireTask.h:14
virtual int netRepSize() const override
Returns the size of the full network representation padded to an 8-byte boundary. ...
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize) override
Fills in the task from the network buffer.
ProvideIndirectFireType
Definition: provideIndirectFireTask.h:17
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
virtual DtSimTask * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const =0
Make a copy of this task. Returns a newly allocated instance of a DtSimTask. Override this member fun...
uuid class
Definition: rwUUID.h:26
Definition: rwVector.h:23
DtRwInt myProvideIndirectFireType
Definition: provideIndirectFireTask.h:99
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points. Coordinates are in local database coordinates The coordinat...
Description: Readable, Writable int.
Definition: rwInt.h:25
const DtFireForEffectTask & operator=(const DtFireForEffectTask &orig)
assignment operator
DtRwReal myDirection
Definition: provideIndirectFireTask.h:104
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwInt myFuseSetting
Definition: provideIndirectFireTask.h:100
DtRwVector myLocation
Definition: provideIndirectFireTask.h:101
DtRwReal myDistance
Definition: provideIndirectFireTask.h:105
DtSimTask is an abstract base class from which real tasks can derive. It manages the read/write capab...
Definition: simTask.h:30
virtual DtString stringRep() const =0
Returns a human-readable string representation of the task. This string representation is used to dis...
DtRwUUID myTarget
Definition: provideIndirectFireTask.h:102
DtRwUUID myOriginatingUnit
Definition: provideIndirectFireTask.h:106
virtual const DtSimTaskMessageType & type() const =0
What kind of task am I? Returns a string indicating the kind of task (for example, “move-to”, “follow-entity”). Derived classes must implement this member function to return a unique string representing the type of task. The set of standard task types supplied with VR-Forces is in taskTypes.h.
DtRwUUID myForwardObserver
Definition: provideIndirectFireTask.h:103
File: fireForEff.h.
Definition: fireForEffectTask.h:32
virtual bool setToNet() override
Fills in the network buffer (created by base class simTask) with the task contents.
File: rwVector.h.

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)