VR-Forces 4.0.4 Class Documentation
include/vrfplan/changeHostilityCommand.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: changeHostilityCommand.h,v $ $Revision: 1.2 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00013 
00014 #ifndef changeHostilityCommand_h
00015 #define changeHostilityCommand_h
00016 
00017 #include "vrfplan/simCommand.h"
00018 #include "vrfplan/vrfplanDefines.h"
00019 #include "vrfutil/rwForce.h"
00020 #include "vrfutil/rwBoolean.h"
00021 
00025 class DT_DLL_vrfplan DtChangeHostilityCommand : public DtSimCommand
00026 {
00027 public:
00029    DtChangeHostilityCommand();
00030 
00032    DtChangeHostilityCommand(const DtString& writeName,
00033       DtReaderWriterRegistry* parentRegistry = NULL);
00034 
00036    DtChangeHostilityCommand(const DtString & writeName, const DtChangeHostilityCommand& orig,
00037       DtReaderWriterRegistry* parentRegistry = NULL);
00038 
00040    virtual ~DtChangeHostilityCommand();
00041 
00043    DtChangeHostilityCommand& operator=(const DtChangeHostilityCommand& orig);
00044 
00046    int type() const;
00047 
00049    virtual DtSimCommand * clone(const DtString & name, DtReaderWriterRegistry *
00050       parentRegistry = 0) const;
00051 
00053 
00054    virtual void setForceOne(const DtForceType& force);
00055    virtual DtForceType forceOne() const;
00057 
00059 
00060    virtual void setForceTwo(const DtForceType& force);
00061    virtual DtForceType forceTwo() const;
00063 
00065 
00066    virtual void setHostile(bool yesNo);
00067    virtual bool hostile() const;
00069 
00071    virtual DtString stringRep() const;
00072 
00074    virtual int netRepSize() const;
00075 
00077    virtual bool setFromNet(const char* contentBuffer, 
00078       unsigned contentSize);
00079 
00081    virtual bool setToNet();
00082 
00084    static DtSimCommand* creator();
00085 
00086 protected:
00087    DtRwForceType myForceOne;
00088    DtRwForceType myForceTwo;
00089    DtRwBoolean myHostile;
00090 };
00091 
00092 
00093 #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)