VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ifForceHostility.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: ifForceHostility.h,v $ $Revision: 1.2 $ $State: Exp $
7 ** Created: 7/16/04, MEM Updated:
8 *******************************************************************************/
9 
12 
13 
19 
20 
21 #ifndef ifForceHostility_H_
22 #define ifForceHostility_H_
23 
25 #include <vlutil/vlString.h>
26 #include <vlutil/vlNetTypes.h>
27 #include <vl/hostStructs.h>
28 
29 #include <vector>
30 
32 {
33  DtNetU8 myNumForces;
34  DtNetU8 myForce; //id of force to set
35  //list of force settings as chars
36 };
37 
38 
39 //forward defs
40 typedef std::vector<bool> DtHostilityVector;
41 
47 #include "vrfmsgs/vrfmsgsDefines.h"
49 {
50 
51 public:
54 
57 
60 
61  virtual ~DtIfForceHostility();
62 
63  virtual int type() const;
64 
65  virtual DtSimInterfaceContent* clone() const;
66 
68  virtual int force() const;
69  virtual void setForce(int id);
70 
72  virtual int numberOfHostilityEntries() const;
73  virtual void setNumberOfHostilityEntries(int num);
74 
75  virtual const DtHostilityVector& hostilityVector() const;
76  virtual DtHostilityVector& hostilityVector();
77 
78  virtual int netRepSize() const;
79 
80  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize);
81  virtual bool setToNet();
82 
84  virtual void printDataToString(DtString& str);
85 
86  static DtSimInterfaceContent* creator();
87 
88 protected:
89  int myForce;
91 };
92 
93 #endif

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)