Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CarrierAI Class Reference

#include <CarrierAI.h>

Inheritance diagram for CarrierAI:
Director

List of all members.

Public Member Functions

 CarrierAI (Ship *s, int level)
virtual ~CarrierAI ()
virtual void ExecFrame (double seconds)
- Public Member Functions inherited from Director
 Director ()
virtual ~Director ()
virtual int Type () const
virtual int Subframe () const

Protected Member Functions

virtual bool CheckPatrolCoverage ()
virtual bool CheckHostileElements ()
virtual bool CreateStrike (Element *elem)
virtual ElementCreatePackage (int squad, int size, int code, const char *target=0, const char *loadname=0)
virtual bool LaunchElement (Element *elem)

Protected Attributes

Simsim
Shipship
Hangarhangar
FlightPlannerflight_planner
int exec_time
int hold_time
int ai_level
Elementpatrol_elem [4]

Detailed Description

Definition at line 33 of file CarrierAI.h.


Constructor & Destructor Documentation

CarrierAI::CarrierAI ( Ship s,
int  level 
)

Definition at line 39 of file CarrierAI.cpp.

CarrierAI::~CarrierAI ( )
virtual

Definition at line 57 of file CarrierAI.cpp.


Member Function Documentation

bool CarrierAI::CheckHostileElements ( )
protectedvirtual

Definition at line 157 of file CarrierAI.cpp.

bool CarrierAI::CheckPatrolCoverage ( )
protectedvirtual

Definition at line 86 of file CarrierAI.cpp.

Element * CarrierAI::CreatePackage ( int  squad,
int  size,
int  code,
const char *  target = 0,
const char *  loadname = 0 
)
protectedvirtual

Definition at line 282 of file CarrierAI.cpp.

bool CarrierAI::CreateStrike ( Element elem)
protectedvirtual

Definition at line 208 of file CarrierAI.cpp.

void CarrierAI::ExecFrame ( double  seconds)
virtual

Reimplemented from Director.

Definition at line 65 of file CarrierAI.cpp.

bool CarrierAI::LaunchElement ( Element elem)
protectedvirtual

Definition at line 377 of file CarrierAI.cpp.


Member Data Documentation

int CarrierAI::ai_level
protected

Definition at line 56 of file CarrierAI.h.

int CarrierAI::exec_time
protected

Definition at line 54 of file CarrierAI.h.

FlightPlanner* CarrierAI::flight_planner
protected

Definition at line 53 of file CarrierAI.h.

Hangar* CarrierAI::hangar
protected

Definition at line 52 of file CarrierAI.h.

int CarrierAI::hold_time
protected

Definition at line 55 of file CarrierAI.h.

Element* CarrierAI::patrol_elem[4]
protected

Definition at line 58 of file CarrierAI.h.

Ship* CarrierAI::ship
protected

Definition at line 51 of file CarrierAI.h.

Sim* CarrierAI::sim
protected

Definition at line 50 of file CarrierAI.h.


The documentation for this class was generated from the following files: