Contains all the player autonav related stuff.
More...
#include "player.h"
#include "ai.h"
#include "array.h"
#include "board.h"
#include "conf.h"
#include "map.h"
#include "pause.h"
#include "pilot.h"
#include "pilot_ew.h"
#include "map_overlay.h"
#include "ndata.h"
#include "nlua.h"
#include "nlua_vec2.h"
#include "nlua_pilot.h"
#include "nlua_spob.h"
#include "nlua_system.h"
#include "sound.h"
#include "space.h"
#include "toolkit.h"
Go to the source code of this file.
Contains all the player autonav related stuff.
Definition in file player_autonav.c.
◆ player_autonavAbort()
| void player_autonavAbort |
( |
const char * | reason | ) |
|
Aborts autonav.
- Parameters
-
| reason | Human-readable string describing abort condition. |
Definition at line 282 of file player_autonav.c.
◆ player_autonavBoard()
| void player_autonavBoard |
( |
unsigned int | p | ) |
|
◆ player_autonavEnd()
| void player_autonavEnd |
( |
void | | ) |
|
◆ player_autonavEnter()
| void player_autonavEnter |
( |
void | | ) |
|
◆ player_autonavInit()
| int player_autonavInit |
( |
void | | ) |
|
◆ player_autonavPil()
| void player_autonavPil |
( |
unsigned int | p | ) |
|
◆ player_autonavPos()
| void player_autonavPos |
( |
double | x, |
|
|
double | y ) |
Starts autonav with a local position destination.
Definition at line 193 of file player_autonav.c.
◆ player_autonavReset()
| void player_autonavReset |
( |
double | s | ) |
|
◆ player_autonavResetSpeed()
| void player_autonavResetSpeed |
( |
void | | ) |
|
◆ player_autonavSetup()
| static int player_autonavSetup |
( |
void | | ) |
|
|
static |
Prepares the player to enter autonav.
- Returns
- 0 on success, -1 on failure (disabled, etc.)
Definition at line 140 of file player_autonav.c.
◆ player_autonavSpob()
| void player_autonavSpob |
( |
const char * | name, |
|
|
int | tryland ) |
◆ player_autonavStart()
| void player_autonavStart |
( |
void | | ) |
|
◆ player_autonavStartWindow()
| void player_autonavStartWindow |
( |
unsigned int | wid, |
|
|
const char * | str ) |
◆ player_thinkAutonav()
| void player_thinkAutonav |
( |
Pilot * | pplayer, |
|
|
double | dt ) |
Handles autonav thinking.
- Parameters
-
| pplayer | Player doing the thinking. |
| dt | Current delta tick. |
Definition at line 331 of file player_autonav.c.
◆ player_updateAutonav()
| void player_updateAutonav |
( |
double | dt | ) |
|
Updates the player's autonav.
- Parameters
-
| dt | Current delta tick (should be real delta tick, not game delta tick). |
Definition at line 352 of file player_autonav.c.
◆ autonav_ending
◆ autonav_env
| nlua_env autonav_env = LUA_NOREF |
|
static |
◆ func_abort
| int func_abort = LUA_NOREF |
|
static |
◆ func_board
| int func_board = LUA_NOREF |
|
static |
◆ func_end
◆ func_enter
| int func_enter = LUA_NOREF |
|
static |
◆ func_pilot
| int func_pilot = LUA_NOREF |
|
static |
◆ func_pos
◆ func_reset
| int func_reset = LUA_NOREF |
|
static |
◆ func_spob
| int func_spob = LUA_NOREF |
|
static |
◆ func_system
| int func_system = LUA_NOREF |
|
static |
◆ func_think
| int func_think = LUA_NOREF |
|
static |
◆ func_update
| int func_update = LUA_NOREF |
|
static |