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/CampaignPlanAssignment.h | 50 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Stars45/CampaignPlanAssignment.h (limited to 'Stars45/CampaignPlanAssignment.h') diff --git a/Stars45/CampaignPlanAssignment.h b/Stars45/CampaignPlanAssignment.h new file mode 100644 index 0000000..f73ca41 --- /dev/null +++ b/Stars45/CampaignPlanAssignment.h @@ -0,0 +1,50 @@ +/* Project Starshatter 4.5 + Destroyer Studios LLC + Copyright © 1997-2004. All Rights Reserved. + + SUBSYSTEM: Stars.exe + FILE: CampaignPlanAssignment.h + AUTHOR: John DiCamillo + + + OVERVIEW + ======== + CampaignPlanAssignment creates combat assignments for + assets within each combat zone as the third step in + force tasking. +*/ + +#ifndef CampaignPlanAssignment_h +#define CampaignPlanAssignment_h + +#include "Types.h" +#include "CampaignPlan.h" + +// +--------------------------------------------------------------------+ + +class CombatGroup; +class CombatUnit; +class CombatZone; + +// +--------------------------------------------------------------------+ + +class CampaignPlanAssignment : public CampaignPlan +{ +public: + static const char* TYPENAME() { return "CampaignPlanAssignment"; } + + CampaignPlanAssignment(Campaign* c) : CampaignPlan(c) { } + virtual ~CampaignPlanAssignment() { } + + // operations: + virtual void ExecFrame(); + +protected: + virtual void ProcessCombatant(Combatant* c); + virtual void ProcessZone(Combatant* c, CombatZone* zone); + virtual void BuildZoneList(CombatGroup* g, CombatZone* zone, List& list); + virtual void BuildAssetList(const int* pref, List& avail, List& assets); +}; + +#endif CampaignPlanAssignment_h + -- cgit v1.1