naev 0.11.5
escort.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "physics.h"
7#include "pilot.h"
8#include "space.h"
9
10/* Creation. */
11int escort_addList( Pilot *p, const Ship *ship,
12 EscortType_t type, unsigned int id, int persist );
13void escort_freeList( Pilot *p );
14void escort_rmList( Pilot *p, unsigned int id );
15void escort_rmListIndex( Pilot *p, int i );
16unsigned int escort_create( Pilot *p, const Ship *ship,
17 const vec2 *pos, const vec2 *vel, double dir,
18 EscortType_t type, int add, int dockslot );
19unsigned int escort_createRef( Pilot *p, Pilot *ref,
20 const vec2 *pos, const vec2 *vel, double dir,
21 EscortType_t type, int add, int dockslot );
23
24/* Keybind commands. */
25int escorts_attack( Pilot *parent );
26int escorts_hold( const Pilot *parent );
27int escorts_return( const Pilot *parent );
28int escorts_clear( const Pilot *parent );
29int escorts_jump( const Pilot *parent, const JumpPoint *jp );
30int escort_playerCommand( const Pilot *e );
void escort_rmList(Pilot *p, unsigned int id)
Remove from escorts list.
Definition escort.c:85
int escorts_hold(const Pilot *parent)
Have a pilot order its escorts to hold position.
Definition escort.c:322
void escort_freeList(Pilot *p)
Remove all escorts from a pilot.
Definition escort.c:60
unsigned int escort_create(Pilot *p, const Ship *ship, const vec2 *pos, const vec2 *vel, double dir, EscortType_t type, int add, int dockslot)
Creates an escort.
Definition escort.c:108
unsigned int escort_createRef(Pilot *p, Pilot *pe, const vec2 *pos, const vec2 *vel, double dir, EscortType_t type, int add, int dockslot)
Creates an escort from a reference.
Definition escort.c:186
int escort_addList(Pilot *p, const Ship *ship, EscortType_t type, unsigned int id, int persist)
Adds an escort to the escort list of a pilot.
Definition escort.c:40
int escorts_return(const Pilot *parent)
Have a pilot order its escorts to dock.
Definition escort.c:335
void escort_rmListIndex(Pilot *p, int i)
Remove from escorts list.
Definition escort.c:73
int escort_playerCommand(const Pilot *e)
Open a dialog for the player to issue a command to an escort.
Definition escort.c:362
int escort_clearDeployed(Pilot *p)
Clears deployed escorts of a pilot.
Definition escort.c:228
int escorts_attack(Pilot *parent)
Have a pilot order its escorts to attack its target.
Definition escort.c:283
int escorts_jump(const Pilot *parent, const JumpPoint *jp)
Have a pilot order its escorts to jump.
Definition escort.c:414
int escorts_clear(const Pilot *parent)
Have a pilot order its escorts to clear orders.
Definition escort.c:348
The representation of an in-game pilot.
Definition pilot.h:217
Represents a space ship.
Definition ship.h:94
Represents a 2d vector.
Definition vec2.h:32