VR-Forces 4.0.4 Class Documentation
include/vrftasks/fireCruiseMissileTask.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2004 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: moveToLocTask.h, Created: 8/13/00 MEM Revision:1.0
00007 Updated:
00008 *******************************************************************************/
00009 
00012 
00018 
00019 
00020 #ifndef DtFireCruiseMissileTask_H_
00021 #define DtFireCruiseMissileTask_H_
00022 
00023 
00024 #include "vrftasks/simTask.h"
00025 #include "vrfutil/rwString.h"
00026 #include "vrfutil/rwReal.h"
00027 
00028 struct DtNetFireCruiseMissileTask
00029 {
00030    DtNetFloat32 myDetonationProximity;
00031    DtNetFloat32 mySpeed;
00032    DtNetInt16 myTargetNameLength;
00033    DtNetInt16 myRouteNameLength;
00034 };
00035 
00040 #include "vrftasks/vrftasksDefines.h"
00041 class DT_DLL_vrftasks DtFireCruiseMissileTask : public DtSimTask
00042 {
00043 public:
00045    DtFireCruiseMissileTask();
00046 
00049    DtFireCruiseMissileTask(const DtString & writeName, 
00050       DtReaderWriterRegistry * parentRegistry = 0);
00051 
00053    DtFireCruiseMissileTask(const DtString & writeName, const DtFireCruiseMissileTask & orig, 
00054       DtReaderWriterRegistry * parentRegistry = 0);
00055 
00057    const DtFireCruiseMissileTask & operator=(const DtFireCruiseMissileTask & orig);
00058 
00059    virtual ~DtFireCruiseMissileTask();
00060 
00062    virtual int type() const;
00063 
00065    virtual DtSimTask * clone(const DtString & name, DtReaderWriterRegistry * 
00066       parentRegistry = 0) const;
00067 
00069    virtual DtString stringRep() const;
00070 
00072    virtual void setTargetName(const DtString& target);
00073    virtual DtString targetName() const;
00074 
00077    virtual void setDetonationProximity(DtReal p);
00078    virtual DtReal detonationProximity() const;
00079 
00082    virtual void setRouteName(const DtString& route);
00083    virtual DtString routeName() const;
00084 
00086    virtual void setSpeed(DtReal speed);
00087    virtual DtReal speed() const;
00088 
00091    virtual int netRepSize() const;
00092 
00094    virtual bool setFromNet(const char* contentBuffer, 
00095       unsigned contentSize);
00096 
00099    virtual bool setToNet();
00100 
00101    static DtSimTask * creator();
00102 
00103 protected:
00104 
00106    DtRwString  myTargetName;
00108    DtRwReal    myDetonationProximity;
00109    DtRwString  myRouteName;
00110    DtRwReal    mySpeed;
00111 };
00112 
00113 
00114 #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)