naev 0.10.4
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 char *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 char *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( Pilot *parent );
27int escorts_return( Pilot *parent );
28int escorts_clear( Pilot *parent );
29int escorts_jump( Pilot *parent, JumpPoint *jp );
void escort_rmList(Pilot *p, unsigned int id)
Remove from escorts list.
Definition: escort.c:88
void escort_freeList(Pilot *p)
Remove all escorts from a pilot.
Definition: escort.c:60
unsigned int escort_create(Pilot *p, const char *ship, const vec2 *pos, const vec2 *vel, double dir, EscortType_t type, int add, int dockslot)
Creates an escort.
Definition: escort.c:111
int escorts_jump(Pilot *parent, JumpPoint *jp)
Have a pilot order its escorts to jump.
Definition: escort.c:409
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:187
void escort_rmListIndex(Pilot *p, int i)
Remove from escorts list.
Definition: escort.c:75
int escort_playerCommand(Pilot *e)
Open a dialog for the player to issue a command to an escort.
Definition: escort.c:357
int escort_addList(Pilot *p, const char *ship, EscortType_t type, unsigned int id, int persist)
Adds an escort to the escort list of a pilot.
Definition: escort.c:40
int escort_clearDeployed(Pilot *p)
Clears deployed escorts of a pilot.
Definition: escort.c:229
int escorts_return(Pilot *parent)
Have a pilot order its escorts to dock.
Definition: escort.c:330
int escorts_attack(Pilot *parent)
Have a pilot order its escorts to attack its target.
Definition: escort.c:284
int escorts_hold(Pilot *parent)
Have a pilot order its escorts to hold position.
Definition: escort.c:317
int escorts_clear(Pilot *parent)
Have a pilot order its escorts to clear orders.
Definition: escort.c:343
The representation of an in-game pilot.
Definition: pilot.h:210
Represents a 2d vector.
Definition: vec2.h:32