Pioneer
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
AICmdFlyAround Class Reference

#include <ShipAICmd.h>

Inheritance diagram for AICmdFlyAround:
Inheritance graph
[legend]
Collaboration diagram for AICmdFlyAround:
Collaboration graph
[legend]

Public Member Functions

virtual bool TimeStepUpdate ()
 
 AICmdFlyAround (DynamicBody *dBody, Body *obstructor, double relalt, int mode=2)
 
 AICmdFlyAround (DynamicBody *dBody, Body *obstructor, double alt, double vel, int mode=1)
 
virtual void GetStatusText (char *str)
 
virtual void SaveToJson (Json &jsonObj)
 
 AICmdFlyAround (const Json &jsonObj)
 
virtual void PostLoadFixup (Space *space)
 
virtual void OnDeleted (const Body *body)
 
void SetTargPos (const vector3d &targpos)
 
- Public Member Functions inherited from AICommand
 AICommand (DynamicBody *dBody, CmdName name)
 
virtual ~AICommand ()
 
virtual bool TimeStepUpdate ()=0
 
bool ProcessChild ()
 
virtual void GetStatusText (char *str)
 
 AICommand (const Json &jsonObj, CmdName name)
 
virtual void SaveToJson (Json &jsonObj)
 
virtual void PostLoadFixup (Space *space)
 
virtual void OnDeleted (const Body *body)
 
CmdName GetType () const
 

Protected Member Functions

void Setup (Body *obstructor, double alt, double vel, int mode)
 
double MaxVel (double targdist, double targalt)
 

Additional Inherited Members

- Public Types inherited from AICommand
enum  CmdName {
  CMD_NONE , CMD_DOCK , CMD_FLYTO , CMD_FLYAROUND ,
  CMD_KILL , CMD_KAMIKAZE , CMD_HOLDPOSITION , CMD_FORMATION
}
 
- Static Public Member Functions inherited from AICommand
static AICommandLoadFromJson (const Json &jsonObj)
 
- Protected Attributes inherited from AICommand
DynamicBodym_dBody
 
Propulsionm_prop
 
std::unique_ptr< AICommandm_child
 
bool m_is_flyto = false
 
CmdName m_cmdName
 
int m_dBodyIndex
 

Constructor & Destructor Documentation

◆ AICmdFlyAround() [1/3]

AICmdFlyAround::AICmdFlyAround ( DynamicBody dBody,
Body obstructor,
double  relalt,
int  mode = 2 
)
Here is the call graph for this function:

◆ AICmdFlyAround() [2/3]

AICmdFlyAround::AICmdFlyAround ( DynamicBody dBody,
Body obstructor,
double  alt,
double  vel,
int  mode = 1 
)
Here is the call graph for this function:

◆ AICmdFlyAround() [3/3]

AICmdFlyAround::AICmdFlyAround ( const Json jsonObj)

Member Function Documentation

◆ GetStatusText()

void AICmdFlyAround::GetStatusText ( char *  str)
virtual

Reimplemented from AICommand.

◆ MaxVel()

double AICmdFlyAround::MaxVel ( double  targdist,
double  targalt 
)
protected
Here is the call graph for this function:

◆ OnDeleted()

virtual void AICmdFlyAround::OnDeleted ( const Body body)
inlinevirtual

Reimplemented from AICommand.

Here is the call graph for this function:

◆ PostLoadFixup()

void AICmdFlyAround::PostLoadFixup ( Space space)
virtual

Reimplemented from AICommand.

Here is the call graph for this function:

◆ SaveToJson()

void AICmdFlyAround::SaveToJson ( Json jsonObj)
virtual

Reimplemented from AICommand.

Here is the call graph for this function:

◆ SetTargPos()

void AICmdFlyAround::SetTargPos ( const vector3d targpos)
inline

◆ Setup()

void AICmdFlyAround::Setup ( Body obstructor,
double  alt,
double  vel,
int  mode 
)
protected
Here is the call graph for this function:

◆ TimeStepUpdate()

bool AICmdFlyAround::TimeStepUpdate ( )
virtual

Implements AICommand.

Here is the call graph for this function:

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