Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CampaignPlanEvent.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: CampaignPlanEvent.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  CampaignPlanEvent generates simulated combat
13  events based on a statistical analysis of the
14  combatants within the context of a dynamic
15  campaign.
16 */
17 
18 #ifndef CampaignPlanEvent_h
19 #define CampaignPlanEvent_h
20 
21 #include "Types.h"
22 #include "CampaignPlan.h"
23 
24 // +--------------------------------------------------------------------+
25 
26 class CombatAction;
27 class CombatAssignment;
28 class CombatEvent;
29 class CombatGroup;
30 class CombatUnit;
31 class CombatZone;
32 
33 // +--------------------------------------------------------------------+
34 
36 {
37 public:
38  static const char* TYPENAME() { return "CampaignPlanEvent"; }
39 
41  virtual ~CampaignPlanEvent();
42 
43  // operations:
44  virtual void ExecFrame();
45  virtual void SetLockout(int seconds);
46 
47  virtual bool ExecScriptedEvents();
48  virtual bool ExecStatisticalEvents();
49 
50 protected:
51  virtual void ProsecuteKills(CombatAction* action);
52 
53  virtual CombatAssignment*
55  virtual bool CreateEvent(CombatAssignment* a);
56 
62 
63  virtual bool IsFriendlyAssignment(CombatAssignment* a);
64  virtual bool Success(CombatAssignment* a);
65  virtual Text GetTeamName(CombatGroup* g);
66 
67  // attributes:
69 };
70 
71 #endif CampaignPlanEvent_h
72