Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FighterTacticalAI.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: FighterTacticalAI.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Fighter-specific mid-level (tactical) AI
13 */
14 
15 #ifndef FighterTacticalAI_h
16 #define FighterTacticalAI_h
17 
18 #include "Types.h"
19 #include "TacticalAI.h"
20 #include "List.h"
21 
22 // +--------------------------------------------------------------------+
23 
24 class WeaponGroup;
25 
26 // +--------------------------------------------------------------------+
27 
29 {
30 public:
32  virtual ~FighterTacticalAI();
33 
34 protected:
35  virtual bool CheckFlightPlan();
36  virtual bool IsStrikeComplete(Instruction* instr=0);
37 
38  virtual void SelectTarget();
39  virtual void SelectTargetDirected(Ship* tgt=0);
40  virtual void SelectTargetOpportunity();
41  virtual void FindFormationSlot(int formation);
42  virtual void FindThreat();
43 
44  virtual void SelectSecondaryForTarget(Ship* tgt);
45  virtual int ListSecondariesForTarget(Ship* tgt, List<WeaponGroup>& weps);
46 
47  bool winchester[4];
50  int ai_level;
51 };
52 
53 // +--------------------------------------------------------------------+
54 
55 #endif FighterTacticalAI_h
56