VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
releaseBombTask.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "vrftasks/simTask.h"
12 #include <readerWriter/rwString.h>
13 #include <readerWriter/rwReal.h>
14 
20 {
21 
22 protected:
25 
29  parentRegistry = 0);
30 
32  DtReleaseBombTask(const DtString & writeName, const DtReleaseBombTask& orig,
33  DtReaderWriterRegistry* parentRegistry = 0);
34 
36  const DtReleaseBombTask& operator=(const DtReleaseBombTask& orig);
37 
38 public:
40  virtual ~DtReleaseBombTask();
41 
43 
44  virtual void setAmmunitionResourceName(const DtString& type);
45  virtual const DtString& ammunitionResourceName() const;
47 
49  virtual void setDetonationProximity(DtReal radius);
50  virtual DtReal detonationProximity() const;
52 
55  virtual int netRepSize() const;
56 
58  virtual bool setFromNet(const char* contentBuffer,
59  unsigned contentSize);
60 
63  virtual bool setToNet();
64 
65 protected:
67  virtual DtString parameterStringRep() const;
68 
71 };
DtReleaseBombTask is the base class for all the other release bomb tasks.
Definition: releaseBombTask.h:19
DtRwReal myDetonationProximity
Definition: releaseBombTask.h:70
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
DtRwString myAmmunitionResourceName
Definition: releaseBombTask.h:69
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets mySubtask member from the incoming contentBuffer (cast to type DtNetSimTask).
virtual bool setToNet()
Calls netRep() to create the network buffer.
#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
DtSimTask is an abstract base class from which real tasks can derive.
Definition: simTask.h:33
const DtSimTask & operator=(const DtSimTask &orig)
assignment operator; same as copy constructor
virtual int netRepSize() const
Returns the size in bytes of the network representation of the class.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)