VR-Forces 4.2 Class Documentation
baseWeaponComponentInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "vrfobjcore/processSR.h"
12 #include "vrfutil/rwString.h"
13 #include "vrfutil/rwBoolean.h"
14 #include "vrfutil/rwReal.h"
15 #include "vrfutil/rwInt.h"
16 #include "vrfutil/rwVector.h"
17 
19 #include <list>
20 
21 
27 {
28 public:
29 
31  {
32  DT_OK_TO_FIRE = 0,
33  DT_WEAPON_DISABLED = 1,
34  DT_NO_AMMUNITION_FOR_TARGET = 2,
35  DT_CANNOT_ACQUIRE_TARGET = 4
36  };
37 
38 private:
41 
42 public:
43 
44  //constructor
46  const DtString& rwName = DtString::nullString(),
47  DtReaderWriterRegistry* parentRegistry = 0);
48 
49  //copy constructor
51  const DtString& rwName = DtString::nullString(),
52  DtReaderWriterRegistry* parentRegistry = 0);
53 
54  //assignment operator
56  const DtBaseWeaponComponentInterface& orig);
57 
58  //destructor
60 
61  //returns a copy of the PSR
63  const DtString& rwName = DtString::nullString(),
64  DtReaderWriterRegistry* parentRegistry = 0) const = 0;
65 
68  virtual void updateRegionEvaluator() = 0;
69 
74  virtual bool locationWithinRegion(const DtVector& localLocation) const = 0;
75 
77  virtual void setRoundsFiredUponTarget(const int& roundsFired);
78  virtual const int roundsFiredUponTarget() const;
79 
81  virtual void setTotalRoundsToFireUponTarget(const int& totalRoundsToFire);
82  virtual const int totalRoundsToFireUponTarget() const;
83 
85 
86  virtual void setIsExplicitlyTasked(const bool& explicitlyTasked);
87  virtual const bool isExplicitlyTasked() const;
89 
91 
92  virtual void setAllowExplicitTasking(const bool& includeInDialogs);
93  virtual const bool allowExplicitTasking() const;
95 
97 
98  virtual void setDisplayName(const DtString& displayName);
99  virtual const DtString displayName() const;
101 
103 
104  virtual void setWeaponStatus(const int weaponStatus);
105  virtual const int weaponStatus() const;
107 
109 
110  virtual void setResourceList(const std::list<DtString>& list);
111  virtual const std::list<DtString>& resourceList() const;
112  virtual std::list<DtString>& resourceList();
114 
115 
116 protected:
119 
122 
126 
128 
131 
134 
137 
143  std::list<DtString> myResources;
144 
145 };

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)