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

#include <ShipAICmd.h>

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

Public Member Functions

virtual bool TimeStepUpdate ()
 
 AICmdKill (DynamicBody *dBody, Ship *target)
 
 AICmdKill (const Json &jsonObj)
 
 ~AICmdKill ()
 
virtual void SaveToJson (Json &jsonObj)
 
void PostLoadFixup (Space *space)
 
virtual void OnDeleted (const Body *body)
 
const ShipGetTarget () const
 
- 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

◆ AICmdKill() [1/2]

AICmdKill::AICmdKill ( DynamicBody dBody,
Ship target 
)
Here is the call graph for this function:

◆ AICmdKill() [2/2]

AICmdKill::AICmdKill ( const Json jsonObj)

◆ ~AICmdKill()

AICmdKill::~AICmdKill ( )
Here is the call graph for this function:

Member Function Documentation

◆ GetTarget()

const Ship * AICmdKill::GetTarget ( ) const
inline

◆ OnDeleted()

void AICmdKill::OnDeleted ( const Body body)
virtual

Reimplemented from AICommand.

Here is the call graph for this function:

◆ PostLoadFixup()

void AICmdKill::PostLoadFixup ( Space space)
virtual

Reimplemented from AICommand.

Here is the call graph for this function:

◆ SaveToJson()

void AICmdKill::SaveToJson ( Json jsonObj)
virtual

Reimplemented from AICommand.

Here is the call graph for this function:

◆ TimeStepUpdate()

bool AICmdKill::TimeStepUpdate ( )
virtual

Implements AICommand.

Here is the call graph for this function:

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