From e33e19d0587146859d48a134ec9fd94e7b7ba5cd Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 14:53:40 +0000 Subject: Initial upload --- Stars45/CampaignPlanEvent.h | 72 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Stars45/CampaignPlanEvent.h (limited to 'Stars45/CampaignPlanEvent.h') diff --git a/Stars45/CampaignPlanEvent.h b/Stars45/CampaignPlanEvent.h new file mode 100644 index 0000000..74bfea9 --- /dev/null +++ b/Stars45/CampaignPlanEvent.h @@ -0,0 +1,72 @@ +/* Project Starshatter 4.5 + Destroyer Studios LLC + Copyright © 1997-2004. All Rights Reserved. + + SUBSYSTEM: Stars.exe + FILE: CampaignPlanEvent.h + AUTHOR: John DiCamillo + + + OVERVIEW + ======== + CampaignPlanEvent generates simulated combat + events based on a statistical analysis of the + combatants within the context of a dynamic + campaign. +*/ + +#ifndef CampaignPlanEvent_h +#define CampaignPlanEvent_h + +#include "Types.h" +#include "CampaignPlan.h" + +// +--------------------------------------------------------------------+ + +class CombatAction; +class CombatAssignment; +class CombatEvent; +class CombatGroup; +class CombatUnit; +class CombatZone; + +// +--------------------------------------------------------------------+ + +class CampaignPlanEvent : public CampaignPlan +{ +public: + static const char* TYPENAME() { return "CampaignPlanEvent"; } + + CampaignPlanEvent(Campaign* c); + virtual ~CampaignPlanEvent(); + + // operations: + virtual void ExecFrame(); + virtual void SetLockout(int seconds); + + virtual bool ExecScriptedEvents(); + virtual bool ExecStatisticalEvents(); + +protected: + virtual void ProsecuteKills(CombatAction* action); + + virtual CombatAssignment* + ChooseAssignment(CombatGroup* c); + virtual bool CreateEvent(CombatAssignment* a); + + virtual CombatEvent* CreateEventDefend(CombatAssignment* a); + virtual CombatEvent* CreateEventFighterAssault(CombatAssignment* a); + virtual CombatEvent* CreateEventFighterStrike(CombatAssignment* a); + virtual CombatEvent* CreateEventFighterSweep(CombatAssignment* a); + virtual CombatEvent* CreateEventStarship(CombatAssignment* a); + + virtual bool IsFriendlyAssignment(CombatAssignment* a); + virtual bool Success(CombatAssignment* a); + virtual Text GetTeamName(CombatGroup* g); + + // attributes: + int event_time; +}; + +#endif CampaignPlanEvent_h + -- cgit v1.1