![]() |
naev 0.12.6
|
Handles the player's escorts. More...
#include "escort.h"#include "array.h"#include "dialogue.h"#include "log.h"#include "nlua.h"#include "nlua_jump.h"#include "nlua_pilot.h"#include "player.h"
Go to the source code of this file.
Functions | |
| static int | escort_command (const Pilot *parent, const char *cmd, unsigned int idx) |
| Runs an escort command on all of a pilot's escorts. | |
| 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. | |
| void | escort_freeList (Pilot *p) |
| Remove all escorts from a pilot. | |
| void | escort_rmListIndex (Pilot *p, int i) |
| Remove from escorts list. | |
| void | escort_rmList (Pilot *p, unsigned int id) |
| Remove from escorts list. | |
| 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. | |
| 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. | |
| int | escort_clearDeployed (Pilot *p, int slot) |
| Clears deployed escorts of a pilot. | |
| int | escorts_attack (Pilot *parent) |
| Have a pilot order its escorts to attack its target. | |
| int | escorts_hold (const Pilot *parent) |
| Have a pilot order its escorts to hold position. | |
| int | escorts_return (const Pilot *parent) |
| Have a pilot order its escorts to dock. | |
| int | escorts_clear (const Pilot *parent) |
| Have a pilot order its escorts to clear orders. | |
| int | escort_playerCommand (const Pilot *e) |
| Open a dialog for the player to issue a command to an escort. | |
| int | escorts_jump (const Pilot *parent, const JumpPoint *jp) |
| Have a pilot order its escorts to jump. | |
Handles the player's escorts.
Definition in file escort.c.
| int escort_clearDeployed | ( | Pilot * | p, |
| int | slot ) |
|
static |
| 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.
| p | Parent of the escort (who he's guarding). |
| ship | Name of the ship escort should have. |
| pos | Position to create escort at. |
| vel | Velocity to create escort with. |
| dir | Direction to face. |
| type | Type of escort. |
| add | Whether or not to add it to the escort list. |
| dockslot | The outfit slot which launched the escort (-1 if N/A) |
| 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.
| p | Parent of the escort (who he's guarding). |
| pe | Reference for the escort. |
| pos | Position to create escort at. |
| vel | Velocity to create escort with. |
| dir | Direction to face. |
| type | Type of escort. |
| add | Whether or not to add it to the escort list. |
| dockslot | The outfit slot which launched the escort (-1 if N/A) |
| void escort_freeList | ( | Pilot * | p | ) |
| int escort_playerCommand | ( | const Pilot * | e | ) |
| void escort_rmList | ( | Pilot * | p, |
| unsigned int | id ) |
| void escort_rmListIndex | ( | Pilot * | p, |
| int | i ) |
| int escorts_attack | ( | Pilot * | parent | ) |
| int escorts_clear | ( | const Pilot * | parent | ) |
| int escorts_hold | ( | const Pilot * | parent | ) |
| int escorts_jump | ( | const Pilot * | parent, |
| const JumpPoint * | jp ) |