VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ifForces.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
17 #include "vrfmsgs/vrfmsgsDefines.h"
18 #include "vrfmsgs/messageTypes.h"
21 
25 
27 {
28 public:
30  DtIfForces();
31 
33  DtIfForces(const DtIfForces & orig);
34 
36  const DtIfForces& operator=(const DtIfForces& orig);
37 
38  virtual ~DtIfForces();
39 
40  virtual int type() const;
41 
42  virtual DtSimInterfaceContent* clone() const;
43 
44  virtual int netRepSize() const;
45 
46  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize);
47 
48  virtual bool setToNet();
49 
51  virtual void printDataToString(DtString& str);
52 
53  static DtSimInterfaceContent* creator();
54 
55  virtual int numberOfForces() const;
56  virtual void addForce(const DtString& name, const DtVector& color, int forceType, bool includeInDialogs, const DtString& countryCode = "");
57  virtual void force(int i, DtString& name, DtVector& color, int& forceType, bool& includeInDialogs, DtString& countryCode) const;
58 
59 protected:
61  std::vector<DtString> myForceNames;
62  std::vector<DtString> myCountryCodes;
63  std::vector<bool> myIncludeInDialogs;
64  std::vector<int> myForceTypes;
65  std::vector<DtVector> myForceColors;
66 };
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Definition: simInterfaceContent.h:78
virtual int netRepSize() const
Definition: simInterfaceContent.h:76
std::vector< DtVector > myForceColors
Definition: ifForces.h:65
std::vector< DtString > myCountryCodes
Definition: ifForces.h:62
#define DT_DLL_vrfmsgs
This file is used to determine how to build.
Definition: vrfmsgsDefines.h:28
virtual int type() const =0
std::vector< int > myForceTypes
Definition: ifForces.h:64
virtual void printDataToString(DtString &str)
File: ifForces.h.
Definition: ifForces.h:26
const DtSimInterfaceContent & operator=(const DtSimInterfaceContent &orig)
std::vector< bool > myIncludeInDialogs
Definition: ifForces.h:63
virtual bool setToNet()
Definition: simInterfaceContent.h:83
Definition: simInterfaceContent.h:45
virtual DtSimInterfaceContent * clone() const =0
std::vector< DtString > myForceNames
Items that are sent over the network and then used to reconsitute the forces list.
Definition: ifForces.h:61

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)