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/rwReal.h>
13 #include <vrfutil/rwResource.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() override;
41 
43 
44  virtual void setAmmunitionResourceType(const DtEntityType& type);
45  virtual const DtEntityType& ammunitionResourceType() const;
47 
49  virtual void setDetonationProximity(DtReal radius);
50  virtual DtReal detonationProximity() const;
52 
55  virtual int netRepSize() const override;
56 
58  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
59 
62  virtual bool setToNet() override;
63 
64 protected:
66  virtual DtString parameterStringRep() const;
67 
70 };
DtReleaseBombTask is the base class for all the other release bomb tasks. It is never used to launch ...
Definition: releaseBombTask.h:19
DtRwResource myAmmunitionResourceType
Definition: releaseBombTask.h:68
DtRwReal myDetonationProximity
Definition: releaseBombTask.h:69
Definition: readerWriterRegistry.h:39
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
This class will read in an old resource by name and convert it to the type, or, just read it as type...
Definition: rwResource.h:12
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 Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)