VR-Forces Developer's Guide
 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. It is never used to launch ...
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). Derived classes should call down to this function first, and then extract their own data starting at the location contentBuffer + DtSimTask::netRepSize().
virtual bool setToNet()
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimTask*...
#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. It manages the read/write capab...
Definition: simTask.h:30
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. This is the size in bytes of th...

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)