VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
changeHostilityCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #ifndef changeHostilityCommand_h
12 #define changeHostilityCommand_h
13 
14 #include "vrfplan/simCommand.h"
15 #include "vrfplan/vrfplanDefines.h"
16 #include "vrfutil/rwForceType.h"
17 #include <readerWriter/rwBoolean.h>
18 
23 {
24 public:
27 
29  DtChangeHostilityCommand(const DtString& writeName,
30  DtReaderWriterRegistry* parentRegistry = NULL);
31 
33  DtChangeHostilityCommand(const DtString & writeName, const DtChangeHostilityCommand& orig,
34  DtReaderWriterRegistry* parentRegistry = NULL);
35 
37  virtual ~DtChangeHostilityCommand();
38 
41 
43  virtual const DtSimCommandMessageType& type() const;
44 
46  virtual DtSimCommand * clone(const DtString & name, DtReaderWriterRegistry *
47  parentRegistry = 0) const;
48 
50 
51  virtual void setForceOne(const DtForceType& force);
52  virtual DtForceType forceOne() const;
54 
56 
57  virtual void setForceTwo(const DtForceType& force);
58  virtual DtForceType forceTwo() const;
60 
62 
63  virtual void setHostile(bool yesNo);
64  virtual bool hostile() const;
66 
68  virtual DtString stringRep() const;
69 
71  virtual int netRepSize() const;
72 
74  virtual bool setFromNet(const char* contentBuffer,
75  unsigned contentSize);
76 
78  virtual bool setToNet();
79 
81  static DtSimCommand* creator();
82 
83 protected:
87 };
88 
89 
90 #endif

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)