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

#include <GroundAI.h>

Inheritance diagram for GroundAI:
Director SimObserver

List of all members.

Public Member Functions

 GroundAI (SimObject *self)
virtual ~GroundAI ()
virtual void ExecFrame (double seconds)
virtual void SetTarget (SimObject *targ, System *sub=0)
virtual SimObjectGetTarget () const
virtual SystemGetSubTarget () const
virtual int Type () const
virtual bool Update (SimObject *obj)
virtual const char * GetObserverName () const
- Public Member Functions inherited from Director
 Director ()
virtual ~Director ()
virtual int Subframe () const
- Public Member Functions inherited from SimObserver
virtual ~SimObserver ()
int operator== (const SimObserver &o) const
virtual void Observe (SimObject *obj)
virtual void Ignore (SimObject *obj)

Protected Member Functions

virtual void SelectTarget ()

Protected Attributes

Shipship
SimObjecttarget
Systemsubtarget
double exec_time
CarrierAIcarrier_ai
- Protected Attributes inherited from SimObserver
List< SimObjectobserve_list

Additional Inherited Members

- Static Public Member Functions inherited from SimObserver
static const char * TYPENAME ()

Detailed Description

Definition at line 31 of file GroundAI.h.


Constructor & Destructor Documentation

GroundAI::GroundAI ( SimObject self)

Definition at line 34 of file GroundAI.cpp.

GroundAI::~GroundAI ( )
virtual

Definition at line 67 of file GroundAI.cpp.


Member Function Documentation

void GroundAI::ExecFrame ( double  seconds)
virtual

Reimplemented from Director.

Definition at line 161 of file GroundAI.cpp.

const char * GroundAI::GetObserverName ( ) const
virtual

Reimplemented from SimObserver.

Definition at line 101 of file GroundAI.cpp.

virtual System* GroundAI::GetSubTarget ( ) const
inlinevirtual

Definition at line 41 of file GroundAI.h.

virtual SimObject* GroundAI::GetTarget ( ) const
inlinevirtual

Definition at line 40 of file GroundAI.h.

void GroundAI::SelectTarget ( )
protectedvirtual

Definition at line 111 of file GroundAI.cpp.

void GroundAI::SetTarget ( SimObject targ,
System sub = 0 
)
virtual

Definition at line 75 of file GroundAI.cpp.

int GroundAI::Type ( ) const
virtual

Reimplemented from Director.

Definition at line 153 of file GroundAI.cpp.

bool GroundAI::Update ( SimObject obj)
virtual

Reimplemented from SimObserver.

Definition at line 90 of file GroundAI.cpp.


Member Data Documentation

CarrierAI* GroundAI::carrier_ai
protected

Definition at line 54 of file GroundAI.h.

double GroundAI::exec_time
protected

Definition at line 53 of file GroundAI.h.

Ship* GroundAI::ship
protected

Definition at line 50 of file GroundAI.h.

System* GroundAI::subtarget
protected

Definition at line 52 of file GroundAI.h.

SimObject* GroundAI::target
protected

Definition at line 51 of file GroundAI.h.


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