VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwHitZone.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
11 #include <readerWriter/rwInt.h>
12 
15 #include "vrfutil/hitZoneId.h"
16 
17 #include "vrfutil/vrfutilDefines.h"
18 
19 
24 {
25 public:
26 
27  //Default constructor
28  DtRwHitZone();
29 
30  //Real constructors
31  DtRwHitZone(const DtString& name,
32  DtReaderWriterRegistry* parentRegistry = NULL);
33  DtRwHitZone(const DtSymbolString& name,
34  DtReaderWriterRegistry* parentRegistry = NULL);
35 
36  //Copy constructor
37  DtRwHitZone(const DtRwHitZone& orig);
38 
40  DtRwHitZone& operator=(const DtRwHitZone& orig);
41 
42  bool operator==(const DtRwHitZone& right) const;
43  bool operator!=(const DtRwHitZone& right) const;
44 
45  virtual ~DtRwHitZone() override;
46 
48  virtual DtHitZoneId zoneId() const;
49  virtual void setZoneId(DtHitZoneId zoneId);
50 
52  virtual const Dt3dBoundingVolume& boundingVolume() const;
53  virtual Dt3dBoundingVolume& boundingVolume();
54  virtual void setBoundingVolume(const Dt3dBoundingVolume& boundingVolume);
55 
56  virtual const DtString& hitZoneDamageParamsType() const;
57  virtual void setHitZoneDamageParamsType(const DtString& hitZoneDamageParamsType);
58 
59  virtual const char* readerWriterType() const override;
60 
62  static const char* theXmlType();
63 
64  virtual const char* xmlType() const override { return theXmlType(); }
65 
66 protected:
67 
74 
86 
91 };
92 
93 
94 
bool operator==(const DtReaderWriter &) const
Equivalence operator.
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
Definition: readerWriter.h:85
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
DtRwInt myZoneId
Parameter Name: zone-id Parameter Description: Specifies the hit zone ID. It consists of a zone funct...
Definition: rwHitZone.h:73
virtual const char * xmlType() const override
Definition: rwHitZone.h:64
bool operator!=(const DtReaderWriter &rhs) const
Definition: readerWriter.h:121
ID value for a hit zone. Consists of a zone function (weapon, sensor, movement, etc.) and a zone number. Includes functions for packing/unpacking into an int.
Definition: hitZoneId.h:21
Description: Readable, Writable int.
Definition: rwInt.h:25
DtRwBoundingVolume myBoundingVolume
Parameter Name: bounding-volume Parameter Description: Specifies the bounding volume around the hit z...
Definition: rwHitZone.h:85
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
DtRwString myHitZoneDamageParametersType
Parameter Name: zone-damage-params Parameter Description: Specifies the damage properties type associ...
Definition: rwHitZone.h:90
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
static const char * theXmlType()
The type that is used when archiving to an XML stream.
Defines configuration for a hit zone within the entity bounding volume. The hit zone is a box axis al...
Definition: rwHitZone.h:23
File: rwBndingVol.h.
Definition: rwBoundingVolume.h:25

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)