VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fireForEffectOnEntityTask.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 
10 #pragma once
11 
12 #include <vlutil/vlNetTypes.h>
14 #include <readerWriter/rwString.h>
15 #include "vrfutil/rwUUID.h"
16 
23 {
24 
25 public:
26 
29 
32  DtFireForEffectOnEntityTask(const DtString & writeName,
33  DtReaderWriterRegistry * parentRegistry = 0);
34 
36  DtFireForEffectOnEntityTask(const DtString & writeName, const
38  parentRegistry = 0);
39 
43 
44 
45  virtual ~DtFireForEffectOnEntityTask();
46 
48  virtual const DtSimTaskMessageType& type() const;
49 
51  virtual DtSimTask * clone(const DtString & name, DtReaderWriterRegistry *
52  parentRegistry = 0) const;
53 
55  virtual DtString stringRep() const;
56 
59  virtual void setEntity(const DtUUID&);
60 
63  virtual const DtUUID & entity() const;
64 
67  virtual int netRepSize() const;
68 
70  virtual bool setFromNet(const char* contentBuffer,
71  unsigned contentSize);
72 
75  virtual bool setToNet();
76 
77  static DtSimTask * creator();
78 
79 protected:
81 };
82 
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. ...
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.
DtFireForEffectOnEntityTask represents an artillery task to fire for effect on the specified entity...
Definition: fireForEffectOnEntityTask.h:22
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...
DtRwUUID myEntity
Definition: fireForEffectOnEntityTask.h:80
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
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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)