VR-Forces 4.0.4 Class Documentation
include/vrfmsgs/ifSpawnBreach.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2001 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /********************************************************************
00006 ** $RCSfile: ifSpawnBreach.h,v $ $Revision: 1.7 $ $State: Exp $
00007 ** Created: 6/28/01, MEM Updated:1/2/02
00008 *********************************************************************/
00009 
00012 
00013 #ifndef DtIfSpawnBreach_H_
00014 #define DtIfSpawnBreach_H_
00015 
00016 #include <matrix/vlVector.h>
00017 #include <vrfExtProtocol/ifaceCont.h>
00018 #include <vl/hostStructs.h>
00019 #include <vrfExtProtocol/objType.h>
00020 
00021 
00024 struct DtNetIfSpawnBreach
00025 {
00026    DtNetEntityType              myEntityType;           
00027    DtNet64Vector                myBreachStartPoint; 
00028    DtNet64Vector                myBreachEndPoint;   
00029    DtNet64Vector                myBreachPosition;
00030    DtNetEntityIdentifier        myBreachedObjectId;   
00031    DtNetU8                      mySuperType;    
00032 }; 
00033 
00040 #include "vrfmsgs/vrfmsgsDefines.h"
00041 class DT_DLL_vrfmsgs DtIfSpawnBreach : public DtSimInterfaceContent
00042 {
00043 public:
00044 
00046    DtIfSpawnBreach();
00047 
00049    virtual ~DtIfSpawnBreach();
00050 
00052    DtIfSpawnBreach(const DtIfSpawnBreach& orig);
00053 
00055    DtIfSpawnBreach& operator=(const DtIfSpawnBreach& orig);
00056 
00058    virtual int type() const;
00059 
00060    virtual DtSimInterfaceContent * clone() const;
00061 
00064    virtual const DtVector & breachStartPoint() const;
00065    virtual void setBreachStartPoint(const DtVector & stPoint);
00066 
00067    virtual const DtVector & breachEndPoint() const;
00068    virtual void setBreachEndPoint(const DtVector & endPoint);
00069 
00070    virtual const DtVector & breachPosition() const;
00071    virtual void setBreachPosition(const DtVector & point);
00072 
00075    virtual const DtObjectType& breachType() const;
00076    virtual void setBreachType(const DtObjectType& type);
00077  
00078    virtual const DtEntityIdentifier& breachedObjectId() const;
00079    virtual void setBreachedObjectId(const DtEntityIdentifier& id);
00080 
00081    //evil net representation stuff
00082    virtual int netRepSize() const;
00083    
00084    virtual bool setFromNet(const char* contentBuffer, 
00085       unsigned contentSize);
00086    
00087    virtual bool setToNet();
00088 
00089    virtual void printDataToString(DtString& str);
00090 
00091    static DtSimInterfaceContent* creator();
00092 
00093 
00094 protected:
00095 
00096    DtObjectType               myBreachType;
00097    DtVector                   myBreachPosition;
00098    DtVector                   myBreachEndPoint;
00099    DtVector                   myBreachStartPoint;
00100    DtEntityIdentifier         myBreachedObjectId;
00101 
00102 };
00103 
00104 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)