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) 2015 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 
10 #pragma once
12 #include <readerWriter/rwString.h>
13 #include <vlutil/vlNetTypes.h>
14 #include "vrfutil/rwUUID.h"
15 
20 
23 {
24 
25 public:
26 
29 
32  DtFireForEffectOnTargetTask(const DtString & writeName,
33  DtReaderWriterRegistry * parentRegistry = 0);
34 
36  DtFireForEffectOnTargetTask(const DtString & writeName, const
38  parentRegistry = 0);
40 
44 
45 
46  virtual ~DtFireForEffectOnTargetTask();
47 
49  virtual const DtSimTaskMessageType& type() const;
50 
52  virtual DtSimTask * clone(const DtString & name, DtReaderWriterRegistry *
53  parentRegistry = 0) const;
54 
56  virtual DtString stringRep() const;
57 
60  virtual void setTarget(const DtUUID &);
61 
64  virtual const DtUUID & target() const;
65 
68  virtual int netRepSize() const;
69 
71  virtual bool setFromNet(const char* contentBuffer,
72  unsigned contentSize);
73 
76  virtual bool setToNet();
77 
78  static DtSimTask * creator();
79 
80 protected:
82 };
83 
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. ...
DtRwUUID myTarget
Definition: fireForEffectOnTargetTask.h:81
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize) override
Fills in the task from the network buffer.
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
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:22
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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)