Starshatter_Open
Open source Starshatter engine
Main Page
Classes
Files
File List
File Members
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
35
class
CampaignPlanEvent
:
public
CampaignPlan
36
{
37
public
:
38
static
const
char
*
TYPENAME
() {
return
"CampaignPlanEvent"
; }
39
40
CampaignPlanEvent
(
Campaign
* c);
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
*
54
ChooseAssignment
(
CombatGroup
* c);
55
virtual
bool
CreateEvent
(
CombatAssignment
* a);
56
57
virtual
CombatEvent
*
CreateEventDefend
(
CombatAssignment
* a);
58
virtual
CombatEvent
*
CreateEventFighterAssault
(
CombatAssignment
* a);
59
virtual
CombatEvent
*
CreateEventFighterStrike
(
CombatAssignment
* a);
60
virtual
CombatEvent
*
CreateEventFighterSweep
(
CombatAssignment
* a);
61
virtual
CombatEvent
*
CreateEventStarship
(
CombatAssignment
* a);
62
63
virtual
bool
IsFriendlyAssignment
(
CombatAssignment
* a);
64
virtual
bool
Success
(
CombatAssignment
* a);
65
virtual
Text
GetTeamName
(
CombatGroup
* g);
66
67
// attributes:
68
int
event_time
;
69
};
70
71
#endif CampaignPlanEvent_h
72
Stars45
CampaignPlanEvent.h
Generated on Tue Jun 5 2012 20:46:46 for Starshatter_Open by
1.8.1