From 8898ad9b25fca6afe2374d293a981db02a83d7e9 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 31 May 2012 14:46:27 +0000 Subject: Committing the documentation to svn to have it accessible online --- Doc/doxygen/html/_combatant_8h_source.html | 190 +++++++++++++++++++++++++++++ 1 file changed, 190 insertions(+) create mode 100644 Doc/doxygen/html/_combatant_8h_source.html (limited to 'Doc/doxygen/html/_combatant_8h_source.html') diff --git a/Doc/doxygen/html/_combatant_8h_source.html b/Doc/doxygen/html/_combatant_8h_source.html new file mode 100644 index 0000000..b77d01a --- /dev/null +++ b/Doc/doxygen/html/_combatant_8h_source.html @@ -0,0 +1,190 @@ + + + + + +Starshatter_Open: D:/SRC/StarshatterSVN/Stars45/Combatant.h Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
Starshatter_Open +
+
Open source Starshatter engine
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+
+
Combatant.h
+
+
+Go to the documentation of this file.
1 /* Project Starshatter 4.5
+
2  Destroyer Studios LLC
+
3  Copyright © 1997-2004. All Rights Reserved.
+
4 
+
5  SUBSYSTEM: Stars.exe
+
6  FILE: Combatant.h
+
7  AUTHOR: John DiCamillo
+
8 
+
9 
+
10  OVERVIEW
+
11  ========
+
12  One side in a military conflict
+
13 */
+
14 
+
15 #ifndef Combatant_h
+
16 #define Combatant_h
+
17 
+
18 #include "Types.h"
+
19 #include "Geometry.h"
+
20 #include "Text.h"
+
21 #include "List.h"
+
22 
+
23 // +--------------------------------------------------------------------+
+
24 
+
25 class CombatGroup;
+
26 class Mission;
+
27 
+
28 // +--------------------------------------------------------------------+
+
29 
+
30 class Combatant
+
31 {
+
32 public:
+
33  static const char* TYPENAME() { return "Combatant"; }
+
34 
+
35  Combatant(const char* com_name, const char* file_name, int iff);
+
36  Combatant(const char* com_name, CombatGroup* force);
+
37  ~Combatant();
+
38 
+
39  // operations:
+
40 
+
41  // accessors:
+
42  const char* Name() const { return name; }
+
43  int GetIFF() const { return iff; }
+
44  int Score() const { return score; }
+
45  const char* GetDescription() const { return name; }
+
46  CombatGroup* GetForce() { return force; }
+
47  CombatGroup* FindGroup(int type, int id=-1);
+
48  List<CombatGroup>& GetTargetList() { return target_list; }
+
49  List<CombatGroup>& GetDefendList() { return defend_list; }
+
50  List<Mission>& GetMissionList() { return mission_list; }
+
51 
+
52  void AddMission(Mission* m);
+
53  void SetScore(int points) { score = points; }
+
54  void AddScore(int points) { score += points; }
+
55 
+
56  double GetTargetStratFactor(int type);
+
57  void SetTargetStratFactor(int type, double f);
+
58 
+
59 private:
+
60  Text name;
+
61  int iff;
+
62  int score;
+
63 
+
64  CombatGroup* force;
+
65  List<CombatGroup> target_list;
+
66  List<CombatGroup> defend_list;
+
67  List<Mission> mission_list;
+
68 
+
69  double target_factor[8];
+
70 };
+
71 
+
72 
+
73 #endif Combatant_h
+
+
+ + + + -- cgit v1.1