From b829170121d3657369904ec62d8065606777a9ce Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 1 Oct 2021 18:54:04 +0200 Subject: Removed doxygen generated docs They can be rebuild anytime and are considered a build artifact/binary. --- Doc/doxygen/html/_combat_roster_8cpp_source.html | 210 ----------------------- 1 file changed, 210 deletions(-) delete mode 100644 Doc/doxygen/html/_combat_roster_8cpp_source.html (limited to 'Doc/doxygen/html/_combat_roster_8cpp_source.html') diff --git a/Doc/doxygen/html/_combat_roster_8cpp_source.html b/Doc/doxygen/html/_combat_roster_8cpp_source.html deleted file mode 100644 index 3efed2f..0000000 --- a/Doc/doxygen/html/_combat_roster_8cpp_source.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - -Starshatter_Open: D:/SRC/StarshatterSVN/Stars45/CombatRoster.cpp Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
Starshatter_Open -
-
Open source Starshatter engine
-
-
- - - - - -
-
- -
-
-
- -
- - - - -
- -
- -
-
-
CombatRoster.cpp
-
-
-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: CombatRoster.cpp
-
7  AUTHOR: John DiCamillo
-
8 
-
9 
-
10  OVERVIEW
-
11  ========
-
12  The complete roster of all known persistent entities
-
13  for all combatants in the game.
-
14 */
-
15 
-
16 #include "MemDebug.h"
-
17 #include "CombatRoster.h"
-
18 #include "CombatGroup.h"
-
19 
-
20 #include "Game.h"
-
21 #include "DataLoader.h"
-
22 #include "Text.h"
-
23 
-
24 // +--------------------------------------------------------------------+
-
25 
-
26 static CombatRoster* roster = 0;
-
27 
-
28 // +--------------------------------------------------------------------+
-
29 
-
30 CombatRoster::CombatRoster()
-
31 {
- -
33  loader->SetDataPath("Campaigns/");
-
34 
-
35  List<Text> files;
-
36  loader->ListFiles("*.def", files);
-
37 
-
38  for (int i = 0; i < files.size(); i++) {
-
39  Text filename = *files[i];
-
40 
-
41  if (!filename.contains("/") && !filename.contains("\\")) {
-
42  loader->SetDataPath("Campaigns/");
-
43  CombatGroup* g = CombatGroup::LoadOrderOfBattle(filename, -1, 0);
-
44  forces.append(g);
-
45  }
-
46  }
-
47 
-
48  files.destroy();
-
49 }
-
50 
-
51 // +--------------------------------------------------------------------+
-
52 
-
53 CombatRoster::~CombatRoster()
-
54 {
-
55  forces.destroy();
-
56 }
-
57 
-
58 // +--------------------------------------------------------------------+
-
59 
- -
61 CombatRoster::GetForce(const char* name)
-
62 {
-
63  ListIter<CombatGroup> iter = forces;
-
64  while (++iter) {
-
65  CombatGroup* f = iter.value();
-
66 
-
67  if (f->Name() == name)
-
68  return f;
-
69  }
-
70 
-
71  return 0;
-
72 }
-
73 
-
74 // +--------------------------------------------------------------------+
-
75 
-
76 void
- -
78 {
-
79  roster = new(__FILE__,__LINE__) CombatRoster();
-
80 }
-
81 
-
82 void
- -
84 {
-
85  delete roster;
-
86  roster = 0;
-
87 }
-
88 
- - -
91 {
-
92  return roster;
-
93 }
-
-
- - - - -- cgit v1.1