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/StarshipTacticalAI.h | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Stars45/StarshipTacticalAI.h (limited to 'Stars45/StarshipTacticalAI.h') diff --git a/Stars45/StarshipTacticalAI.h b/Stars45/StarshipTacticalAI.h new file mode 100644 index 0000000..007c9ad --- /dev/null +++ b/Stars45/StarshipTacticalAI.h @@ -0,0 +1,47 @@ +/* Project Starshatter 4.5 + Destroyer Studios LLC + Copyright © 1997-2004. All Rights Reserved. + + SUBSYSTEM: Stars.exe + FILE: StarshipTacticalAI.h + AUTHOR: John DiCamillo + + + OVERVIEW + ======== + Starship-specific mid-level (tactical) AI +*/ + +#ifndef StarshipTacticalAI_h +#define StarshipTacticalAI_h + +#include "Types.h" +#include "TacticalAI.h" + +// +--------------------------------------------------------------------+ + +class StarshipTacticalAI : public TacticalAI +{ +public: + StarshipTacticalAI(ShipAI* ai); + virtual ~StarshipTacticalAI(); + + virtual void ExecFrame(double seconds); + +protected: + virtual void FindThreat(); + virtual void FindSupport(); + + virtual void CheckBugOut(Ship* c_ship, double range); + + DWORD THREAT_REACTION_TIME; + int ai_level; + double drop_time; + double initial_integrity; + bool bugout; +}; + +// +--------------------------------------------------------------------+ + +#endif StarshipTacticalAI_h + -- cgit v1.1