VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fireForEffectOnLocationTask.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999-2000 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include "readerWriter/rwVector.h"
13 #include <vlpi/netStructs.h>
14 
15 
19 {
20  DtNet64Vector myLocation;
21 };
22 
28 {
29 
30 public:
31 
34 
37  DtFireForEffectOnLocationTask(const DtString & writeName,
38  DtReaderWriterRegistry * parentRegistry = 0);
39 
41  DtFireForEffectOnLocationTask(const DtString & writeName, const
43  parentRegistry = 0);
45 
49 
50 
52 
54  virtual const DtSimTaskMessageType& type() const;
55 
57  virtual DtSimTask * clone(const DtString & name, DtReaderWriterRegistry *
58  parentRegistry = 0) const;
59 
61  virtual DtString stringRep() const;
62 
64  virtual void setLocation(const DtVector & location);
65  virtual const DtVector & location() const;
66 
69  virtual int netRepSize() const;
70 
72  virtual bool setFromNet(const char* contentBuffer,
73  unsigned contentSize);
74 
77  virtual bool setToNet();
78 
79  static DtSimTask * creator();
80 
81 protected:
82 
84 
85 };
86 
virtual int netRepSize() const override
Returns the size of the full network representation padded to an 8-byte boundary. ...
DtNet64Vector myLocation
Definition: fireForEffectOnLocationTask.h:20
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize) override
Fills in the task from the network buffer.
DtFireForEffectOnTargetTask represents an artillery task to fire for effect on the specified entity...
Definition: fireForEffectOnLocationTask.h:27
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...
Definition: rwVector.h:23
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
DtRwVector myLocation
Definition: fireForEffectOnLocationTask.h:83
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...
This struct is the FIXED portion of the simulation network representation of a fire for effect task...
Definition: fireForEffectOnLocationTask.h:18
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.
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)