naev 0.12.6
escort.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "pilot.h"
7#include "space.h"
8#include "vec2.h"
9
10/* Creation. */
11int escort_addList( Pilot *p, const Ship *ship, EscortType_t type,
12 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, const vec2 *pos,
17 const vec2 *vel, double dir, EscortType_t type,
18 int add, int dockslot );
19unsigned int escort_createRef( Pilot *p, Pilot *ref, const vec2 *pos,
20 const vec2 *vel, double dir, EscortType_t type,
21 int add, int dockslot );
22int escort_clearDeployed( Pilot *p, 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:82
int escorts_hold(const Pilot *parent)
Have a pilot order its escorts to hold position.
Definition escort.c:344
void escort_freeList(Pilot *p)
Remove all escorts from a pilot.
Definition escort.c:57
int escort_clearDeployed(Pilot *p, int slot)
Clears deployed escorts of a pilot.
Definition escort.c:243
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:105
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:200
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:37
int escorts_return(const Pilot *parent)
Have a pilot order its escorts to dock.
Definition escort.c:357
void escort_rmListIndex(Pilot *p, int i)
Remove from escorts list.
Definition escort.c:70
int escort_playerCommand(const Pilot *e)
Open a dialog for the player to issue a command to an escort.
Definition escort.c:384
int escorts_attack(Pilot *parent)
Have a pilot order its escorts to attack its target.
Definition escort.c:305
int escorts_jump(const Pilot *parent, const JumpPoint *jp)
Have a pilot order its escorts to jump.
Definition escort.c:430
int escorts_clear(const Pilot *parent)
Have a pilot order its escorts to clear orders.
Definition escort.c:370
The representation of an in-game pilot.
Definition pilot.h:263
Represents a space ship.
Definition ship.h:97
Represents a 2d vector.
Definition vec2.h:45