Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CampaignPlanAssignment.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: CampaignPlanAssignment.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  CampaignPlanAssignment creates combat assignments for
13  assets within each combat zone as the third step in
14  force tasking.
15 */
16 
17 #ifndef CampaignPlanAssignment_h
18 #define CampaignPlanAssignment_h
19 
20 #include "Types.h"
21 #include "CampaignPlan.h"
22 
23 // +--------------------------------------------------------------------+
24 
25 class CombatGroup;
26 class CombatUnit;
27 class CombatZone;
28 
29 // +--------------------------------------------------------------------+
30 
32 {
33 public:
34  static const char* TYPENAME() { return "CampaignPlanAssignment"; }
35 
38 
39  // operations:
40  virtual void ExecFrame();
41 
42 protected:
43  virtual void ProcessCombatant(Combatant* c);
44  virtual void ProcessZone(Combatant* c, CombatZone* zone);
45  virtual void BuildZoneList(CombatGroup* g, CombatZone* zone, List<CombatGroup>& list);
46  virtual void BuildAssetList(const int* pref, List<CombatGroup>& avail, List<CombatGroup>& assets);
47 };
48 
49 #endif CampaignPlanAssignment_h
50