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

#include <ShipAICmd.h>

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

Public Member Functions

virtual bool TimeStepUpdate ()
 
 AICmdFormation (DynamicBody *dBody, DynamicBody *target, const vector3d &posoff)
 
void GetStatusText (char *str)
 
virtual void SaveToJson (Json &jsonObj)
 
 AICmdFormation (const Json &jsonObj)
 
virtual void PostLoadFixup (Space *space)
 
virtual void OnDeleted (const Body *body)
 
- 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
 

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

◆ AICmdFormation() [1/2]

AICmdFormation::AICmdFormation ( DynamicBody dBody,
DynamicBody target,
const vector3d posoff 
)
Here is the call graph for this function:

◆ AICmdFormation() [2/2]

AICmdFormation::AICmdFormation ( const Json jsonObj)

Member Function Documentation

◆ GetStatusText()

void AICmdFormation::GetStatusText ( char *  str)
virtual

Reimplemented from AICommand.

Here is the call graph for this function:

◆ OnDeleted()

void AICmdFormation::OnDeleted ( const Body body)
virtual

Reimplemented from AICommand.

Here is the call graph for this function:

◆ PostLoadFixup()

void AICmdFormation::PostLoadFixup ( Space space)
virtual

Reimplemented from AICommand.

Here is the call graph for this function:

◆ SaveToJson()

void AICmdFormation::SaveToJson ( Json jsonObj)
virtual

Reimplemented from AICommand.

Here is the call graph for this function:

◆ TimeStepUpdate()

bool AICmdFormation::TimeStepUpdate ( )
virtual

Implements AICommand.

Here is the call graph for this function:

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