VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fireForEffectOnTargetTask.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2024 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
9 #include <vlutil/vlNetTypes.h>
11 
16 
19 {
20 
21 public:
22 
25 
28  DtFireForEffectOnTargetTask(const DtString & writeName,
29  DtReaderWriterRegistry * parentRegistry = 0);
30 
32  DtFireForEffectOnTargetTask(const DtString & writeName, const
34  parentRegistry = 0);
36 
40 
41 
42  virtual ~DtFireForEffectOnTargetTask() 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 void setEntity(const DtUUID&);
56 
59  virtual DtUUID entity() const;
60 
63  virtual void setTarget(const DtUUID &);
64 
67  virtual DtUUID target() const;
68 
70  virtual void setLocation(const DtVector & location);
71  virtual DtVector location() const;
72 
73  virtual bool targetPointIsObject() const;
74 
75  virtual void setTargetPoint(const DtRwLocationReference&);
76  virtual const DtRwLocationReference& targetPoint() const;
77 
80  virtual int netRepSize() const override;
81 
83  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
84 
87  virtual bool setToNet() override;
88 
89  static DtSimTask * creator();
90 
91 protected:
93 };
94 
UUID is a unique ID wrapper class.
Definition: uuid.h:59
virtual int netRepSize() const override
Returns the size of the full network representation padded to an 8-byte boundary. ...
DtRwLocationReference myTarget
Definition: fireForEffectOnTargetTask.h:92
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize) override
Fills in the task from the network buffer.
Holds a position of some form. May be an absolute position, or a reference to another object...
Definition: rwLocationReference.h:25
Definition: readerWriterRegistry.h:39
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...
const DtFireForEffectTask & operator=(const DtFireForEffectTask &orig)
assignment operator
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
DtSimTask is an abstract base class from which real tasks can derive. It manages the read/write capab...
Definition: simTask.h:30
DtFireForEffectOnTargetTask represents an artillery task to fire for effect on the specified entity...
Definition: fireForEffectOnTargetTask.h:18
virtual DtString stringRep() const =0
Returns a human-readable string representation of the task. This string representation is used to dis...
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.
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.

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)