VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ifSpawnBreach.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #pragma once
7 
8 #include <matrix/vlVector.h>
10 #include <vlpi/entityType.h>
11 #include <vlpi/entityIdentifier.h>
12 #include <vlpi/netStructs.h>
13 
17 {
18  DtNetEntityType myEntityType;
19  DtNet64Vector myBreachStartPoint;
20  DtNet64Vector myBreachEndPoint;
21  DtNet64Vector myBreachPosition;
22  DtNetEntityIdentifier myBreachedObjectId;
23  DtNetU8 myUnused;
24 };
25 
32 #include "vrfmsgs/vrfmsgsDefines.h"
34 {
35 public:
36 
39 
41  virtual ~DtIfSpawnBreach() override;
42 
44  DtIfSpawnBreach(const DtIfSpawnBreach& orig);
45 
48 
50  virtual int type() const override;
51 
52  virtual DtSimInterfaceContent * clone() const override;
53 
56  virtual const DtVector & breachStartPoint() const;
57  virtual void setBreachStartPoint(const DtVector & stPoint);
58 
59  virtual const DtVector & breachEndPoint() const;
60  virtual void setBreachEndPoint(const DtVector & endPoint);
61 
62  virtual const DtVector & breachPosition() const;
63  virtual void setBreachPosition(const DtVector & point);
64 
67  virtual const DtEntityType& breachType() const;
68  virtual void setBreachType(const DtEntityType& type);
69 
70  virtual const DtEntityIdentifier& breachedObjectId() const;
71  virtual void setBreachedObjectId(const DtEntityIdentifier& id);
72 
73  //evil net representation stuff
74  virtual int netRepSize() const override;
75 
76  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
77 
78  virtual bool setToNet() override;
79 
80  virtual void printDataToString(DtString& str) override;
81 
82  static DtSimInterfaceContent* creator();
83 
84 
85 protected:
86 
87  DtEntityType myBreachType;
88  DtVector myBreachPosition;
89  DtVector myBreachEndPoint;
91  DtEntityIdentifier myBreachedObjectId;
92 
93 };
DtVector myBreachEndPoint
Definition: ifSpawnBreach.h:89
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Definition: simInterfaceContent.h:78
virtual int netRepSize() const
Definition: simInterfaceContent.h:76
DtNet64Vector myBreachEndPoint
might not need these
Definition: ifSpawnBreach.h:20
#define DT_DLL_vrfmsgs
This file is used to determine how to build.
Definition: vrfmsgsDefines.h:28
virtual int type() const =0
DtEntityIdentifier myBreachedObjectId
Definition: ifSpawnBreach.h:91
DtNet64Vector myBreachPosition
Definition: ifSpawnBreach.h:21
virtual void printDataToString(DtString &str)
DtNetU8 myUnused
Definition: ifSpawnBreach.h:23
DtVector myBreachPosition
Definition: ifSpawnBreach.h:88
const DtSimInterfaceContent & operator=(const DtSimInterfaceContent &orig)
DtNet64Vector myBreachStartPoint
Definition: ifSpawnBreach.h:19
DtEntityType myBreachType
Definition: ifSpawnBreach.h:87
Class DtIfSpawnBreach.
Definition: ifSpawnBreach.h:33
DtNetEntityType myEntityType
Definition: ifSpawnBreach.h:18
DtNetEntityIdentifier myBreachedObjectId
Definition: ifSpawnBreach.h:22
virtual bool setToNet()
Definition: simInterfaceContent.h:83
Definition: simInterfaceContent.h:45
DtVector myBreachStartPoint
Definition: ifSpawnBreach.h:90
virtual DtSimInterfaceContent * clone() const =0
This is the FIXED length portion of a DtNetIfSpawnBreach message content when placed on the network...
Definition: ifSpawnBreach.h:16

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)