VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aggregateCombatCapabilityPageLogic.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 
14 #include <QStandardItemModel>
15 
18 
19 namespace makVrf
20 {
21  class DtObjectListViewItem;
22  struct DtVrlinkSimulatedAggregateState;
23 
24  namespace makVrfGuiObjectInformationQt
25  {
26 
28  {
29  public:
31 
33 
34  protected:
35 
37  {
38  public:
40  : range(0)
41  , combatPower(0)
42  , vulnerability(0)
43  , defenseFactor(0) {}
44 
45  double range;
47  double vulnerability;
48  double defenseFactor;
49  };
50 
52  {
53  public:
55  : defenseFactorAdj(0)
56  , hitFactorAdj(0) {}
57 
58  DtCombatAdjustment(double defAdj, double hitAdj)
59  : defenseFactorAdj(defAdj)
60  , hitFactorAdj(hitAdj) {}
61 
63  double hitFactorAdj;
64  };
65 
66  virtual void slot_onStateViewUpdated(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* s);
67 
69  virtual void addCombatCapability(QStandardItemModel* model,
70  const QString& name, double range, int combatPower, double vulnerability,
71  double defenseFactor);
72 
74  virtual void updateCombatCapability(QStandardItemModel* model,
75  const QString& name, double range, int combatPower, double vulnerability,
76  double defenseFactor);
77 
79  virtual void removeCombatCapability(QStandardItemModel* model,
80  const QString& name);
81 
83  virtual void updateCombatPower(QStandardItemModel* model,
84  const QString& name, double range, int combatPower);
85 
87  virtual void updateVulnerability(QStandardItemModel* model,
88  const QString& name, double vulnerability);
89 
91  virtual void addWeaponSystemCapability(QStandardItemModel* model,
92  const QString& name, double range, int strength, double hitFactor);
93 
95  virtual void updateWeaponSystemCapability(QStandardItemModel* model,
96  const QString& name, double range, int strength, double hitFactor);
97 
99  virtual void removeWeaponSystemCapability(QStandardItemModel* model,
100  const QString& name);
101 
103  virtual void addCombatSystemCapability(QStandardItemModel* model,
104  const QString& name, double hitFactorAdj, double defenseFactorAdj);
105 
107  virtual void updateCombatSystemCapability(QStandardItemModel* model,
108  const QString& name, double hitFactorAdj, double defenseFactorAdj);
109 
111  virtual void removeCombatSystemCapability(QStandardItemModel* model,
112  const QString& name);
113 
114  virtual void parameterDataUpdated(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* state);
115 
118  static void combatPowerValues(int& adjustedCombatPower, int& adjustedBaseCombatPower,
119  double currentCombatPower, double baseCombatPower);
120 
123  static QString defenseText(double currentVulnerability,
124  double baseVulnerability);
125 
128  static void defenseValues(int& defense, int& maxDefense,
129  double currentVulnerability, double baseVulnerability);
130 
133  static QString defenseToolTip(double currentVulnerability,
134  double baseVulnerability);
135 
136  virtual void combatAdjustmentsFromSystems(const DtComponentSystemDescriptorList& systems,
137  std::map<DtString, DtCombatAdjustment>& combatAdjustments);
138 
139  virtual void combatAdjustmentsFromControllers(const DtComponentDescriptorList& controllers,
140  std::map<DtString, DtCombatAdjustment>& combatAdjustments);
141 
142  protected:
143  std::set<QString> myCombatCapability;
144  std::set<QString> myWeaponSystems;
145  std::set<QString> myCombatAdjustments;
147  };
148  }
149 }
DtCombatAdjustment(double defAdj, double hitAdj)
Definition: aggregateCombatCapabilityPageLogic.h:58
List of DtComponentSystemDescriptor instances.
Definition: componentSystemDescriptorList.h:20
Instances of DtComponentDescriptorList are readable/writeable lists of DtComponentDescriptor objects...
Definition: componentDescriptorList.h:22
Contains makVrv::DtAggregateInformationPageLogic class.
std::set< QString > myWeaponSystems
Definition: aggregateCombatCapabilityPageLogic.h:144
Definition: aggregateCombatCapabilityPageLogic.h:27
std::set< QString > myCombatAdjustments
Definition: aggregateCombatCapabilityPageLogic.h:145
#define DT_DLL_VRFGUIOBJECTINFORMATIONQT
Contains DLL export macros.
Definition: vrfGuiObjectInformationQt.h:25
bool myNeedsActivation
Definition: aggregateCombatCapabilityPageLogic.h:146
std::set< QString > myCombatCapability
Definition: aggregateCombatCapabilityPageLogic.h:143
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Items added DtAggregateInfoAggregateId DtAggregateInfoGlobalAggregateId DtAggregateInfoAggregateType ...
Definition: aggregateInformationPageLogic.h:39

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)