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() override;
43 
45  virtual const DtSimTaskMessageType& type() const override;
46 
48  virtual DtSimTask* clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0) const override;
49 
51  virtual DtString stringRep() const override;
52 
55  virtual int netRepSize() const override;
56 
58  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
59 
62  virtual bool setToNet() override;
63 
64  static DtSimTask * creator();
65 
67  virtual void setProvideIndirectFireType(ProvideIndirectFireType t);
68  virtual ProvideIndirectFireType provideIndirectFireType() const;
69 
71  virtual void setLocation(const DtVector&);
72  virtual const DtVector& location() const;
73 
74  virtual void setTarget(const DtUUID&);
75  virtual const DtUUID& target() const;
76 
77  virtual void setForwardObserver(const DtUUID&);
78  virtual const DtUUID& forwardObserver() const;
79 
81  virtual void setDirection(double);
82  virtual double direction() const;
83 
85  virtual void setDistance(double);
86  virtual double distance() const;
87 
88  virtual void setFuseSetting(int);
89  virtual int fuseSetting() const;
90 
93  virtual void setOriginatingUnit(const DtUUID&);
94  virtual const DtUUID& originatingUnit() const;
95 
96 protected:
105 };
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:97
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:102
#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:98
DtRwVector myLocation
Definition: provideIndirectFireTask.h:99
DtRwReal myDistance
Definition: provideIndirectFireTask.h:103
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:100
DtRwUUID myOriginatingUnit
Definition: provideIndirectFireTask.h:104
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:101
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 Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)